[2025-01-09 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:00:06 [end_date_ymd] => 2025-01-09 00:00:06 [RateCDR] => 1 ) [2025-01-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-01-08 21:00:06' and `end` < '2025-01-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-01-09 00:00:20] Production.INFO: count ==518 [2025-01-09 00:00:21] Production.ERROR: pbx CDR StartTime 2025-01-08 21:00:06 - End Time 2025-01-09 00:00:06 [2025-01-09 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205761', 'tblTempUsageDetail_20' ) start [2025-01-09 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205761', 'tblTempUsageDetail_20' ) end [2025-01-09 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205761', 'tblTempVendorCDR_20' ) start [2025-01-09 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205761', 'tblTempVendorCDR_20' ) end [2025-01-09 00:00:21] Production.INFO: ProcessCDR(1,14205761,1,1,2) [2025-01-09 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205761', 'tblTempUsageDetail_20' ) start [2025-01-09 00:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205761', 'tblTempUsageDetail_20' ) end [2025-01-09 00:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:00:26] Production.INFO: ==31125== Releasing lock... [2025-01-09 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:00:26] Production.INFO: 33.5 MB #Memory Used# [2025-01-09 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:01:05 [end_date_ymd] => 2025-01-09 00:01:05 [RateCDR] => 1 ) [2025-01-09 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:01:05' and `end` < '2025-01-09 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:01:18] Production.INFO: count ==524 [2025-01-09 00:01:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:01:05 - End Time 2025-01-09 00:01:05 [2025-01-09 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205766', 'tblTempUsageDetail_20' ) start [2025-01-09 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205766', 'tblTempUsageDetail_20' ) end [2025-01-09 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205766', 'tblTempVendorCDR_20' ) start [2025-01-09 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205766', 'tblTempVendorCDR_20' ) end [2025-01-09 00:01:18] Production.INFO: ProcessCDR(1,14205766,1,1,2) [2025-01-09 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205766', 'tblTempUsageDetail_20' ) start [2025-01-09 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205766', 'tblTempUsageDetail_20' ) end [2025-01-09 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:01:21] Production.INFO: ==31211== Releasing lock... [2025-01-09 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:01:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-09 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:02:05 [end_date_ymd] => 2025-01-09 00:02:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:02:05' and `end` < '2025-01-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-01-09 00:02:27] Production.INFO: count ==90 [2025-01-09 00:02:27] Production.ERROR: pbx CDR StartTime 2025-01-08 21:02:05 - End Time 2025-01-09 00:02:05 [2025-01-09 00:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205771', 'tblTempUsageDetail_20' ) start [2025-01-09 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205771', 'tblTempUsageDetail_20' ) end [2025-01-09 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205771', 'tblTempVendorCDR_20' ) start [2025-01-09 00:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205771', 'tblTempVendorCDR_20' ) end [2025-01-09 00:02:27] Production.INFO: ProcessCDR(1,14205771,1,1,2) [2025-01-09 00:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205771', 'tblTempUsageDetail_20' ) start [2025-01-09 00:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205771', 'tblTempUsageDetail_20' ) end [2025-01-09 00:02:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:02:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:02:30] Production.INFO: ==31320== Releasing lock... [2025-01-09 00:02:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:02:30] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:03:05 [end_date_ymd] => 2025-01-09 00:03:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:03:05' and `end` < '2025-01-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-01-09 00:03:24] Production.INFO: count ==90 [2025-01-09 00:03:24] Production.ERROR: pbx CDR StartTime 2025-01-08 21:03:05 - End Time 2025-01-09 00:03:05 [2025-01-09 00:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205776', 'tblTempUsageDetail_20' ) start [2025-01-09 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205776', 'tblTempUsageDetail_20' ) end [2025-01-09 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205776', 'tblTempVendorCDR_20' ) start [2025-01-09 00:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205776', 'tblTempVendorCDR_20' ) end [2025-01-09 00:03:24] Production.INFO: ProcessCDR(1,14205776,1,1,2) [2025-01-09 00:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205776', 'tblTempUsageDetail_20' ) start [2025-01-09 00:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205776', 'tblTempUsageDetail_20' ) end [2025-01-09 00:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:03:27] Production.INFO: ==31392== Releasing lock... [2025-01-09 00:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:03:27] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:04:05 [end_date_ymd] => 2025-01-09 00:04:05 [RateCDR] => 1 ) [2025-01-09 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:04:05' and `end` < '2025-01-09 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:04:23] Production.INFO: count ==90 [2025-01-09 00:04:23] Production.ERROR: pbx CDR StartTime 2025-01-08 21:04:05 - End Time 2025-01-09 00:04:05 [2025-01-09 00:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205781', 'tblTempUsageDetail_20' ) start [2025-01-09 00:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205781', 'tblTempUsageDetail_20' ) end [2025-01-09 00:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205781', 'tblTempVendorCDR_20' ) start [2025-01-09 00:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205781', 'tblTempVendorCDR_20' ) end [2025-01-09 00:04:23] Production.INFO: ProcessCDR(1,14205781,1,1,2) [2025-01-09 00:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205781', 'tblTempUsageDetail_20' ) start [2025-01-09 00:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205781', 'tblTempUsageDetail_20' ) end [2025-01-09 00:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:04:26] Production.INFO: ==31468== Releasing lock... [2025-01-09 00:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:04:26] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:05:05 [end_date_ymd] => 2025-01-09 00:05:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:05:05' and `end` < '2025-01-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-01-09 00:05:26] Production.INFO: count ==88 [2025-01-09 00:05:26] Production.ERROR: pbx CDR StartTime 2025-01-08 21:05:05 - End Time 2025-01-09 00:05:05 [2025-01-09 00:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205786', 'tblTempUsageDetail_20' ) start [2025-01-09 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205786', 'tblTempUsageDetail_20' ) end [2025-01-09 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205786', 'tblTempVendorCDR_20' ) start [2025-01-09 00:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205786', 'tblTempVendorCDR_20' ) end [2025-01-09 00:05:26] Production.INFO: ProcessCDR(1,14205786,1,1,2) [2025-01-09 00:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:05:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:05:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205786', 'tblTempUsageDetail_20' ) start [2025-01-09 00:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205786', 'tblTempUsageDetail_20' ) end [2025-01-09 00:05:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:05:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:05:29] Production.INFO: ==31538== Releasing lock... [2025-01-09 00:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:05:29] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:06:05 [end_date_ymd] => 2025-01-09 00:06:05 [RateCDR] => 1 ) [2025-01-09 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:06:05' and `end` < '2025-01-09 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:06:18] Production.INFO: count ==85 [2025-01-09 00:06:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:06:05 - End Time 2025-01-09 00:06:05 [2025-01-09 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205791', 'tblTempUsageDetail_20' ) start [2025-01-09 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205791', 'tblTempUsageDetail_20' ) end [2025-01-09 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205791', 'tblTempVendorCDR_20' ) start [2025-01-09 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205791', 'tblTempVendorCDR_20' ) end [2025-01-09 00:06:18] Production.INFO: ProcessCDR(1,14205791,1,1,2) [2025-01-09 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205791', 'tblTempUsageDetail_20' ) start [2025-01-09 00:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205791', 'tblTempUsageDetail_20' ) end [2025-01-09 00:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:06:23] Production.INFO: ==31608== Releasing lock... [2025-01-09 00:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:06:23] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:07:05 [end_date_ymd] => 2025-01-09 00:07:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:07:05' and `end` < '2025-01-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-01-09 00:07:17] Production.INFO: count ==81 [2025-01-09 00:07:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:07:05 - End Time 2025-01-09 00:07:05 [2025-01-09 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205796', 'tblTempUsageDetail_20' ) start [2025-01-09 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205796', 'tblTempUsageDetail_20' ) end [2025-01-09 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205796', 'tblTempVendorCDR_20' ) start [2025-01-09 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205796', 'tblTempVendorCDR_20' ) end [2025-01-09 00:07:18] Production.INFO: ProcessCDR(1,14205796,1,1,2) [2025-01-09 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205796', 'tblTempUsageDetail_20' ) start [2025-01-09 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205796', 'tblTempUsageDetail_20' ) end [2025-01-09 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:07:21] Production.INFO: ==31680== Releasing lock... [2025-01-09 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:08:05 [end_date_ymd] => 2025-01-09 00:08:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:08:05' and `end` < '2025-01-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-01-09 00:08:18] Production.INFO: count ==80 [2025-01-09 00:08:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:08:05 - End Time 2025-01-09 00:08:05 [2025-01-09 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205801', 'tblTempUsageDetail_20' ) start [2025-01-09 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205801', 'tblTempUsageDetail_20' ) end [2025-01-09 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205801', 'tblTempVendorCDR_20' ) start [2025-01-09 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205801', 'tblTempVendorCDR_20' ) end [2025-01-09 00:08:18] Production.INFO: ProcessCDR(1,14205801,1,1,2) [2025-01-09 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205801', 'tblTempUsageDetail_20' ) start [2025-01-09 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205801', 'tblTempUsageDetail_20' ) end [2025-01-09 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:08:21] Production.INFO: ==31750== Releasing lock... [2025-01-09 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:08:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:09:04 [end_date_ymd] => 2025-01-09 00:09:04 [RateCDR] => 1 ) [2025-01-09 00:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:09:04' and `end` < '2025-01-09 00:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:09:18] Production.INFO: count ==80 [2025-01-09 00:09:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:09:04 - End Time 2025-01-09 00:09:04 [2025-01-09 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205806', 'tblTempUsageDetail_20' ) start [2025-01-09 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205806', 'tblTempUsageDetail_20' ) end [2025-01-09 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205806', 'tblTempVendorCDR_20' ) start [2025-01-09 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205806', 'tblTempVendorCDR_20' ) end [2025-01-09 00:09:18] Production.INFO: ProcessCDR(1,14205806,1,1,2) [2025-01-09 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205806', 'tblTempUsageDetail_20' ) start [2025-01-09 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205806', 'tblTempUsageDetail_20' ) end [2025-01-09 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:09:21] Production.INFO: ==31823== Releasing lock... [2025-01-09 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:09:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:10:06 [end_date_ymd] => 2025-01-09 00:10:06 [RateCDR] => 1 ) [2025-01-09 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:10:06' and `end` < '2025-01-09 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:10:19] Production.INFO: count ==88 [2025-01-09 00:10:19] Production.ERROR: pbx CDR StartTime 2025-01-08 21:10:06 - End Time 2025-01-09 00:10:06 [2025-01-09 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205812', 'tblTempUsageDetail_20' ) start [2025-01-09 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205812', 'tblTempUsageDetail_20' ) end [2025-01-09 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205812', 'tblTempVendorCDR_20' ) start [2025-01-09 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205812', 'tblTempVendorCDR_20' ) end [2025-01-09 00:10:19] Production.INFO: ProcessCDR(1,14205812,1,1,2) [2025-01-09 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205812', 'tblTempUsageDetail_20' ) start [2025-01-09 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205812', 'tblTempUsageDetail_20' ) end [2025-01-09 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:10:22] Production.INFO: ==31898== Releasing lock... [2025-01-09 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:11:05 [end_date_ymd] => 2025-01-09 00:11:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:11:05' and `end` < '2025-01-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-01-09 00:11:19] Production.INFO: count ==104 [2025-01-09 00:11:19] Production.ERROR: pbx CDR StartTime 2025-01-08 21:11:05 - End Time 2025-01-09 00:11:05 [2025-01-09 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205817', 'tblTempUsageDetail_20' ) start [2025-01-09 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205817', 'tblTempUsageDetail_20' ) end [2025-01-09 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205817', 'tblTempVendorCDR_20' ) start [2025-01-09 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205817', 'tblTempVendorCDR_20' ) end [2025-01-09 00:11:19] Production.INFO: ProcessCDR(1,14205817,1,1,2) [2025-01-09 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205817', 'tblTempUsageDetail_20' ) start [2025-01-09 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205817', 'tblTempUsageDetail_20' ) end [2025-01-09 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:11:22] Production.INFO: ==31977== Releasing lock... [2025-01-09 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:11:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:12:04 [end_date_ymd] => 2025-01-09 00:12:04 [RateCDR] => 1 ) [2025-01-09 00:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:12:04' and `end` < '2025-01-09 00:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:12:17] Production.INFO: count ==103 [2025-01-09 00:12:17] Production.ERROR: pbx CDR StartTime 2025-01-08 21:12:04 - End Time 2025-01-09 00:12:04 [2025-01-09 00:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205822', 'tblTempUsageDetail_20' ) start [2025-01-09 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205822', 'tblTempUsageDetail_20' ) end [2025-01-09 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205822', 'tblTempVendorCDR_20' ) start [2025-01-09 00:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205822', 'tblTempVendorCDR_20' ) end [2025-01-09 00:12:17] Production.INFO: ProcessCDR(1,14205822,1,1,2) [2025-01-09 00:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205822', 'tblTempUsageDetail_20' ) start [2025-01-09 00:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205822', 'tblTempUsageDetail_20' ) end [2025-01-09 00:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:12:20] Production.INFO: ==32049== Releasing lock... [2025-01-09 00:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:12:20] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:13:05 [end_date_ymd] => 2025-01-09 00:13:05 [RateCDR] => 1 ) [2025-01-09 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:13:05' and `end` < '2025-01-09 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:13:18] Production.INFO: count ==102 [2025-01-09 00:13:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:13:05 - End Time 2025-01-09 00:13:05 [2025-01-09 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205827', 'tblTempUsageDetail_20' ) start [2025-01-09 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205827', 'tblTempUsageDetail_20' ) end [2025-01-09 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205827', 'tblTempVendorCDR_20' ) start [2025-01-09 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205827', 'tblTempVendorCDR_20' ) end [2025-01-09 00:13:18] Production.INFO: ProcessCDR(1,14205827,1,1,2) [2025-01-09 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205827', 'tblTempUsageDetail_20' ) start [2025-01-09 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205827', 'tblTempUsageDetail_20' ) end [2025-01-09 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:13:21] Production.INFO: ==32120== Releasing lock... [2025-01-09 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:13:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:14:05 [end_date_ymd] => 2025-01-09 00:14:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:14:05' and `end` < '2025-01-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-01-09 00:14:18] Production.INFO: count ==102 [2025-01-09 00:14:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:14:05 - End Time 2025-01-09 00:14:05 [2025-01-09 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205832', 'tblTempUsageDetail_20' ) start [2025-01-09 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205832', 'tblTempUsageDetail_20' ) end [2025-01-09 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205832', 'tblTempVendorCDR_20' ) start [2025-01-09 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205832', 'tblTempVendorCDR_20' ) end [2025-01-09 00:14:18] Production.INFO: ProcessCDR(1,14205832,1,1,2) [2025-01-09 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205832', 'tblTempUsageDetail_20' ) start [2025-01-09 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205832', 'tblTempUsageDetail_20' ) end [2025-01-09 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:14:21] Production.INFO: ==32191== Releasing lock... [2025-01-09 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:14:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:15:05 [end_date_ymd] => 2025-01-09 00:15:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:15:05' and `end` < '2025-01-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-01-09 00:15:18] Production.INFO: count ==102 [2025-01-09 00:15:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:15:05 - End Time 2025-01-09 00:15:05 [2025-01-09 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205837', 'tblTempUsageDetail_20' ) start [2025-01-09 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205837', 'tblTempUsageDetail_20' ) end [2025-01-09 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205837', 'tblTempVendorCDR_20' ) start [2025-01-09 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205837', 'tblTempVendorCDR_20' ) end [2025-01-09 00:15:18] Production.INFO: ProcessCDR(1,14205837,1,1,2) [2025-01-09 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205837', 'tblTempUsageDetail_20' ) start [2025-01-09 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205837', 'tblTempUsageDetail_20' ) end [2025-01-09 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:15:21] Production.INFO: ==32264== Releasing lock... [2025-01-09 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:15:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:16:05 [end_date_ymd] => 2025-01-09 00:16:05 [RateCDR] => 1 ) [2025-01-09 00:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:16:05' and `end` < '2025-01-09 00:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:16:18] Production.INFO: count ==102 [2025-01-09 00:16:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:16:05 - End Time 2025-01-09 00:16:05 [2025-01-09 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205842', 'tblTempUsageDetail_20' ) start [2025-01-09 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205842', 'tblTempUsageDetail_20' ) end [2025-01-09 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205842', 'tblTempVendorCDR_20' ) start [2025-01-09 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205842', 'tblTempVendorCDR_20' ) end [2025-01-09 00:16:18] Production.INFO: ProcessCDR(1,14205842,1,1,2) [2025-01-09 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205842', 'tblTempUsageDetail_20' ) start [2025-01-09 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205842', 'tblTempUsageDetail_20' ) end [2025-01-09 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:16:21] Production.INFO: ==32334== Releasing lock... [2025-01-09 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:16:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:17:05 [end_date_ymd] => 2025-01-09 00:17:05 [RateCDR] => 1 ) [2025-01-09 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:17:05' and `end` < '2025-01-09 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:17:18] Production.INFO: count ==102 [2025-01-09 00:17:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:17:05 - End Time 2025-01-09 00:17:05 [2025-01-09 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205847', 'tblTempUsageDetail_20' ) start [2025-01-09 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205847', 'tblTempUsageDetail_20' ) end [2025-01-09 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205847', 'tblTempVendorCDR_20' ) start [2025-01-09 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205847', 'tblTempVendorCDR_20' ) end [2025-01-09 00:17:18] Production.INFO: ProcessCDR(1,14205847,1,1,2) [2025-01-09 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205847', 'tblTempUsageDetail_20' ) start [2025-01-09 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205847', 'tblTempUsageDetail_20' ) end [2025-01-09 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:17:21] Production.INFO: ==32407== Releasing lock... [2025-01-09 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:17:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:18:05 [end_date_ymd] => 2025-01-09 00:18:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:18:05' and `end` < '2025-01-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-01-09 00:18:18] Production.INFO: count ==102 [2025-01-09 00:18:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:18:05 - End Time 2025-01-09 00:18:05 [2025-01-09 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205852', 'tblTempUsageDetail_20' ) start [2025-01-09 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205852', 'tblTempUsageDetail_20' ) end [2025-01-09 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205852', 'tblTempVendorCDR_20' ) start [2025-01-09 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205852', 'tblTempVendorCDR_20' ) end [2025-01-09 00:18:18] Production.INFO: ProcessCDR(1,14205852,1,1,2) [2025-01-09 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205852', 'tblTempUsageDetail_20' ) start [2025-01-09 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205852', 'tblTempUsageDetail_20' ) end [2025-01-09 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:18:21] Production.INFO: ==32535== Releasing lock... [2025-01-09 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:18:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:19:04 [end_date_ymd] => 2025-01-09 00:19:04 [RateCDR] => 1 ) [2025-01-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-01-08 21:19:04' and `end` < '2025-01-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-01-09 00:19:17] Production.INFO: count ==102 [2025-01-09 00:19:17] Production.ERROR: pbx CDR StartTime 2025-01-08 21:19:04 - End Time 2025-01-09 00:19:04 [2025-01-09 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205857', 'tblTempUsageDetail_20' ) start [2025-01-09 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205857', 'tblTempUsageDetail_20' ) end [2025-01-09 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205857', 'tblTempVendorCDR_20' ) start [2025-01-09 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205857', 'tblTempVendorCDR_20' ) end [2025-01-09 00:19:17] Production.INFO: ProcessCDR(1,14205857,1,1,2) [2025-01-09 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205857', 'tblTempUsageDetail_20' ) start [2025-01-09 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205857', 'tblTempUsageDetail_20' ) end [2025-01-09 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:19:21] Production.INFO: ==32603== Releasing lock... [2025-01-09 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:19:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:20:06 [end_date_ymd] => 2025-01-09 00:20:06 [RateCDR] => 1 ) [2025-01-09 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:20:06' and `end` < '2025-01-09 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:20:19] Production.INFO: count ==112 [2025-01-09 00:20:19] Production.ERROR: pbx CDR StartTime 2025-01-08 21:20:06 - End Time 2025-01-09 00:20:06 [2025-01-09 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205863', 'tblTempUsageDetail_20' ) start [2025-01-09 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205863', 'tblTempUsageDetail_20' ) end [2025-01-09 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205863', 'tblTempVendorCDR_20' ) start [2025-01-09 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205863', 'tblTempVendorCDR_20' ) end [2025-01-09 00:20:19] Production.INFO: ProcessCDR(1,14205863,1,1,2) [2025-01-09 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205863', 'tblTempUsageDetail_20' ) start [2025-01-09 00:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205863', 'tblTempUsageDetail_20' ) end [2025-01-09 00:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:20:24] Production.INFO: ==32676== Releasing lock... [2025-01-09 00:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:20:24] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:21:04 [end_date_ymd] => 2025-01-09 00:21:04 [RateCDR] => 1 ) [2025-01-09 00:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:21:04' and `end` < '2025-01-09 00:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:21:17] Production.INFO: count ==126 [2025-01-09 00:21:17] Production.ERROR: pbx CDR StartTime 2025-01-08 21:21:04 - End Time 2025-01-09 00:21:04 [2025-01-09 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205868', 'tblTempUsageDetail_20' ) start [2025-01-09 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205868', 'tblTempUsageDetail_20' ) end [2025-01-09 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205868', 'tblTempVendorCDR_20' ) start [2025-01-09 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205868', 'tblTempVendorCDR_20' ) end [2025-01-09 00:21:17] Production.INFO: ProcessCDR(1,14205868,1,1,2) [2025-01-09 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205868', 'tblTempUsageDetail_20' ) start [2025-01-09 00:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205868', 'tblTempUsageDetail_20' ) end [2025-01-09 00:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:21:20] Production.INFO: ==32748== Releasing lock... [2025-01-09 00:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:21:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:22:05 [end_date_ymd] => 2025-01-09 00:22:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:22:05' and `end` < '2025-01-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-01-09 00:22:18] Production.INFO: count ==126 [2025-01-09 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:22:05 - End Time 2025-01-09 00:22:05 [2025-01-09 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205873', 'tblTempUsageDetail_20' ) start [2025-01-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205873', 'tblTempUsageDetail_20' ) end [2025-01-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205873', 'tblTempVendorCDR_20' ) start [2025-01-09 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205873', 'tblTempVendorCDR_20' ) end [2025-01-09 00:22:18] Production.INFO: ProcessCDR(1,14205873,1,1,2) [2025-01-09 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205873', 'tblTempUsageDetail_20' ) start [2025-01-09 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205873', 'tblTempUsageDetail_20' ) end [2025-01-09 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:22:21] Production.INFO: ==373== Releasing lock... [2025-01-09 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:23:04 [end_date_ymd] => 2025-01-09 00:23:04 [RateCDR] => 1 ) [2025-01-09 00:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:23:04' and `end` < '2025-01-09 00:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:23:17] Production.INFO: count ==126 [2025-01-09 00:23:17] Production.ERROR: pbx CDR StartTime 2025-01-08 21:23:04 - End Time 2025-01-09 00:23:04 [2025-01-09 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205878', 'tblTempUsageDetail_20' ) start [2025-01-09 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205878', 'tblTempUsageDetail_20' ) end [2025-01-09 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205878', 'tblTempVendorCDR_20' ) start [2025-01-09 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205878', 'tblTempVendorCDR_20' ) end [2025-01-09 00:23:17] Production.INFO: ProcessCDR(1,14205878,1,1,2) [2025-01-09 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205878', 'tblTempUsageDetail_20' ) start [2025-01-09 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205878', 'tblTempUsageDetail_20' ) end [2025-01-09 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:23:20] Production.INFO: ==455== Releasing lock... [2025-01-09 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:23:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:24:05 [end_date_ymd] => 2025-01-09 00:24:05 [RateCDR] => 1 ) [2025-01-09 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:24:05' and `end` < '2025-01-09 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:24:18] Production.INFO: count ==126 [2025-01-09 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:24:05 - End Time 2025-01-09 00:24:05 [2025-01-09 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205883', 'tblTempUsageDetail_20' ) start [2025-01-09 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205883', 'tblTempUsageDetail_20' ) end [2025-01-09 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205883', 'tblTempVendorCDR_20' ) start [2025-01-09 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205883', 'tblTempVendorCDR_20' ) end [2025-01-09 00:24:18] Production.INFO: ProcessCDR(1,14205883,1,1,2) [2025-01-09 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205883', 'tblTempUsageDetail_20' ) start [2025-01-09 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205883', 'tblTempUsageDetail_20' ) end [2025-01-09 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:24:21] Production.INFO: ==538== Releasing lock... [2025-01-09 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:25:05 [end_date_ymd] => 2025-01-09 00:25:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:25:05' and `end` < '2025-01-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-01-09 00:25:18] Production.INFO: count ==126 [2025-01-09 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:25:05 - End Time 2025-01-09 00:25:05 [2025-01-09 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205888', 'tblTempUsageDetail_20' ) start [2025-01-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205888', 'tblTempUsageDetail_20' ) end [2025-01-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205888', 'tblTempVendorCDR_20' ) start [2025-01-09 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205888', 'tblTempVendorCDR_20' ) end [2025-01-09 00:25:18] Production.INFO: ProcessCDR(1,14205888,1,1,2) [2025-01-09 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205888', 'tblTempUsageDetail_20' ) start [2025-01-09 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205888', 'tblTempUsageDetail_20' ) end [2025-01-09 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:25:21] Production.INFO: ==627== Releasing lock... [2025-01-09 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:26:04 [end_date_ymd] => 2025-01-09 00:26:04 [RateCDR] => 1 ) [2025-01-09 00:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:26:04' and `end` < '2025-01-09 00:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:26:18] Production.INFO: count ==126 [2025-01-09 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:26:04 - End Time 2025-01-09 00:26:04 [2025-01-09 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205893', 'tblTempUsageDetail_20' ) start [2025-01-09 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205893', 'tblTempUsageDetail_20' ) end [2025-01-09 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205893', 'tblTempVendorCDR_20' ) start [2025-01-09 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205893', 'tblTempVendorCDR_20' ) end [2025-01-09 00:26:18] Production.INFO: ProcessCDR(1,14205893,1,1,2) [2025-01-09 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205893', 'tblTempUsageDetail_20' ) start [2025-01-09 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205893', 'tblTempUsageDetail_20' ) end [2025-01-09 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:26:21] Production.INFO: ==732== Releasing lock... [2025-01-09 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:27:05 [end_date_ymd] => 2025-01-09 00:27:05 [RateCDR] => 1 ) [2025-01-09 00:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:27:05' and `end` < '2025-01-09 00:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:27:18] Production.INFO: count ==126 [2025-01-09 00:27:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:27:05 - End Time 2025-01-09 00:27:05 [2025-01-09 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205898', 'tblTempUsageDetail_20' ) start [2025-01-09 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205898', 'tblTempUsageDetail_20' ) end [2025-01-09 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205898', 'tblTempVendorCDR_20' ) start [2025-01-09 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205898', 'tblTempVendorCDR_20' ) end [2025-01-09 00:27:18] Production.INFO: ProcessCDR(1,14205898,1,1,2) [2025-01-09 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205898', 'tblTempUsageDetail_20' ) start [2025-01-09 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205898', 'tblTempUsageDetail_20' ) end [2025-01-09 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:27:21] Production.INFO: ==816== Releasing lock... [2025-01-09 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:28:04 [end_date_ymd] => 2025-01-09 00:28:04 [RateCDR] => 1 ) [2025-01-09 00:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:28:04' and `end` < '2025-01-09 00:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:28:17] Production.INFO: count ==126 [2025-01-09 00:28:17] Production.ERROR: pbx CDR StartTime 2025-01-08 21:28:04 - End Time 2025-01-09 00:28:04 [2025-01-09 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205903', 'tblTempUsageDetail_20' ) start [2025-01-09 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205903', 'tblTempUsageDetail_20' ) end [2025-01-09 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205903', 'tblTempVendorCDR_20' ) start [2025-01-09 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205903', 'tblTempVendorCDR_20' ) end [2025-01-09 00:28:17] Production.INFO: ProcessCDR(1,14205903,1,1,2) [2025-01-09 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205903', 'tblTempUsageDetail_20' ) start [2025-01-09 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205903', 'tblTempUsageDetail_20' ) end [2025-01-09 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:28:20] Production.INFO: ==896== Releasing lock... [2025-01-09 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:28:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:29:05 [end_date_ymd] => 2025-01-09 00:29:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:29:05' and `end` < '2025-01-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-01-09 00:29:18] Production.INFO: count ==126 [2025-01-09 00:29:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:29:05 - End Time 2025-01-09 00:29:05 [2025-01-09 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205908', 'tblTempUsageDetail_20' ) start [2025-01-09 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205908', 'tblTempUsageDetail_20' ) end [2025-01-09 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205908', 'tblTempVendorCDR_20' ) start [2025-01-09 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205908', 'tblTempVendorCDR_20' ) end [2025-01-09 00:29:18] Production.INFO: ProcessCDR(1,14205908,1,1,2) [2025-01-09 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205908', 'tblTempUsageDetail_20' ) start [2025-01-09 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205908', 'tblTempUsageDetail_20' ) end [2025-01-09 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:29:21] Production.INFO: ==978== Releasing lock... [2025-01-09 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:30:06 [end_date_ymd] => 2025-01-09 00:30:06 [RateCDR] => 1 ) [2025-01-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-01-08 21:30:06' and `end` < '2025-01-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-01-09 00:30:19] Production.INFO: count ==128 [2025-01-09 00:30:19] Production.ERROR: pbx CDR StartTime 2025-01-08 21:30:06 - End Time 2025-01-09 00:30:06 [2025-01-09 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205914', 'tblTempUsageDetail_20' ) start [2025-01-09 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205914', 'tblTempUsageDetail_20' ) end [2025-01-09 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205914', 'tblTempVendorCDR_20' ) start [2025-01-09 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205914', 'tblTempVendorCDR_20' ) end [2025-01-09 00:30:19] Production.INFO: ProcessCDR(1,14205914,1,1,2) [2025-01-09 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205914', 'tblTempUsageDetail_20' ) start [2025-01-09 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205914', 'tblTempUsageDetail_20' ) end [2025-01-09 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:30:22] Production.INFO: ==1059== Releasing lock... [2025-01-09 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:31:04 [end_date_ymd] => 2025-01-09 00:31:04 [RateCDR] => 1 ) [2025-01-09 00:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:31:04' and `end` < '2025-01-09 00:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:31:17] Production.INFO: count ==128 [2025-01-09 00:31:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:31:04 - End Time 2025-01-09 00:31:04 [2025-01-09 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205919', 'tblTempUsageDetail_20' ) start [2025-01-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205919', 'tblTempUsageDetail_20' ) end [2025-01-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205919', 'tblTempVendorCDR_20' ) start [2025-01-09 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205919', 'tblTempVendorCDR_20' ) end [2025-01-09 00:31:18] Production.INFO: ProcessCDR(1,14205919,1,1,2) [2025-01-09 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205919', 'tblTempUsageDetail_20' ) start [2025-01-09 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205919', 'tblTempUsageDetail_20' ) end [2025-01-09 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:31:21] Production.INFO: ==1141== Releasing lock... [2025-01-09 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:32:05 [end_date_ymd] => 2025-01-09 00:32:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:32:05' and `end` < '2025-01-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-01-09 00:32:18] Production.INFO: count ==128 [2025-01-09 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:32:05 - End Time 2025-01-09 00:32:05 [2025-01-09 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205924', 'tblTempUsageDetail_20' ) start [2025-01-09 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205924', 'tblTempUsageDetail_20' ) end [2025-01-09 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205924', 'tblTempVendorCDR_20' ) start [2025-01-09 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205924', 'tblTempVendorCDR_20' ) end [2025-01-09 00:32:18] Production.INFO: ProcessCDR(1,14205924,1,1,2) [2025-01-09 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205924', 'tblTempUsageDetail_20' ) start [2025-01-09 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205924', 'tblTempUsageDetail_20' ) end [2025-01-09 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:32:21] Production.INFO: ==1227== Releasing lock... [2025-01-09 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:32:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-09 00:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:33:04 [end_date_ymd] => 2025-01-09 00:33:04 [RateCDR] => 1 ) [2025-01-09 00:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:33:04' and `end` < '2025-01-09 00:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:33:17] Production.INFO: count ==128 [2025-01-09 00:33:17] Production.ERROR: pbx CDR StartTime 2025-01-08 21:33:04 - End Time 2025-01-09 00:33:04 [2025-01-09 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205929', 'tblTempUsageDetail_20' ) start [2025-01-09 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205929', 'tblTempUsageDetail_20' ) end [2025-01-09 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205929', 'tblTempVendorCDR_20' ) start [2025-01-09 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205929', 'tblTempVendorCDR_20' ) end [2025-01-09 00:33:17] Production.INFO: ProcessCDR(1,14205929,1,1,2) [2025-01-09 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205929', 'tblTempUsageDetail_20' ) start [2025-01-09 00:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205929', 'tblTempUsageDetail_20' ) end [2025-01-09 00:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:33:20] Production.INFO: ==1363== Releasing lock... [2025-01-09 00:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:33:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:34:05 [end_date_ymd] => 2025-01-09 00:34:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:34:05' and `end` < '2025-01-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-01-09 00:34:18] Production.INFO: count ==128 [2025-01-09 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:34:05 - End Time 2025-01-09 00:34:05 [2025-01-09 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205934', 'tblTempUsageDetail_20' ) start [2025-01-09 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205934', 'tblTempUsageDetail_20' ) end [2025-01-09 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205934', 'tblTempVendorCDR_20' ) start [2025-01-09 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205934', 'tblTempVendorCDR_20' ) end [2025-01-09 00:34:18] Production.INFO: ProcessCDR(1,14205934,1,1,2) [2025-01-09 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205934', 'tblTempUsageDetail_20' ) start [2025-01-09 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205934', 'tblTempUsageDetail_20' ) end [2025-01-09 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:34:21] Production.INFO: ==1433== Releasing lock... [2025-01-09 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:35:04 [end_date_ymd] => 2025-01-09 00:35:04 [RateCDR] => 1 ) [2025-01-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-01-08 21:35:04' and `end` < '2025-01-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-01-09 00:35:17] Production.INFO: count ==128 [2025-01-09 00:35:17] Production.ERROR: pbx CDR StartTime 2025-01-08 21:35:04 - End Time 2025-01-09 00:35:04 [2025-01-09 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205939', 'tblTempUsageDetail_20' ) start [2025-01-09 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205939', 'tblTempUsageDetail_20' ) end [2025-01-09 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205939', 'tblTempVendorCDR_20' ) start [2025-01-09 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205939', 'tblTempVendorCDR_20' ) end [2025-01-09 00:35:17] Production.INFO: ProcessCDR(1,14205939,1,1,2) [2025-01-09 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205939', 'tblTempUsageDetail_20' ) start [2025-01-09 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205939', 'tblTempUsageDetail_20' ) end [2025-01-09 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:35:20] Production.INFO: ==1535== Releasing lock... [2025-01-09 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:35:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:36:05 [end_date_ymd] => 2025-01-09 00:36:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:36:05' and `end` < '2025-01-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-01-09 00:36:18] Production.INFO: count ==128 [2025-01-09 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:36:05 - End Time 2025-01-09 00:36:05 [2025-01-09 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205944', 'tblTempUsageDetail_20' ) start [2025-01-09 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205944', 'tblTempUsageDetail_20' ) end [2025-01-09 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205944', 'tblTempVendorCDR_20' ) start [2025-01-09 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205944', 'tblTempVendorCDR_20' ) end [2025-01-09 00:36:18] Production.INFO: ProcessCDR(1,14205944,1,1,2) [2025-01-09 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205944', 'tblTempUsageDetail_20' ) start [2025-01-09 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205944', 'tblTempUsageDetail_20' ) end [2025-01-09 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:36:21] Production.INFO: ==1616== Releasing lock... [2025-01-09 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:37:05 [end_date_ymd] => 2025-01-09 00:37:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:37:05' and `end` < '2025-01-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-01-09 00:37:18] Production.INFO: count ==128 [2025-01-09 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:37:05 - End Time 2025-01-09 00:37:05 [2025-01-09 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205949', 'tblTempUsageDetail_20' ) start [2025-01-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205949', 'tblTempUsageDetail_20' ) end [2025-01-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205949', 'tblTempVendorCDR_20' ) start [2025-01-09 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205949', 'tblTempVendorCDR_20' ) end [2025-01-09 00:37:18] Production.INFO: ProcessCDR(1,14205949,1,1,2) [2025-01-09 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205949', 'tblTempUsageDetail_20' ) start [2025-01-09 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205949', 'tblTempUsageDetail_20' ) end [2025-01-09 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:37:21] Production.INFO: ==1685== Releasing lock... [2025-01-09 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:38:05 [end_date_ymd] => 2025-01-09 00:38:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:38:05' and `end` < '2025-01-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-01-09 00:38:19] Production.INFO: count ==128 [2025-01-09 00:38:19] Production.ERROR: pbx CDR StartTime 2025-01-08 21:38:05 - End Time 2025-01-09 00:38:05 [2025-01-09 00:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205954', 'tblTempUsageDetail_20' ) start [2025-01-09 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205954', 'tblTempUsageDetail_20' ) end [2025-01-09 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205954', 'tblTempVendorCDR_20' ) start [2025-01-09 00:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205954', 'tblTempVendorCDR_20' ) end [2025-01-09 00:38:19] Production.INFO: ProcessCDR(1,14205954,1,1,2) [2025-01-09 00:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205954', 'tblTempUsageDetail_20' ) start [2025-01-09 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205954', 'tblTempUsageDetail_20' ) end [2025-01-09 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:38:22] Production.INFO: ==1756== Releasing lock... [2025-01-09 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:38:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:39:05 [end_date_ymd] => 2025-01-09 00:39:05 [RateCDR] => 1 ) [2025-01-09 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:39:05' and `end` < '2025-01-09 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:39:18] Production.INFO: count ==128 [2025-01-09 00:39:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:39:05 - End Time 2025-01-09 00:39:05 [2025-01-09 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205959', 'tblTempUsageDetail_20' ) start [2025-01-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205959', 'tblTempUsageDetail_20' ) end [2025-01-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205959', 'tblTempVendorCDR_20' ) start [2025-01-09 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205959', 'tblTempVendorCDR_20' ) end [2025-01-09 00:39:18] Production.INFO: ProcessCDR(1,14205959,1,1,2) [2025-01-09 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205959', 'tblTempUsageDetail_20' ) start [2025-01-09 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205959', 'tblTempUsageDetail_20' ) end [2025-01-09 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:39:21] Production.INFO: ==1831== Releasing lock... [2025-01-09 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:40:05 [end_date_ymd] => 2025-01-09 00:40:05 [RateCDR] => 1 ) [2025-01-09 00:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:40:05' and `end` < '2025-01-09 00:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:40:18] Production.INFO: count ==133 [2025-01-09 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:40:05 - End Time 2025-01-09 00:40:05 [2025-01-09 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205965', 'tblTempUsageDetail_20' ) start [2025-01-09 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205965', 'tblTempUsageDetail_20' ) end [2025-01-09 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205965', 'tblTempVendorCDR_20' ) start [2025-01-09 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205965', 'tblTempVendorCDR_20' ) end [2025-01-09 00:40:18] Production.INFO: ProcessCDR(1,14205965,1,1,2) [2025-01-09 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205965', 'tblTempUsageDetail_20' ) start [2025-01-09 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205965', 'tblTempUsageDetail_20' ) end [2025-01-09 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:40:21] Production.INFO: ==1903== Releasing lock... [2025-01-09 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:41:05 [end_date_ymd] => 2025-01-09 00:41:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:41:05' and `end` < '2025-01-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-01-09 00:41:18] Production.INFO: count ==145 [2025-01-09 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:41:05 - End Time 2025-01-09 00:41:05 [2025-01-09 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205970', 'tblTempUsageDetail_20' ) start [2025-01-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205970', 'tblTempUsageDetail_20' ) end [2025-01-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205970', 'tblTempVendorCDR_20' ) start [2025-01-09 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205970', 'tblTempVendorCDR_20' ) end [2025-01-09 00:41:18] Production.INFO: ProcessCDR(1,14205970,1,1,2) [2025-01-09 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205970', 'tblTempUsageDetail_20' ) start [2025-01-09 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205970', 'tblTempUsageDetail_20' ) end [2025-01-09 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:41:21] Production.INFO: ==1975== Releasing lock... [2025-01-09 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:42:06 [end_date_ymd] => 2025-01-09 00:42:06 [RateCDR] => 1 ) [2025-01-09 00:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:42:06' and `end` < '2025-01-09 00:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:42:20] Production.INFO: count ==145 [2025-01-09 00:42:20] Production.ERROR: pbx CDR StartTime 2025-01-08 21:42:06 - End Time 2025-01-09 00:42:06 [2025-01-09 00:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205975', 'tblTempUsageDetail_20' ) start [2025-01-09 00:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205975', 'tblTempUsageDetail_20' ) end [2025-01-09 00:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205975', 'tblTempVendorCDR_20' ) start [2025-01-09 00:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205975', 'tblTempVendorCDR_20' ) end [2025-01-09 00:42:20] Production.INFO: ProcessCDR(1,14205975,1,1,2) [2025-01-09 00:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205975', 'tblTempUsageDetail_20' ) start [2025-01-09 00:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205975', 'tblTempUsageDetail_20' ) end [2025-01-09 00:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:42:23] Production.INFO: ==2047== Releasing lock... [2025-01-09 00:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:42:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:43:05 [end_date_ymd] => 2025-01-09 00:43:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:43:05' and `end` < '2025-01-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-01-09 00:43:18] Production.INFO: count ==145 [2025-01-09 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:43:05 - End Time 2025-01-09 00:43:05 [2025-01-09 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205980', 'tblTempUsageDetail_20' ) start [2025-01-09 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205980', 'tblTempUsageDetail_20' ) end [2025-01-09 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205980', 'tblTempVendorCDR_20' ) start [2025-01-09 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205980', 'tblTempVendorCDR_20' ) end [2025-01-09 00:43:18] Production.INFO: ProcessCDR(1,14205980,1,1,2) [2025-01-09 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205980', 'tblTempUsageDetail_20' ) start [2025-01-09 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205980', 'tblTempUsageDetail_20' ) end [2025-01-09 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:43:21] Production.INFO: ==2116== Releasing lock... [2025-01-09 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:44:05 [end_date_ymd] => 2025-01-09 00:44:05 [RateCDR] => 1 ) [2025-01-09 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:44:05' and `end` < '2025-01-09 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:44:18] Production.INFO: count ==145 [2025-01-09 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:44:05 - End Time 2025-01-09 00:44:05 [2025-01-09 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205985', 'tblTempUsageDetail_20' ) start [2025-01-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205985', 'tblTempUsageDetail_20' ) end [2025-01-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205985', 'tblTempVendorCDR_20' ) start [2025-01-09 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205985', 'tblTempVendorCDR_20' ) end [2025-01-09 00:44:18] Production.INFO: ProcessCDR(1,14205985,1,1,2) [2025-01-09 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205985', 'tblTempUsageDetail_20' ) start [2025-01-09 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205985', 'tblTempUsageDetail_20' ) end [2025-01-09 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:44:21] Production.INFO: ==2187== Releasing lock... [2025-01-09 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:45:04 [end_date_ymd] => 2025-01-09 00:45:04 [RateCDR] => 1 ) [2025-01-09 00:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:45:04' and `end` < '2025-01-09 00:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:45:17] Production.INFO: count ==144 [2025-01-09 00:45:17] Production.ERROR: pbx CDR StartTime 2025-01-08 21:45:04 - End Time 2025-01-09 00:45:04 [2025-01-09 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205990', 'tblTempUsageDetail_20' ) start [2025-01-09 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205990', 'tblTempUsageDetail_20' ) end [2025-01-09 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205990', 'tblTempVendorCDR_20' ) start [2025-01-09 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205990', 'tblTempVendorCDR_20' ) end [2025-01-09 00:45:17] Production.INFO: ProcessCDR(1,14205990,1,1,2) [2025-01-09 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205990', 'tblTempUsageDetail_20' ) start [2025-01-09 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205990', 'tblTempUsageDetail_20' ) end [2025-01-09 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:45:20] Production.INFO: ==2259== Releasing lock... [2025-01-09 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:45:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:46:04 [end_date_ymd] => 2025-01-09 00:46:04 [RateCDR] => 1 ) [2025-01-09 00:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:46:04' and `end` < '2025-01-09 00:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:46:17] Production.INFO: count ==144 [2025-01-09 00:46:17] Production.ERROR: pbx CDR StartTime 2025-01-08 21:46:04 - End Time 2025-01-09 00:46:04 [2025-01-09 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205995', 'tblTempUsageDetail_20' ) start [2025-01-09 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14205995', 'tblTempUsageDetail_20' ) end [2025-01-09 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205995', 'tblTempVendorCDR_20' ) start [2025-01-09 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14205995', 'tblTempVendorCDR_20' ) end [2025-01-09 00:46:17] Production.INFO: ProcessCDR(1,14205995,1,1,2) [2025-01-09 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14205995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14205995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14205995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14205995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205995', 'tblTempUsageDetail_20' ) start [2025-01-09 00:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14205995', 'tblTempUsageDetail_20' ) end [2025-01-09 00:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:46:20] Production.INFO: ==2331== Releasing lock... [2025-01-09 00:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:46:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:47:05 [end_date_ymd] => 2025-01-09 00:47:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:47:05' and `end` < '2025-01-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-01-09 00:47:18] Production.INFO: count ==142 [2025-01-09 00:47:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:47:05 - End Time 2025-01-09 00:47:05 [2025-01-09 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206000', 'tblTempUsageDetail_20' ) start [2025-01-09 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206000', 'tblTempUsageDetail_20' ) end [2025-01-09 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206000', 'tblTempVendorCDR_20' ) start [2025-01-09 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206000', 'tblTempVendorCDR_20' ) end [2025-01-09 00:47:18] Production.INFO: ProcessCDR(1,14206000,1,1,2) [2025-01-09 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206000', 'tblTempUsageDetail_20' ) start [2025-01-09 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206000', 'tblTempUsageDetail_20' ) end [2025-01-09 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:47:21] Production.INFO: ==2404== Releasing lock... [2025-01-09 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:48:04 [end_date_ymd] => 2025-01-09 00:48:04 [RateCDR] => 1 ) [2025-01-09 00:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:48:04' and `end` < '2025-01-09 00:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:48:19] Production.INFO: count ==142 [2025-01-09 00:48:19] Production.ERROR: pbx CDR StartTime 2025-01-08 21:48:04 - End Time 2025-01-09 00:48:04 [2025-01-09 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206005', 'tblTempUsageDetail_20' ) start [2025-01-09 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206005', 'tblTempUsageDetail_20' ) end [2025-01-09 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206005', 'tblTempVendorCDR_20' ) start [2025-01-09 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206005', 'tblTempVendorCDR_20' ) end [2025-01-09 00:48:19] Production.INFO: ProcessCDR(1,14206005,1,1,2) [2025-01-09 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206005', 'tblTempUsageDetail_20' ) start [2025-01-09 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206005', 'tblTempUsageDetail_20' ) end [2025-01-09 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:48:22] Production.INFO: ==2477== Releasing lock... [2025-01-09 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:48:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:49:05 [end_date_ymd] => 2025-01-09 00:49:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:49:05' and `end` < '2025-01-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-01-09 00:49:18] Production.INFO: count ==145 [2025-01-09 00:49:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:49:05 - End Time 2025-01-09 00:49:05 [2025-01-09 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206010', 'tblTempUsageDetail_20' ) start [2025-01-09 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206010', 'tblTempUsageDetail_20' ) end [2025-01-09 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206010', 'tblTempVendorCDR_20' ) start [2025-01-09 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206010', 'tblTempVendorCDR_20' ) end [2025-01-09 00:49:18] Production.INFO: ProcessCDR(1,14206010,1,1,2) [2025-01-09 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206010', 'tblTempUsageDetail_20' ) start [2025-01-09 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206010', 'tblTempUsageDetail_20' ) end [2025-01-09 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:49:22] Production.INFO: ==2589== Releasing lock... [2025-01-09 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:50:05 [end_date_ymd] => 2025-01-09 00:50:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:50:05' and `end` < '2025-01-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-01-09 00:50:18] Production.INFO: count ==148 [2025-01-09 00:50:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:50:05 - End Time 2025-01-09 00:50:05 [2025-01-09 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206016', 'tblTempUsageDetail_20' ) start [2025-01-09 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206016', 'tblTempUsageDetail_20' ) end [2025-01-09 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206016', 'tblTempVendorCDR_20' ) start [2025-01-09 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206016', 'tblTempVendorCDR_20' ) end [2025-01-09 00:50:18] Production.INFO: ProcessCDR(1,14206016,1,1,2) [2025-01-09 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206016', 'tblTempUsageDetail_20' ) start [2025-01-09 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206016', 'tblTempUsageDetail_20' ) end [2025-01-09 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:50:21] Production.INFO: ==2661== Releasing lock... [2025-01-09 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:51:05 [end_date_ymd] => 2025-01-09 00:51:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:51:05' and `end` < '2025-01-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-01-09 00:51:17] Production.INFO: count ==147 [2025-01-09 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:51:05 - End Time 2025-01-09 00:51:05 [2025-01-09 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206021', 'tblTempUsageDetail_20' ) start [2025-01-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206021', 'tblTempUsageDetail_20' ) end [2025-01-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206021', 'tblTempVendorCDR_20' ) start [2025-01-09 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206021', 'tblTempVendorCDR_20' ) end [2025-01-09 00:51:18] Production.INFO: ProcessCDR(1,14206021,1,1,2) [2025-01-09 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206021', 'tblTempUsageDetail_20' ) start [2025-01-09 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206021', 'tblTempUsageDetail_20' ) end [2025-01-09 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:51:21] Production.INFO: ==2734== Releasing lock... [2025-01-09 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:52:04 [end_date_ymd] => 2025-01-09 00:52:04 [RateCDR] => 1 ) [2025-01-09 00:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:52:04' and `end` < '2025-01-09 00:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:52:17] Production.INFO: count ==147 [2025-01-09 00:52:17] Production.ERROR: pbx CDR StartTime 2025-01-08 21:52:04 - End Time 2025-01-09 00:52:04 [2025-01-09 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206026', 'tblTempUsageDetail_20' ) start [2025-01-09 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206026', 'tblTempUsageDetail_20' ) end [2025-01-09 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206026', 'tblTempVendorCDR_20' ) start [2025-01-09 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206026', 'tblTempVendorCDR_20' ) end [2025-01-09 00:52:17] Production.INFO: ProcessCDR(1,14206026,1,1,2) [2025-01-09 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206026', 'tblTempUsageDetail_20' ) start [2025-01-09 00:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206026', 'tblTempUsageDetail_20' ) end [2025-01-09 00:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:52:20] Production.INFO: ==2804== Releasing lock... [2025-01-09 00:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:52:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:53:05 [end_date_ymd] => 2025-01-09 00:53:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:53:05' and `end` < '2025-01-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-01-09 00:53:17] Production.INFO: count ==147 [2025-01-09 00:53:17] Production.ERROR: pbx CDR StartTime 2025-01-08 21:53:05 - End Time 2025-01-09 00:53:05 [2025-01-09 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206031', 'tblTempUsageDetail_20' ) start [2025-01-09 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206031', 'tblTempUsageDetail_20' ) end [2025-01-09 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206031', 'tblTempVendorCDR_20' ) start [2025-01-09 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206031', 'tblTempVendorCDR_20' ) end [2025-01-09 00:53:17] Production.INFO: ProcessCDR(1,14206031,1,1,2) [2025-01-09 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206031', 'tblTempUsageDetail_20' ) start [2025-01-09 00:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206031', 'tblTempUsageDetail_20' ) end [2025-01-09 00:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:53:20] Production.INFO: ==2876== Releasing lock... [2025-01-09 00:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:53:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:54:05 [end_date_ymd] => 2025-01-09 00:54:05 [RateCDR] => 1 ) [2025-01-09 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:54:05' and `end` < '2025-01-09 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:54:19] Production.INFO: count ==147 [2025-01-09 00:54:19] Production.ERROR: pbx CDR StartTime 2025-01-08 21:54:05 - End Time 2025-01-09 00:54:05 [2025-01-09 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206036', 'tblTempUsageDetail_20' ) start [2025-01-09 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206036', 'tblTempUsageDetail_20' ) end [2025-01-09 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206036', 'tblTempVendorCDR_20' ) start [2025-01-09 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206036', 'tblTempVendorCDR_20' ) end [2025-01-09 00:54:19] Production.INFO: ProcessCDR(1,14206036,1,1,2) [2025-01-09 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206036', 'tblTempUsageDetail_20' ) start [2025-01-09 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206036', 'tblTempUsageDetail_20' ) end [2025-01-09 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:54:22] Production.INFO: ==2947== Releasing lock... [2025-01-09 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:54:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:55:04 [end_date_ymd] => 2025-01-09 00:55:04 [RateCDR] => 1 ) [2025-01-09 00:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:55:04' and `end` < '2025-01-09 00:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:55:17] Production.INFO: count ==149 [2025-01-09 00:55:17] Production.ERROR: pbx CDR StartTime 2025-01-08 21:55:04 - End Time 2025-01-09 00:55:04 [2025-01-09 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206041', 'tblTempUsageDetail_20' ) start [2025-01-09 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206041', 'tblTempUsageDetail_20' ) end [2025-01-09 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206041', 'tblTempVendorCDR_20' ) start [2025-01-09 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206041', 'tblTempVendorCDR_20' ) end [2025-01-09 00:55:17] Production.INFO: ProcessCDR(1,14206041,1,1,2) [2025-01-09 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206041', 'tblTempUsageDetail_20' ) start [2025-01-09 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206041', 'tblTempUsageDetail_20' ) end [2025-01-09 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:55:22] Production.INFO: ==3017== Releasing lock... [2025-01-09 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:55:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:56:05 [end_date_ymd] => 2025-01-09 00:56:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:56:05' and `end` < '2025-01-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-01-09 00:56:18] Production.INFO: count ==149 [2025-01-09 00:56:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:56:05 - End Time 2025-01-09 00:56:05 [2025-01-09 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206046', 'tblTempUsageDetail_20' ) start [2025-01-09 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206046', 'tblTempUsageDetail_20' ) end [2025-01-09 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206046', 'tblTempVendorCDR_20' ) start [2025-01-09 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206046', 'tblTempVendorCDR_20' ) end [2025-01-09 00:56:18] Production.INFO: ProcessCDR(1,14206046,1,1,2) [2025-01-09 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206046', 'tblTempUsageDetail_20' ) start [2025-01-09 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206046', 'tblTempUsageDetail_20' ) end [2025-01-09 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:56:21] Production.INFO: ==3089== Releasing lock... [2025-01-09 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:57:05 [end_date_ymd] => 2025-01-09 00:57:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:57:05' and `end` < '2025-01-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-01-09 00:57:19] Production.INFO: count ==149 [2025-01-09 00:57:19] Production.ERROR: pbx CDR StartTime 2025-01-08 21:57:05 - End Time 2025-01-09 00:57:05 [2025-01-09 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206051', 'tblTempUsageDetail_20' ) start [2025-01-09 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206051', 'tblTempUsageDetail_20' ) end [2025-01-09 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206051', 'tblTempVendorCDR_20' ) start [2025-01-09 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206051', 'tblTempVendorCDR_20' ) end [2025-01-09 00:57:19] Production.INFO: ProcessCDR(1,14206051,1,1,2) [2025-01-09 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206051', 'tblTempUsageDetail_20' ) start [2025-01-09 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206051', 'tblTempUsageDetail_20' ) end [2025-01-09 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:57:22] Production.INFO: ==3159== Releasing lock... [2025-01-09 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:58:05 [end_date_ymd] => 2025-01-09 00:58:05 [RateCDR] => 1 ) [2025-01-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-01-08 21:58:05' and `end` < '2025-01-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-01-09 00:58:18] Production.INFO: count ==150 [2025-01-09 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-08 21:58:05 - End Time 2025-01-09 00:58:05 [2025-01-09 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206056', 'tblTempUsageDetail_20' ) start [2025-01-09 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206056', 'tblTempUsageDetail_20' ) end [2025-01-09 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206056', 'tblTempVendorCDR_20' ) start [2025-01-09 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206056', 'tblTempVendorCDR_20' ) end [2025-01-09 00:58:18] Production.INFO: ProcessCDR(1,14206056,1,1,2) [2025-01-09 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206056', 'tblTempUsageDetail_20' ) start [2025-01-09 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206056', 'tblTempUsageDetail_20' ) end [2025-01-09 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:58:23] Production.INFO: ==3230== Releasing lock... [2025-01-09 00:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:58:23] Production.INFO: 29 MB #Memory Used# [2025-01-09 00:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 21:59:04 [end_date_ymd] => 2025-01-09 00:59:04 [RateCDR] => 1 ) [2025-01-09 00:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 21:59:04' and `end` < '2025-01-09 00:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 00:59:19] Production.INFO: count ==150 [2025-01-09 00:59:19] Production.ERROR: pbx CDR StartTime 2025-01-08 21:59:04 - End Time 2025-01-09 00:59:04 [2025-01-09 00:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206061', 'tblTempUsageDetail_20' ) start [2025-01-09 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206061', 'tblTempUsageDetail_20' ) end [2025-01-09 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206061', 'tblTempVendorCDR_20' ) start [2025-01-09 00:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206061', 'tblTempVendorCDR_20' ) end [2025-01-09 00:59:19] Production.INFO: ProcessCDR(1,14206061,1,1,2) [2025-01-09 00:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 00:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206061', 'tblTempUsageDetail_20' ) start [2025-01-09 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206061', 'tblTempUsageDetail_20' ) end [2025-01-09 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 00:59:22] Production.INFO: ==3301== Releasing lock... [2025-01-09 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 00:59:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:00:05 [end_date_ymd] => 2025-01-09 01:00:05 [RateCDR] => 1 ) [2025-01-09 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:00:05' and `end` < '2025-01-09 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:00:18] Production.INFO: count ==156 [2025-01-09 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:00:05 - End Time 2025-01-09 01:00:05 [2025-01-09 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206066', 'tblTempUsageDetail_20' ) start [2025-01-09 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206066', 'tblTempUsageDetail_20' ) end [2025-01-09 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206066', 'tblTempVendorCDR_20' ) start [2025-01-09 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206066', 'tblTempVendorCDR_20' ) end [2025-01-09 01:00:18] Production.INFO: ProcessCDR(1,14206066,1,1,2) [2025-01-09 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206066', 'tblTempUsageDetail_20' ) start [2025-01-09 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206066', 'tblTempUsageDetail_20' ) end [2025-01-09 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:00:22] Production.INFO: ==3377== Releasing lock... [2025-01-09 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:01:04 [end_date_ymd] => 2025-01-09 01:01:04 [RateCDR] => 1 ) [2025-01-09 01:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:01:04' and `end` < '2025-01-09 01:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:01:17] Production.INFO: count ==167 [2025-01-09 01:01:17] Production.ERROR: pbx CDR StartTime 2025-01-08 22:01:04 - End Time 2025-01-09 01:01:04 [2025-01-09 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206072', 'tblTempUsageDetail_20' ) start [2025-01-09 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206072', 'tblTempUsageDetail_20' ) end [2025-01-09 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206072', 'tblTempVendorCDR_20' ) start [2025-01-09 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206072', 'tblTempVendorCDR_20' ) end [2025-01-09 01:01:17] Production.INFO: ProcessCDR(1,14206072,1,1,2) [2025-01-09 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:01:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206072', 'tblTempUsageDetail_20' ) start [2025-01-09 01:01:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206072', 'tblTempUsageDetail_20' ) end [2025-01-09 01:01:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:01:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:01:20] Production.INFO: ==3466== Releasing lock... [2025-01-09 01:01:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:01:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:02:05 [end_date_ymd] => 2025-01-09 01:02:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:02:05' and `end` < '2025-01-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-01-09 01:02:19] Production.INFO: count ==166 [2025-01-09 01:02:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:02:05 - End Time 2025-01-09 01:02:05 [2025-01-09 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206077', 'tblTempUsageDetail_20' ) start [2025-01-09 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206077', 'tblTempUsageDetail_20' ) end [2025-01-09 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206077', 'tblTempVendorCDR_20' ) start [2025-01-09 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206077', 'tblTempVendorCDR_20' ) end [2025-01-09 01:02:19] Production.INFO: ProcessCDR(1,14206077,1,1,2) [2025-01-09 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206077', 'tblTempUsageDetail_20' ) start [2025-01-09 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206077', 'tblTempUsageDetail_20' ) end [2025-01-09 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:02:22] Production.INFO: ==3538== Releasing lock... [2025-01-09 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:03:05 [end_date_ymd] => 2025-01-09 01:03:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:03:05' and `end` < '2025-01-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-01-09 01:03:18] Production.INFO: count ==163 [2025-01-09 01:03:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:03:05 - End Time 2025-01-09 01:03:05 [2025-01-09 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206082', 'tblTempUsageDetail_20' ) start [2025-01-09 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206082', 'tblTempUsageDetail_20' ) end [2025-01-09 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206082', 'tblTempVendorCDR_20' ) start [2025-01-09 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206082', 'tblTempVendorCDR_20' ) end [2025-01-09 01:03:18] Production.INFO: ProcessCDR(1,14206082,1,1,2) [2025-01-09 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206082', 'tblTempUsageDetail_20' ) start [2025-01-09 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206082', 'tblTempUsageDetail_20' ) end [2025-01-09 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:03:21] Production.INFO: ==3614== Releasing lock... [2025-01-09 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:04:04 [end_date_ymd] => 2025-01-09 01:04:04 [RateCDR] => 1 ) [2025-01-09 01:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:04:04' and `end` < '2025-01-09 01:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:04:18] Production.INFO: count ==163 [2025-01-09 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:04:04 - End Time 2025-01-09 01:04:04 [2025-01-09 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206087', 'tblTempUsageDetail_20' ) start [2025-01-09 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206087', 'tblTempUsageDetail_20' ) end [2025-01-09 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206087', 'tblTempVendorCDR_20' ) start [2025-01-09 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206087', 'tblTempVendorCDR_20' ) end [2025-01-09 01:04:18] Production.INFO: ProcessCDR(1,14206087,1,1,2) [2025-01-09 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206087', 'tblTempUsageDetail_20' ) start [2025-01-09 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206087', 'tblTempUsageDetail_20' ) end [2025-01-09 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:04:21] Production.INFO: ==3723== Releasing lock... [2025-01-09 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:05:05 [end_date_ymd] => 2025-01-09 01:05:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:05:05' and `end` < '2025-01-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-01-09 01:05:18] Production.INFO: count ==162 [2025-01-09 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:05:05 - End Time 2025-01-09 01:05:05 [2025-01-09 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206092', 'tblTempUsageDetail_20' ) start [2025-01-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206092', 'tblTempUsageDetail_20' ) end [2025-01-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206092', 'tblTempVendorCDR_20' ) start [2025-01-09 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206092', 'tblTempVendorCDR_20' ) end [2025-01-09 01:05:18] Production.INFO: ProcessCDR(1,14206092,1,1,2) [2025-01-09 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206092', 'tblTempUsageDetail_20' ) start [2025-01-09 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206092', 'tblTempUsageDetail_20' ) end [2025-01-09 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:05:21] Production.INFO: ==3794== Releasing lock... [2025-01-09 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:06:04 [end_date_ymd] => 2025-01-09 01:06:04 [RateCDR] => 1 ) [2025-01-09 01:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:06:04' and `end` < '2025-01-09 01:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:06:19] Production.INFO: count ==162 [2025-01-09 01:06:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:06:04 - End Time 2025-01-09 01:06:04 [2025-01-09 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206097', 'tblTempUsageDetail_20' ) start [2025-01-09 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206097', 'tblTempUsageDetail_20' ) end [2025-01-09 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206097', 'tblTempVendorCDR_20' ) start [2025-01-09 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206097', 'tblTempVendorCDR_20' ) end [2025-01-09 01:06:19] Production.INFO: ProcessCDR(1,14206097,1,1,2) [2025-01-09 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206097', 'tblTempUsageDetail_20' ) start [2025-01-09 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206097', 'tblTempUsageDetail_20' ) end [2025-01-09 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:06:22] Production.INFO: ==3863== Releasing lock... [2025-01-09 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:07:04 [end_date_ymd] => 2025-01-09 01:07:04 [RateCDR] => 1 ) [2025-01-09 01:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:07:04' and `end` < '2025-01-09 01:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:07:17] Production.INFO: count ==162 [2025-01-09 01:07:17] Production.ERROR: pbx CDR StartTime 2025-01-08 22:07:04 - End Time 2025-01-09 01:07:04 [2025-01-09 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206102', 'tblTempUsageDetail_20' ) start [2025-01-09 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206102', 'tblTempUsageDetail_20' ) end [2025-01-09 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206102', 'tblTempVendorCDR_20' ) start [2025-01-09 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206102', 'tblTempVendorCDR_20' ) end [2025-01-09 01:07:17] Production.INFO: ProcessCDR(1,14206102,1,1,2) [2025-01-09 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206102', 'tblTempUsageDetail_20' ) start [2025-01-09 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206102', 'tblTempUsageDetail_20' ) end [2025-01-09 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:07:20] Production.INFO: ==3933== Releasing lock... [2025-01-09 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:07:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:08:04 [end_date_ymd] => 2025-01-09 01:08:04 [RateCDR] => 1 ) [2025-01-09 01:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:08:04' and `end` < '2025-01-09 01:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:08:17] Production.INFO: count ==161 [2025-01-09 01:08:17] Production.ERROR: pbx CDR StartTime 2025-01-08 22:08:04 - End Time 2025-01-09 01:08:04 [2025-01-09 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206106', 'tblTempUsageDetail_20' ) start [2025-01-09 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206106', 'tblTempUsageDetail_20' ) end [2025-01-09 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206106', 'tblTempVendorCDR_20' ) start [2025-01-09 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206106', 'tblTempVendorCDR_20' ) end [2025-01-09 01:08:17] Production.INFO: ProcessCDR(1,14206106,1,1,2) [2025-01-09 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206106', 'tblTempUsageDetail_20' ) start [2025-01-09 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206106', 'tblTempUsageDetail_20' ) end [2025-01-09 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:08:20] Production.INFO: ==4003== Releasing lock... [2025-01-09 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:08:20] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:09:04 [end_date_ymd] => 2025-01-09 01:09:04 [RateCDR] => 1 ) [2025-01-09 01:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:09:04' and `end` < '2025-01-09 01:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:09:19] Production.INFO: count ==161 [2025-01-09 01:09:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:09:04 - End Time 2025-01-09 01:09:04 [2025-01-09 01:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206112', 'tblTempUsageDetail_20' ) start [2025-01-09 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206112', 'tblTempUsageDetail_20' ) end [2025-01-09 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206112', 'tblTempVendorCDR_20' ) start [2025-01-09 01:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206112', 'tblTempVendorCDR_20' ) end [2025-01-09 01:09:19] Production.INFO: ProcessCDR(1,14206112,1,1,2) [2025-01-09 01:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206112', 'tblTempUsageDetail_20' ) start [2025-01-09 01:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206112', 'tblTempUsageDetail_20' ) end [2025-01-09 01:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:09:22] Production.INFO: ==4074== Releasing lock... [2025-01-09 01:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:09:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:10:06 [end_date_ymd] => 2025-01-09 01:10:06 [RateCDR] => 1 ) [2025-01-09 01:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:10:06' and `end` < '2025-01-09 01:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:10:19] Production.INFO: count ==170 [2025-01-09 01:10:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:10:06 - End Time 2025-01-09 01:10:06 [2025-01-09 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206117', 'tblTempUsageDetail_20' ) start [2025-01-09 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206117', 'tblTempUsageDetail_20' ) end [2025-01-09 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206117', 'tblTempVendorCDR_20' ) start [2025-01-09 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206117', 'tblTempVendorCDR_20' ) end [2025-01-09 01:10:19] Production.INFO: ProcessCDR(1,14206117,1,1,2) [2025-01-09 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206117', 'tblTempUsageDetail_20' ) start [2025-01-09 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206117', 'tblTempUsageDetail_20' ) end [2025-01-09 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:10:23] Production.INFO: ==4148== Releasing lock... [2025-01-09 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:10:23] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:11:05 [end_date_ymd] => 2025-01-09 01:11:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:11:05' and `end` < '2025-01-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-01-09 01:11:19] Production.INFO: count ==179 [2025-01-09 01:11:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:11:05 - End Time 2025-01-09 01:11:05 [2025-01-09 01:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206123', 'tblTempUsageDetail_20' ) start [2025-01-09 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206123', 'tblTempUsageDetail_20' ) end [2025-01-09 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206123', 'tblTempVendorCDR_20' ) start [2025-01-09 01:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206123', 'tblTempVendorCDR_20' ) end [2025-01-09 01:11:19] Production.INFO: ProcessCDR(1,14206123,1,1,2) [2025-01-09 01:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206123', 'tblTempUsageDetail_20' ) start [2025-01-09 01:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206123', 'tblTempUsageDetail_20' ) end [2025-01-09 01:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:11:24] Production.INFO: ==4221== Releasing lock... [2025-01-09 01:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:11:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:12:05 [end_date_ymd] => 2025-01-09 01:12:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:12:05' and `end` < '2025-01-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-01-09 01:12:20] Production.INFO: count ==179 [2025-01-09 01:12:20] Production.ERROR: pbx CDR StartTime 2025-01-08 22:12:05 - End Time 2025-01-09 01:12:05 [2025-01-09 01:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206128', 'tblTempUsageDetail_20' ) start [2025-01-09 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206128', 'tblTempUsageDetail_20' ) end [2025-01-09 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206128', 'tblTempVendorCDR_20' ) start [2025-01-09 01:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206128', 'tblTempVendorCDR_20' ) end [2025-01-09 01:12:20] Production.INFO: ProcessCDR(1,14206128,1,1,2) [2025-01-09 01:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206128', 'tblTempUsageDetail_20' ) start [2025-01-09 01:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206128', 'tblTempUsageDetail_20' ) end [2025-01-09 01:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:12:23] Production.INFO: ==4292== Releasing lock... [2025-01-09 01:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:12:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:13:04 [end_date_ymd] => 2025-01-09 01:13:04 [RateCDR] => 1 ) [2025-01-09 01:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:13:04' and `end` < '2025-01-09 01:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:13:17] Production.INFO: count ==178 [2025-01-09 01:13:17] Production.ERROR: pbx CDR StartTime 2025-01-08 22:13:04 - End Time 2025-01-09 01:13:04 [2025-01-09 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206133', 'tblTempUsageDetail_20' ) start [2025-01-09 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206133', 'tblTempUsageDetail_20' ) end [2025-01-09 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206133', 'tblTempVendorCDR_20' ) start [2025-01-09 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206133', 'tblTempVendorCDR_20' ) end [2025-01-09 01:13:17] Production.INFO: ProcessCDR(1,14206133,1,1,2) [2025-01-09 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206133', 'tblTempUsageDetail_20' ) start [2025-01-09 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206133', 'tblTempUsageDetail_20' ) end [2025-01-09 01:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:13:20] Production.INFO: ==4362== Releasing lock... [2025-01-09 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:13:20] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:14:05 [end_date_ymd] => 2025-01-09 01:14:05 [RateCDR] => 1 ) [2025-01-09 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:14:05' and `end` < '2025-01-09 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:14:19] Production.INFO: count ==178 [2025-01-09 01:14:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:14:05 - End Time 2025-01-09 01:14:05 [2025-01-09 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206138', 'tblTempUsageDetail_20' ) start [2025-01-09 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206138', 'tblTempUsageDetail_20' ) end [2025-01-09 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206138', 'tblTempVendorCDR_20' ) start [2025-01-09 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206138', 'tblTempVendorCDR_20' ) end [2025-01-09 01:14:19] Production.INFO: ProcessCDR(1,14206138,1,1,2) [2025-01-09 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206138', 'tblTempUsageDetail_20' ) start [2025-01-09 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206138', 'tblTempUsageDetail_20' ) end [2025-01-09 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:14:22] Production.INFO: ==4434== Releasing lock... [2025-01-09 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:14:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:15:05 [end_date_ymd] => 2025-01-09 01:15:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:15:05' and `end` < '2025-01-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-01-09 01:15:18] Production.INFO: count ==175 [2025-01-09 01:15:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:15:05 - End Time 2025-01-09 01:15:05 [2025-01-09 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206143', 'tblTempUsageDetail_20' ) start [2025-01-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206143', 'tblTempUsageDetail_20' ) end [2025-01-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206143', 'tblTempVendorCDR_20' ) start [2025-01-09 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206143', 'tblTempVendorCDR_20' ) end [2025-01-09 01:15:18] Production.INFO: ProcessCDR(1,14206143,1,1,2) [2025-01-09 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206143', 'tblTempUsageDetail_20' ) start [2025-01-09 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206143', 'tblTempUsageDetail_20' ) end [2025-01-09 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:15:21] Production.INFO: ==4505== Releasing lock... [2025-01-09 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:16:05 [end_date_ymd] => 2025-01-09 01:16:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:16:05' and `end` < '2025-01-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-01-09 01:16:18] Production.INFO: count ==174 [2025-01-09 01:16:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:16:05 - End Time 2025-01-09 01:16:05 [2025-01-09 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206148', 'tblTempUsageDetail_20' ) start [2025-01-09 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206148', 'tblTempUsageDetail_20' ) end [2025-01-09 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206148', 'tblTempVendorCDR_20' ) start [2025-01-09 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206148', 'tblTempVendorCDR_20' ) end [2025-01-09 01:16:18] Production.INFO: ProcessCDR(1,14206148,1,1,2) [2025-01-09 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206148', 'tblTempUsageDetail_20' ) start [2025-01-09 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206148', 'tblTempUsageDetail_20' ) end [2025-01-09 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:16:21] Production.INFO: ==4589== Releasing lock... [2025-01-09 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:16:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:17:04 [end_date_ymd] => 2025-01-09 01:17:04 [RateCDR] => 1 ) [2025-01-09 01:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:17:04' and `end` < '2025-01-09 01:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:17:17] Production.INFO: count ==174 [2025-01-09 01:17:17] Production.ERROR: pbx CDR StartTime 2025-01-08 22:17:04 - End Time 2025-01-09 01:17:04 [2025-01-09 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206153', 'tblTempUsageDetail_20' ) start [2025-01-09 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206153', 'tblTempUsageDetail_20' ) end [2025-01-09 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206153', 'tblTempVendorCDR_20' ) start [2025-01-09 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206153', 'tblTempVendorCDR_20' ) end [2025-01-09 01:17:17] Production.INFO: ProcessCDR(1,14206153,1,1,2) [2025-01-09 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206153', 'tblTempUsageDetail_20' ) start [2025-01-09 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206153', 'tblTempUsageDetail_20' ) end [2025-01-09 01:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:17:20] Production.INFO: ==4660== Releasing lock... [2025-01-09 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:17:20] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:18:05 [end_date_ymd] => 2025-01-09 01:18:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:18:05' and `end` < '2025-01-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-01-09 01:18:18] Production.INFO: count ==171 [2025-01-09 01:18:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:18:05 - End Time 2025-01-09 01:18:05 [2025-01-09 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206158', 'tblTempUsageDetail_20' ) start [2025-01-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206158', 'tblTempUsageDetail_20' ) end [2025-01-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206158', 'tblTempVendorCDR_20' ) start [2025-01-09 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206158', 'tblTempVendorCDR_20' ) end [2025-01-09 01:18:18] Production.INFO: ProcessCDR(1,14206158,1,1,2) [2025-01-09 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206158', 'tblTempUsageDetail_20' ) start [2025-01-09 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206158', 'tblTempUsageDetail_20' ) end [2025-01-09 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:18:21] Production.INFO: ==4731== Releasing lock... [2025-01-09 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:18:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:19:04 [end_date_ymd] => 2025-01-09 01:19:04 [RateCDR] => 1 ) [2025-01-09 01:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:19:04' and `end` < '2025-01-09 01:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:19:17] Production.INFO: count ==171 [2025-01-09 01:19:17] Production.ERROR: pbx CDR StartTime 2025-01-08 22:19:04 - End Time 2025-01-09 01:19:04 [2025-01-09 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206163', 'tblTempUsageDetail_20' ) start [2025-01-09 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206163', 'tblTempUsageDetail_20' ) end [2025-01-09 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206163', 'tblTempVendorCDR_20' ) start [2025-01-09 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206163', 'tblTempVendorCDR_20' ) end [2025-01-09 01:19:17] Production.INFO: ProcessCDR(1,14206163,1,1,2) [2025-01-09 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206163', 'tblTempUsageDetail_20' ) start [2025-01-09 01:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206163', 'tblTempUsageDetail_20' ) end [2025-01-09 01:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:19:20] Production.INFO: ==4801== Releasing lock... [2025-01-09 01:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:19:20] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:20:05 [end_date_ymd] => 2025-01-09 01:20:05 [RateCDR] => 1 ) [2025-01-09 01:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:20:05' and `end` < '2025-01-09 01:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:20:19] Production.INFO: count ==174 [2025-01-09 01:20:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:20:05 - End Time 2025-01-09 01:20:05 [2025-01-09 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206169', 'tblTempUsageDetail_20' ) start [2025-01-09 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206169', 'tblTempUsageDetail_20' ) end [2025-01-09 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206169', 'tblTempVendorCDR_20' ) start [2025-01-09 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206169', 'tblTempVendorCDR_20' ) end [2025-01-09 01:20:19] Production.INFO: ProcessCDR(1,14206169,1,1,2) [2025-01-09 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206169', 'tblTempUsageDetail_20' ) start [2025-01-09 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206169', 'tblTempUsageDetail_20' ) end [2025-01-09 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:20:22] Production.INFO: ==4913== Releasing lock... [2025-01-09 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:20:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:21:05 [end_date_ymd] => 2025-01-09 01:21:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:21:05' and `end` < '2025-01-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-01-09 01:21:19] Production.INFO: count ==174 [2025-01-09 01:21:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:21:05 - End Time 2025-01-09 01:21:05 [2025-01-09 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206174', 'tblTempUsageDetail_20' ) start [2025-01-09 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206174', 'tblTempUsageDetail_20' ) end [2025-01-09 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206174', 'tblTempVendorCDR_20' ) start [2025-01-09 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206174', 'tblTempVendorCDR_20' ) end [2025-01-09 01:21:19] Production.INFO: ProcessCDR(1,14206174,1,1,2) [2025-01-09 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206174', 'tblTempUsageDetail_20' ) start [2025-01-09 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206174', 'tblTempUsageDetail_20' ) end [2025-01-09 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:21:22] Production.INFO: ==4987== Releasing lock... [2025-01-09 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:21:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:22:05 [end_date_ymd] => 2025-01-09 01:22:05 [RateCDR] => 1 ) [2025-01-09 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:22:05' and `end` < '2025-01-09 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:22:18] Production.INFO: count ==174 [2025-01-09 01:22:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:22:05 - End Time 2025-01-09 01:22:05 [2025-01-09 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206179', 'tblTempUsageDetail_20' ) start [2025-01-09 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206179', 'tblTempUsageDetail_20' ) end [2025-01-09 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206179', 'tblTempVendorCDR_20' ) start [2025-01-09 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206179', 'tblTempVendorCDR_20' ) end [2025-01-09 01:22:18] Production.INFO: ProcessCDR(1,14206179,1,1,2) [2025-01-09 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206179', 'tblTempUsageDetail_20' ) start [2025-01-09 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206179', 'tblTempUsageDetail_20' ) end [2025-01-09 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:22:21] Production.INFO: ==5059== Releasing lock... [2025-01-09 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:22:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:23:05 [end_date_ymd] => 2025-01-09 01:23:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:23:05' and `end` < '2025-01-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-01-09 01:23:18] Production.INFO: count ==173 [2025-01-09 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:23:05 - End Time 2025-01-09 01:23:05 [2025-01-09 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206184', 'tblTempUsageDetail_20' ) start [2025-01-09 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206184', 'tblTempUsageDetail_20' ) end [2025-01-09 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206184', 'tblTempVendorCDR_20' ) start [2025-01-09 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206184', 'tblTempVendorCDR_20' ) end [2025-01-09 01:23:18] Production.INFO: ProcessCDR(1,14206184,1,1,2) [2025-01-09 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206184', 'tblTempUsageDetail_20' ) start [2025-01-09 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206184', 'tblTempUsageDetail_20' ) end [2025-01-09 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:23:21] Production.INFO: ==5133== Releasing lock... [2025-01-09 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:24:04 [end_date_ymd] => 2025-01-09 01:24:04 [RateCDR] => 1 ) [2025-01-09 01:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:24:04' and `end` < '2025-01-09 01:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:24:19] Production.INFO: count ==173 [2025-01-09 01:24:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:24:04 - End Time 2025-01-09 01:24:04 [2025-01-09 01:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206189', 'tblTempUsageDetail_20' ) start [2025-01-09 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206189', 'tblTempUsageDetail_20' ) end [2025-01-09 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206189', 'tblTempVendorCDR_20' ) start [2025-01-09 01:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206189', 'tblTempVendorCDR_20' ) end [2025-01-09 01:24:19] Production.INFO: ProcessCDR(1,14206189,1,1,2) [2025-01-09 01:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206189', 'tblTempUsageDetail_20' ) start [2025-01-09 01:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206189', 'tblTempUsageDetail_20' ) end [2025-01-09 01:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:24:23] Production.INFO: ==5205== Releasing lock... [2025-01-09 01:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:24:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:25:05 [end_date_ymd] => 2025-01-09 01:25:05 [RateCDR] => 1 ) [2025-01-09 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:25:05' and `end` < '2025-01-09 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:25:18] Production.INFO: count ==173 [2025-01-09 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:25:05 - End Time 2025-01-09 01:25:05 [2025-01-09 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206194', 'tblTempUsageDetail_20' ) start [2025-01-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206194', 'tblTempUsageDetail_20' ) end [2025-01-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206194', 'tblTempVendorCDR_20' ) start [2025-01-09 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206194', 'tblTempVendorCDR_20' ) end [2025-01-09 01:25:18] Production.INFO: ProcessCDR(1,14206194,1,1,2) [2025-01-09 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206194', 'tblTempUsageDetail_20' ) start [2025-01-09 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206194', 'tblTempUsageDetail_20' ) end [2025-01-09 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:25:21] Production.INFO: ==5279== Releasing lock... [2025-01-09 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:26:06 [end_date_ymd] => 2025-01-09 01:26:06 [RateCDR] => 1 ) [2025-01-09 01:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:26:06' and `end` < '2025-01-09 01:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:26:19] Production.INFO: count ==172 [2025-01-09 01:26:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:26:06 - End Time 2025-01-09 01:26:06 [2025-01-09 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206199', 'tblTempUsageDetail_20' ) start [2025-01-09 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206199', 'tblTempUsageDetail_20' ) end [2025-01-09 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206199', 'tblTempVendorCDR_20' ) start [2025-01-09 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206199', 'tblTempVendorCDR_20' ) end [2025-01-09 01:26:19] Production.INFO: ProcessCDR(1,14206199,1,1,2) [2025-01-09 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206199', 'tblTempUsageDetail_20' ) start [2025-01-09 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206199', 'tblTempUsageDetail_20' ) end [2025-01-09 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:26:22] Production.INFO: ==5351== Releasing lock... [2025-01-09 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:26:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:27:05 [end_date_ymd] => 2025-01-09 01:27:05 [RateCDR] => 1 ) [2025-01-09 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:27:05' and `end` < '2025-01-09 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:27:19] Production.INFO: count ==171 [2025-01-09 01:27:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:27:05 - End Time 2025-01-09 01:27:05 [2025-01-09 01:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206204', 'tblTempUsageDetail_20' ) start [2025-01-09 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206204', 'tblTempUsageDetail_20' ) end [2025-01-09 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206204', 'tblTempVendorCDR_20' ) start [2025-01-09 01:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206204', 'tblTempVendorCDR_20' ) end [2025-01-09 01:27:19] Production.INFO: ProcessCDR(1,14206204,1,1,2) [2025-01-09 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206204', 'tblTempUsageDetail_20' ) start [2025-01-09 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206204', 'tblTempUsageDetail_20' ) end [2025-01-09 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:27:22] Production.INFO: ==5422== Releasing lock... [2025-01-09 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:27:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:28:06 [end_date_ymd] => 2025-01-09 01:28:06 [RateCDR] => 1 ) [2025-01-09 01:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:28:06' and `end` < '2025-01-09 01:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:28:19] Production.INFO: count ==170 [2025-01-09 01:28:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:28:06 - End Time 2025-01-09 01:28:06 [2025-01-09 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206209', 'tblTempUsageDetail_20' ) start [2025-01-09 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206209', 'tblTempUsageDetail_20' ) end [2025-01-09 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206209', 'tblTempVendorCDR_20' ) start [2025-01-09 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206209', 'tblTempVendorCDR_20' ) end [2025-01-09 01:28:19] Production.INFO: ProcessCDR(1,14206209,1,1,2) [2025-01-09 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206209', 'tblTempUsageDetail_20' ) start [2025-01-09 01:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206209', 'tblTempUsageDetail_20' ) end [2025-01-09 01:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:28:23] Production.INFO: ==5494== Releasing lock... [2025-01-09 01:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:28:23] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:29:05 [end_date_ymd] => 2025-01-09 01:29:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:29:05' and `end` < '2025-01-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-01-09 01:29:18] Production.INFO: count ==168 [2025-01-09 01:29:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:29:05 - End Time 2025-01-09 01:29:05 [2025-01-09 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206214', 'tblTempUsageDetail_20' ) start [2025-01-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206214', 'tblTempUsageDetail_20' ) end [2025-01-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206214', 'tblTempVendorCDR_20' ) start [2025-01-09 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206214', 'tblTempVendorCDR_20' ) end [2025-01-09 01:29:18] Production.INFO: ProcessCDR(1,14206214,1,1,2) [2025-01-09 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206214', 'tblTempUsageDetail_20' ) start [2025-01-09 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206214', 'tblTempUsageDetail_20' ) end [2025-01-09 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:29:21] Production.INFO: ==5566== Releasing lock... [2025-01-09 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:29:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:30:05 [end_date_ymd] => 2025-01-09 01:30:05 [RateCDR] => 1 ) [2025-01-09 01:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:30:05' and `end` < '2025-01-09 01:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:30:18] Production.INFO: count ==171 [2025-01-09 01:30:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:30:05 - End Time 2025-01-09 01:30:05 [2025-01-09 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206220', 'tblTempUsageDetail_20' ) start [2025-01-09 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206220', 'tblTempUsageDetail_20' ) end [2025-01-09 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206220', 'tblTempVendorCDR_20' ) start [2025-01-09 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206220', 'tblTempVendorCDR_20' ) end [2025-01-09 01:30:18] Production.INFO: ProcessCDR(1,14206220,1,1,2) [2025-01-09 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206220', 'tblTempUsageDetail_20' ) start [2025-01-09 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206220', 'tblTempUsageDetail_20' ) end [2025-01-09 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:30:23] Production.INFO: ==5639== Releasing lock... [2025-01-09 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:30:23] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:31:04 [end_date_ymd] => 2025-01-09 01:31:04 [RateCDR] => 1 ) [2025-01-09 01:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:31:04' and `end` < '2025-01-09 01:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:31:18] Production.INFO: count ==171 [2025-01-09 01:31:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:31:04 - End Time 2025-01-09 01:31:04 [2025-01-09 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206225', 'tblTempUsageDetail_20' ) start [2025-01-09 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206225', 'tblTempUsageDetail_20' ) end [2025-01-09 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206225', 'tblTempVendorCDR_20' ) start [2025-01-09 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206225', 'tblTempVendorCDR_20' ) end [2025-01-09 01:31:18] Production.INFO: ProcessCDR(1,14206225,1,1,2) [2025-01-09 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206225', 'tblTempUsageDetail_20' ) start [2025-01-09 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206225', 'tblTempUsageDetail_20' ) end [2025-01-09 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:31:22] Production.INFO: ==5711== Releasing lock... [2025-01-09 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:31:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:32:05 [end_date_ymd] => 2025-01-09 01:32:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:32:05' and `end` < '2025-01-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-01-09 01:32:20] Production.INFO: count ==171 [2025-01-09 01:32:20] Production.ERROR: pbx CDR StartTime 2025-01-08 22:32:05 - End Time 2025-01-09 01:32:05 [2025-01-09 01:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206230', 'tblTempUsageDetail_20' ) start [2025-01-09 01:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206230', 'tblTempUsageDetail_20' ) end [2025-01-09 01:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206230', 'tblTempVendorCDR_20' ) start [2025-01-09 01:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206230', 'tblTempVendorCDR_20' ) end [2025-01-09 01:32:20] Production.INFO: ProcessCDR(1,14206230,1,1,2) [2025-01-09 01:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206230', 'tblTempUsageDetail_20' ) start [2025-01-09 01:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206230', 'tblTempUsageDetail_20' ) end [2025-01-09 01:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:32:23] Production.INFO: ==5785== Releasing lock... [2025-01-09 01:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:32:23] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:33:04 [end_date_ymd] => 2025-01-09 01:33:04 [RateCDR] => 1 ) [2025-01-09 01:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:33:04' and `end` < '2025-01-09 01:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:33:18] Production.INFO: count ==171 [2025-01-09 01:33:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:33:04 - End Time 2025-01-09 01:33:04 [2025-01-09 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206235', 'tblTempUsageDetail_20' ) start [2025-01-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206235', 'tblTempUsageDetail_20' ) end [2025-01-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206235', 'tblTempVendorCDR_20' ) start [2025-01-09 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206235', 'tblTempVendorCDR_20' ) end [2025-01-09 01:33:18] Production.INFO: ProcessCDR(1,14206235,1,1,2) [2025-01-09 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206235', 'tblTempUsageDetail_20' ) start [2025-01-09 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206235', 'tblTempUsageDetail_20' ) end [2025-01-09 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:33:21] Production.INFO: ==5856== Releasing lock... [2025-01-09 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:33:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:34:05 [end_date_ymd] => 2025-01-09 01:34:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:34:05' and `end` < '2025-01-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-01-09 01:34:19] Production.INFO: count ==171 [2025-01-09 01:34:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:34:05 - End Time 2025-01-09 01:34:05 [2025-01-09 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206240', 'tblTempUsageDetail_20' ) start [2025-01-09 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206240', 'tblTempUsageDetail_20' ) end [2025-01-09 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206240', 'tblTempVendorCDR_20' ) start [2025-01-09 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206240', 'tblTempVendorCDR_20' ) end [2025-01-09 01:34:19] Production.INFO: ProcessCDR(1,14206240,1,1,2) [2025-01-09 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206240', 'tblTempUsageDetail_20' ) start [2025-01-09 01:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206240', 'tblTempUsageDetail_20' ) end [2025-01-09 01:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:34:23] Production.INFO: ==5928== Releasing lock... [2025-01-09 01:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:34:23] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:35:05 [end_date_ymd] => 2025-01-09 01:35:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:35:05' and `end` < '2025-01-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-01-09 01:35:18] Production.INFO: count ==171 [2025-01-09 01:35:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:35:05 - End Time 2025-01-09 01:35:05 [2025-01-09 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206245', 'tblTempUsageDetail_20' ) start [2025-01-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206245', 'tblTempUsageDetail_20' ) end [2025-01-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206245', 'tblTempVendorCDR_20' ) start [2025-01-09 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206245', 'tblTempVendorCDR_20' ) end [2025-01-09 01:35:18] Production.INFO: ProcessCDR(1,14206245,1,1,2) [2025-01-09 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206245', 'tblTempUsageDetail_20' ) start [2025-01-09 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206245', 'tblTempUsageDetail_20' ) end [2025-01-09 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:35:21] Production.INFO: ==6001== Releasing lock... [2025-01-09 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:35:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:36:05 [end_date_ymd] => 2025-01-09 01:36:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:36:05' and `end` < '2025-01-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-01-09 01:36:18] Production.INFO: count ==171 [2025-01-09 01:36:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:36:05 - End Time 2025-01-09 01:36:05 [2025-01-09 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206250', 'tblTempUsageDetail_20' ) start [2025-01-09 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206250', 'tblTempUsageDetail_20' ) end [2025-01-09 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206250', 'tblTempVendorCDR_20' ) start [2025-01-09 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206250', 'tblTempVendorCDR_20' ) end [2025-01-09 01:36:18] Production.INFO: ProcessCDR(1,14206250,1,1,2) [2025-01-09 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206250', 'tblTempUsageDetail_20' ) start [2025-01-09 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206250', 'tblTempUsageDetail_20' ) end [2025-01-09 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:36:21] Production.INFO: ==6111== Releasing lock... [2025-01-09 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:36:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:37:05 [end_date_ymd] => 2025-01-09 01:37:05 [RateCDR] => 1 ) [2025-01-09 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:37:05' and `end` < '2025-01-09 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:37:18] Production.INFO: count ==171 [2025-01-09 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:37:05 - End Time 2025-01-09 01:37:05 [2025-01-09 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206255', 'tblTempUsageDetail_20' ) start [2025-01-09 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206255', 'tblTempUsageDetail_20' ) end [2025-01-09 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206255', 'tblTempVendorCDR_20' ) start [2025-01-09 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206255', 'tblTempVendorCDR_20' ) end [2025-01-09 01:37:18] Production.INFO: ProcessCDR(1,14206255,1,1,2) [2025-01-09 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206255', 'tblTempUsageDetail_20' ) start [2025-01-09 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206255', 'tblTempUsageDetail_20' ) end [2025-01-09 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:37:21] Production.INFO: ==6180== Releasing lock... [2025-01-09 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:37:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:38:05 [end_date_ymd] => 2025-01-09 01:38:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:38:05' and `end` < '2025-01-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-01-09 01:38:18] Production.INFO: count ==174 [2025-01-09 01:38:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:38:05 - End Time 2025-01-09 01:38:05 [2025-01-09 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206260', 'tblTempUsageDetail_20' ) start [2025-01-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206260', 'tblTempUsageDetail_20' ) end [2025-01-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206260', 'tblTempVendorCDR_20' ) start [2025-01-09 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206260', 'tblTempVendorCDR_20' ) end [2025-01-09 01:38:18] Production.INFO: ProcessCDR(1,14206260,1,1,2) [2025-01-09 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206260', 'tblTempUsageDetail_20' ) start [2025-01-09 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206260', 'tblTempUsageDetail_20' ) end [2025-01-09 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:38:21] Production.INFO: ==6254== Releasing lock... [2025-01-09 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:38:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:39:05 [end_date_ymd] => 2025-01-09 01:39:05 [RateCDR] => 1 ) [2025-01-09 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:39:05' and `end` < '2025-01-09 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:39:18] Production.INFO: count ==174 [2025-01-09 01:39:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:39:05 - End Time 2025-01-09 01:39:05 [2025-01-09 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206265', 'tblTempUsageDetail_20' ) start [2025-01-09 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206265', 'tblTempUsageDetail_20' ) end [2025-01-09 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206265', 'tblTempVendorCDR_20' ) start [2025-01-09 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206265', 'tblTempVendorCDR_20' ) end [2025-01-09 01:39:18] Production.INFO: ProcessCDR(1,14206265,1,1,2) [2025-01-09 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206265', 'tblTempUsageDetail_20' ) start [2025-01-09 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206265', 'tblTempUsageDetail_20' ) end [2025-01-09 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:39:21] Production.INFO: ==6327== Releasing lock... [2025-01-09 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:39:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:40:06 [end_date_ymd] => 2025-01-09 01:40:06 [RateCDR] => 1 ) [2025-01-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-01-08 22:40:06' and `end` < '2025-01-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-01-09 01:40:18] Production.INFO: count ==184 [2025-01-09 01:40:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:40:06 - End Time 2025-01-09 01:40:06 [2025-01-09 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206271', 'tblTempUsageDetail_20' ) start [2025-01-09 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206271', 'tblTempUsageDetail_20' ) end [2025-01-09 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206271', 'tblTempVendorCDR_20' ) start [2025-01-09 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206271', 'tblTempVendorCDR_20' ) end [2025-01-09 01:40:19] Production.INFO: ProcessCDR(1,14206271,1,1,2) [2025-01-09 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206271', 'tblTempUsageDetail_20' ) start [2025-01-09 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206271', 'tblTempUsageDetail_20' ) end [2025-01-09 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:40:22] Production.INFO: ==6408== Releasing lock... [2025-01-09 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:41:05 [end_date_ymd] => 2025-01-09 01:41:05 [RateCDR] => 1 ) [2025-01-09 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:41:05' and `end` < '2025-01-09 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:41:20] Production.INFO: count ==187 [2025-01-09 01:41:20] Production.ERROR: pbx CDR StartTime 2025-01-08 22:41:05 - End Time 2025-01-09 01:41:05 [2025-01-09 01:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206276', 'tblTempUsageDetail_20' ) start [2025-01-09 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206276', 'tblTempUsageDetail_20' ) end [2025-01-09 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206276', 'tblTempVendorCDR_20' ) start [2025-01-09 01:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206276', 'tblTempVendorCDR_20' ) end [2025-01-09 01:41:20] Production.INFO: ProcessCDR(1,14206276,1,1,2) [2025-01-09 01:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206276', 'tblTempUsageDetail_20' ) start [2025-01-09 01:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206276', 'tblTempUsageDetail_20' ) end [2025-01-09 01:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:41:24] Production.INFO: ==6482== Releasing lock... [2025-01-09 01:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:41:24] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:42:05 [end_date_ymd] => 2025-01-09 01:42:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:42:05' and `end` < '2025-01-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-01-09 01:42:19] Production.INFO: count ==187 [2025-01-09 01:42:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:42:05 - End Time 2025-01-09 01:42:05 [2025-01-09 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206281', 'tblTempUsageDetail_20' ) start [2025-01-09 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206281', 'tblTempUsageDetail_20' ) end [2025-01-09 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206281', 'tblTempVendorCDR_20' ) start [2025-01-09 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206281', 'tblTempVendorCDR_20' ) end [2025-01-09 01:42:19] Production.INFO: ProcessCDR(1,14206281,1,1,2) [2025-01-09 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206281', 'tblTempUsageDetail_20' ) start [2025-01-09 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206281', 'tblTempUsageDetail_20' ) end [2025-01-09 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:42:22] Production.INFO: ==6561== Releasing lock... [2025-01-09 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:42:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:43:05 [end_date_ymd] => 2025-01-09 01:43:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:43:05' and `end` < '2025-01-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-01-09 01:43:18] Production.INFO: count ==187 [2025-01-09 01:43:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:43:05 - End Time 2025-01-09 01:43:05 [2025-01-09 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206286', 'tblTempUsageDetail_20' ) start [2025-01-09 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206286', 'tblTempUsageDetail_20' ) end [2025-01-09 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206286', 'tblTempVendorCDR_20' ) start [2025-01-09 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206286', 'tblTempVendorCDR_20' ) end [2025-01-09 01:43:18] Production.INFO: ProcessCDR(1,14206286,1,1,2) [2025-01-09 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206286', 'tblTempUsageDetail_20' ) start [2025-01-09 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206286', 'tblTempUsageDetail_20' ) end [2025-01-09 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:43:21] Production.INFO: ==6644== Releasing lock... [2025-01-09 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:43:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:44:05 [end_date_ymd] => 2025-01-09 01:44:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:44:05' and `end` < '2025-01-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-01-09 01:44:19] Production.INFO: count ==187 [2025-01-09 01:44:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:44:05 - End Time 2025-01-09 01:44:05 [2025-01-09 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206291', 'tblTempUsageDetail_20' ) start [2025-01-09 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206291', 'tblTempUsageDetail_20' ) end [2025-01-09 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206291', 'tblTempVendorCDR_20' ) start [2025-01-09 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206291', 'tblTempVendorCDR_20' ) end [2025-01-09 01:44:19] Production.INFO: ProcessCDR(1,14206291,1,1,2) [2025-01-09 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206291', 'tblTempUsageDetail_20' ) start [2025-01-09 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206291', 'tblTempUsageDetail_20' ) end [2025-01-09 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:44:22] Production.INFO: ==6722== Releasing lock... [2025-01-09 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:44:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:45:05 [end_date_ymd] => 2025-01-09 01:45:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:45:05' and `end` < '2025-01-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-01-09 01:45:18] Production.INFO: count ==187 [2025-01-09 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:45:05 - End Time 2025-01-09 01:45:05 [2025-01-09 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206296', 'tblTempUsageDetail_20' ) start [2025-01-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206296', 'tblTempUsageDetail_20' ) end [2025-01-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206296', 'tblTempVendorCDR_20' ) start [2025-01-09 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206296', 'tblTempVendorCDR_20' ) end [2025-01-09 01:45:18] Production.INFO: ProcessCDR(1,14206296,1,1,2) [2025-01-09 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206296', 'tblTempUsageDetail_20' ) start [2025-01-09 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206296', 'tblTempUsageDetail_20' ) end [2025-01-09 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:45:21] Production.INFO: ==6802== Releasing lock... [2025-01-09 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:45:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:46:04 [end_date_ymd] => 2025-01-09 01:46:04 [RateCDR] => 1 ) [2025-01-09 01:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:46:04' and `end` < '2025-01-09 01:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:46:18] Production.INFO: count ==187 [2025-01-09 01:46:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:46:04 - End Time 2025-01-09 01:46:04 [2025-01-09 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206301', 'tblTempUsageDetail_20' ) start [2025-01-09 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206301', 'tblTempUsageDetail_20' ) end [2025-01-09 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206301', 'tblTempVendorCDR_20' ) start [2025-01-09 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206301', 'tblTempVendorCDR_20' ) end [2025-01-09 01:46:18] Production.INFO: ProcessCDR(1,14206301,1,1,2) [2025-01-09 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206301', 'tblTempUsageDetail_20' ) start [2025-01-09 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206301', 'tblTempUsageDetail_20' ) end [2025-01-09 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:46:21] Production.INFO: ==6877== Releasing lock... [2025-01-09 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:46:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:47:05 [end_date_ymd] => 2025-01-09 01:47:05 [RateCDR] => 1 ) [2025-01-09 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:47:05' and `end` < '2025-01-09 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:47:19] Production.INFO: count ==187 [2025-01-09 01:47:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:47:05 - End Time 2025-01-09 01:47:05 [2025-01-09 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206306', 'tblTempUsageDetail_20' ) start [2025-01-09 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206306', 'tblTempUsageDetail_20' ) end [2025-01-09 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206306', 'tblTempVendorCDR_20' ) start [2025-01-09 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206306', 'tblTempVendorCDR_20' ) end [2025-01-09 01:47:19] Production.INFO: ProcessCDR(1,14206306,1,1,2) [2025-01-09 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206306', 'tblTempUsageDetail_20' ) start [2025-01-09 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206306', 'tblTempUsageDetail_20' ) end [2025-01-09 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:47:22] Production.INFO: ==6954== Releasing lock... [2025-01-09 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:47:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:48:05 [end_date_ymd] => 2025-01-09 01:48:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:48:05' and `end` < '2025-01-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-01-09 01:48:19] Production.INFO: count ==187 [2025-01-09 01:48:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:48:05 - End Time 2025-01-09 01:48:05 [2025-01-09 01:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206311', 'tblTempUsageDetail_20' ) start [2025-01-09 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206311', 'tblTempUsageDetail_20' ) end [2025-01-09 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206311', 'tblTempVendorCDR_20' ) start [2025-01-09 01:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206311', 'tblTempVendorCDR_20' ) end [2025-01-09 01:48:19] Production.INFO: ProcessCDR(1,14206311,1,1,2) [2025-01-09 01:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206311', 'tblTempUsageDetail_20' ) start [2025-01-09 01:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206311', 'tblTempUsageDetail_20' ) end [2025-01-09 01:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:48:22] Production.INFO: ==7033== Releasing lock... [2025-01-09 01:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:48:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:49:05 [end_date_ymd] => 2025-01-09 01:49:05 [RateCDR] => 1 ) [2025-01-09 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:49:05' and `end` < '2025-01-09 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:49:19] Production.INFO: count ==187 [2025-01-09 01:49:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:49:05 - End Time 2025-01-09 01:49:05 [2025-01-09 01:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206316', 'tblTempUsageDetail_20' ) start [2025-01-09 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206316', 'tblTempUsageDetail_20' ) end [2025-01-09 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206316', 'tblTempVendorCDR_20' ) start [2025-01-09 01:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206316', 'tblTempVendorCDR_20' ) end [2025-01-09 01:49:19] Production.INFO: ProcessCDR(1,14206316,1,1,2) [2025-01-09 01:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206316', 'tblTempUsageDetail_20' ) start [2025-01-09 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206316', 'tblTempUsageDetail_20' ) end [2025-01-09 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:49:22] Production.INFO: ==7111== Releasing lock... [2025-01-09 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:49:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:50:05 [end_date_ymd] => 2025-01-09 01:50:05 [RateCDR] => 1 ) [2025-01-09 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:50:05' and `end` < '2025-01-09 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:50:19] Production.INFO: count ==189 [2025-01-09 01:50:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:50:05 - End Time 2025-01-09 01:50:05 [2025-01-09 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206321', 'tblTempUsageDetail_20' ) start [2025-01-09 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206321', 'tblTempUsageDetail_20' ) end [2025-01-09 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206321', 'tblTempVendorCDR_20' ) start [2025-01-09 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206321', 'tblTempVendorCDR_20' ) end [2025-01-09 01:50:19] Production.INFO: ProcessCDR(1,14206321,1,1,2) [2025-01-09 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206321', 'tblTempUsageDetail_20' ) start [2025-01-09 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206321', 'tblTempUsageDetail_20' ) end [2025-01-09 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:50:22] Production.INFO: ==7191== Releasing lock... [2025-01-09 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:51:05 [end_date_ymd] => 2025-01-09 01:51:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:51:05' and `end` < '2025-01-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-01-09 01:51:18] Production.INFO: count ==189 [2025-01-09 01:51:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:51:05 - End Time 2025-01-09 01:51:05 [2025-01-09 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206327', 'tblTempUsageDetail_20' ) start [2025-01-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206327', 'tblTempUsageDetail_20' ) end [2025-01-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206327', 'tblTempVendorCDR_20' ) start [2025-01-09 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206327', 'tblTempVendorCDR_20' ) end [2025-01-09 01:51:18] Production.INFO: ProcessCDR(1,14206327,1,1,2) [2025-01-09 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206327', 'tblTempUsageDetail_20' ) start [2025-01-09 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206327', 'tblTempUsageDetail_20' ) end [2025-01-09 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:51:22] Production.INFO: ==7306== Releasing lock... [2025-01-09 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:52:05 [end_date_ymd] => 2025-01-09 01:52:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:52:05' and `end` < '2025-01-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-01-09 01:52:18] Production.INFO: count ==189 [2025-01-09 01:52:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:52:05 - End Time 2025-01-09 01:52:05 [2025-01-09 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206332', 'tblTempUsageDetail_20' ) start [2025-01-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206332', 'tblTempUsageDetail_20' ) end [2025-01-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206332', 'tblTempVendorCDR_20' ) start [2025-01-09 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206332', 'tblTempVendorCDR_20' ) end [2025-01-09 01:52:18] Production.INFO: ProcessCDR(1,14206332,1,1,2) [2025-01-09 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206332', 'tblTempUsageDetail_20' ) start [2025-01-09 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206332', 'tblTempUsageDetail_20' ) end [2025-01-09 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:52:21] Production.INFO: ==7382== Releasing lock... [2025-01-09 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:52:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:53:05 [end_date_ymd] => 2025-01-09 01:53:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:53:05' and `end` < '2025-01-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-01-09 01:53:19] Production.INFO: count ==188 [2025-01-09 01:53:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:53:05 - End Time 2025-01-09 01:53:05 [2025-01-09 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206337', 'tblTempUsageDetail_20' ) start [2025-01-09 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206337', 'tblTempUsageDetail_20' ) end [2025-01-09 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206337', 'tblTempVendorCDR_20' ) start [2025-01-09 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206337', 'tblTempVendorCDR_20' ) end [2025-01-09 01:53:19] Production.INFO: ProcessCDR(1,14206337,1,1,2) [2025-01-09 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206337', 'tblTempUsageDetail_20' ) start [2025-01-09 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206337', 'tblTempUsageDetail_20' ) end [2025-01-09 01:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:53:23] Production.INFO: ==7457== Releasing lock... [2025-01-09 01:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:53:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:54:05 [end_date_ymd] => 2025-01-09 01:54:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:54:05' and `end` < '2025-01-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-01-09 01:54:18] Production.INFO: count ==187 [2025-01-09 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:54:05 - End Time 2025-01-09 01:54:05 [2025-01-09 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206342', 'tblTempUsageDetail_20' ) start [2025-01-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206342', 'tblTempUsageDetail_20' ) end [2025-01-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206342', 'tblTempVendorCDR_20' ) start [2025-01-09 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206342', 'tblTempVendorCDR_20' ) end [2025-01-09 01:54:18] Production.INFO: ProcessCDR(1,14206342,1,1,2) [2025-01-09 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206342', 'tblTempUsageDetail_20' ) start [2025-01-09 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206342', 'tblTempUsageDetail_20' ) end [2025-01-09 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:54:21] Production.INFO: ==7534== Releasing lock... [2025-01-09 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:55:04 [end_date_ymd] => 2025-01-09 01:55:04 [RateCDR] => 1 ) [2025-01-09 01:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 22:55:04' and `end` < '2025-01-09 01:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 01:55:17] Production.INFO: count ==187 [2025-01-09 01:55:17] Production.ERROR: pbx CDR StartTime 2025-01-08 22:55:04 - End Time 2025-01-09 01:55:04 [2025-01-09 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206347', 'tblTempUsageDetail_20' ) start [2025-01-09 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206347', 'tblTempUsageDetail_20' ) end [2025-01-09 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206347', 'tblTempVendorCDR_20' ) start [2025-01-09 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206347', 'tblTempVendorCDR_20' ) end [2025-01-09 01:55:17] Production.INFO: ProcessCDR(1,14206347,1,1,2) [2025-01-09 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206347', 'tblTempUsageDetail_20' ) start [2025-01-09 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206347', 'tblTempUsageDetail_20' ) end [2025-01-09 01:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:55:21] Production.INFO: ==7609== Releasing lock... [2025-01-09 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:56:05 [end_date_ymd] => 2025-01-09 01:56:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:56:05' and `end` < '2025-01-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-01-09 01:56:18] Production.INFO: count ==187 [2025-01-09 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:56:05 - End Time 2025-01-09 01:56:05 [2025-01-09 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206352', 'tblTempUsageDetail_20' ) start [2025-01-09 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206352', 'tblTempUsageDetail_20' ) end [2025-01-09 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206352', 'tblTempVendorCDR_20' ) start [2025-01-09 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206352', 'tblTempVendorCDR_20' ) end [2025-01-09 01:56:18] Production.INFO: ProcessCDR(1,14206352,1,1,2) [2025-01-09 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206352', 'tblTempUsageDetail_20' ) start [2025-01-09 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206352', 'tblTempUsageDetail_20' ) end [2025-01-09 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:56:21] Production.INFO: ==7688== Releasing lock... [2025-01-09 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:56:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:57:05 [end_date_ymd] => 2025-01-09 01:57:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:57:05' and `end` < '2025-01-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-01-09 01:57:18] Production.INFO: count ==187 [2025-01-09 01:57:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:57:05 - End Time 2025-01-09 01:57:05 [2025-01-09 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206357', 'tblTempUsageDetail_20' ) start [2025-01-09 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206357', 'tblTempUsageDetail_20' ) end [2025-01-09 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206357', 'tblTempVendorCDR_20' ) start [2025-01-09 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206357', 'tblTempVendorCDR_20' ) end [2025-01-09 01:57:18] Production.INFO: ProcessCDR(1,14206357,1,1,2) [2025-01-09 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206357', 'tblTempUsageDetail_20' ) start [2025-01-09 01:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206357', 'tblTempUsageDetail_20' ) end [2025-01-09 01:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:57:22] Production.INFO: ==7764== Releasing lock... [2025-01-09 01:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:58:05 [end_date_ymd] => 2025-01-09 01:58:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:58:05' and `end` < '2025-01-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-01-09 01:58:18] Production.INFO: count ==187 [2025-01-09 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-08 22:58:05 - End Time 2025-01-09 01:58:05 [2025-01-09 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206362', 'tblTempUsageDetail_20' ) start [2025-01-09 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206362', 'tblTempUsageDetail_20' ) end [2025-01-09 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206362', 'tblTempVendorCDR_20' ) start [2025-01-09 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206362', 'tblTempVendorCDR_20' ) end [2025-01-09 01:58:18] Production.INFO: ProcessCDR(1,14206362,1,1,2) [2025-01-09 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206362', 'tblTempUsageDetail_20' ) start [2025-01-09 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206362', 'tblTempUsageDetail_20' ) end [2025-01-09 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:58:21] Production.INFO: ==7843== Releasing lock... [2025-01-09 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 22:59:05 [end_date_ymd] => 2025-01-09 01:59:05 [RateCDR] => 1 ) [2025-01-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-01-08 22:59:05' and `end` < '2025-01-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-01-09 01:59:19] Production.INFO: count ==187 [2025-01-09 01:59:19] Production.ERROR: pbx CDR StartTime 2025-01-08 22:59:05 - End Time 2025-01-09 01:59:05 [2025-01-09 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206367', 'tblTempUsageDetail_20' ) start [2025-01-09 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206367', 'tblTempUsageDetail_20' ) end [2025-01-09 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206367', 'tblTempVendorCDR_20' ) start [2025-01-09 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206367', 'tblTempVendorCDR_20' ) end [2025-01-09 01:59:19] Production.INFO: ProcessCDR(1,14206367,1,1,2) [2025-01-09 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206367', 'tblTempUsageDetail_20' ) start [2025-01-09 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206367', 'tblTempUsageDetail_20' ) end [2025-01-09 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 01:59:22] Production.INFO: ==7924== Releasing lock... [2025-01-09 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 01:59:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 02:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:00:05 [end_date_ymd] => 2025-01-09 02:00:05 [RateCDR] => 1 ) [2025-01-09 02:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:00:05' and `end` < '2025-01-09 02:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:00:18] Production.INFO: count ==190 [2025-01-09 02:00:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:00:05 - End Time 2025-01-09 02:00:05 [2025-01-09 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206373', 'tblTempUsageDetail_20' ) start [2025-01-09 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206373', 'tblTempUsageDetail_20' ) end [2025-01-09 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206373', 'tblTempVendorCDR_20' ) start [2025-01-09 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206373', 'tblTempVendorCDR_20' ) end [2025-01-09 02:00:18] Production.INFO: ProcessCDR(1,14206373,1,1,2) [2025-01-09 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206373', 'tblTempUsageDetail_20' ) start [2025-01-09 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206373', 'tblTempUsageDetail_20' ) end [2025-01-09 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:00:22] Production.INFO: ==8005== Releasing lock... [2025-01-09 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:01:05 [end_date_ymd] => 2025-01-09 02:01:05 [RateCDR] => 1 ) [2025-01-09 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:01:05' and `end` < '2025-01-09 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:01:18] Production.INFO: count ==187 [2025-01-09 02:01:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:01:05 - End Time 2025-01-09 02:01:05 [2025-01-09 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206378', 'tblTempUsageDetail_20' ) start [2025-01-09 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206378', 'tblTempUsageDetail_20' ) end [2025-01-09 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206378', 'tblTempVendorCDR_20' ) start [2025-01-09 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206378', 'tblTempVendorCDR_20' ) end [2025-01-09 02:01:18] Production.INFO: ProcessCDR(1,14206378,1,1,2) [2025-01-09 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206378', 'tblTempUsageDetail_20' ) start [2025-01-09 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206378', 'tblTempUsageDetail_20' ) end [2025-01-09 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:01:21] Production.INFO: ==8185== Releasing lock... [2025-01-09 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:01:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:02:04 [end_date_ymd] => 2025-01-09 02:02:04 [RateCDR] => 1 ) [2025-01-09 02:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:02:04' and `end` < '2025-01-09 02:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:02:18] Production.INFO: count ==186 [2025-01-09 02:02:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:02:04 - End Time 2025-01-09 02:02:04 [2025-01-09 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206383', 'tblTempUsageDetail_20' ) start [2025-01-09 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206383', 'tblTempUsageDetail_20' ) end [2025-01-09 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206383', 'tblTempVendorCDR_20' ) start [2025-01-09 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206383', 'tblTempVendorCDR_20' ) end [2025-01-09 02:02:18] Production.INFO: ProcessCDR(1,14206383,1,1,2) [2025-01-09 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206383', 'tblTempUsageDetail_20' ) start [2025-01-09 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206383', 'tblTempUsageDetail_20' ) end [2025-01-09 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:02:22] Production.INFO: ==8257== Releasing lock... [2025-01-09 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:02:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:03:05 [end_date_ymd] => 2025-01-09 02:03:05 [RateCDR] => 1 ) [2025-01-09 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:03:05' and `end` < '2025-01-09 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:03:19] Production.INFO: count ==186 [2025-01-09 02:03:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:03:05 - End Time 2025-01-09 02:03:05 [2025-01-09 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206388', 'tblTempUsageDetail_20' ) start [2025-01-09 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206388', 'tblTempUsageDetail_20' ) end [2025-01-09 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206388', 'tblTempVendorCDR_20' ) start [2025-01-09 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206388', 'tblTempVendorCDR_20' ) end [2025-01-09 02:03:19] Production.INFO: ProcessCDR(1,14206388,1,1,2) [2025-01-09 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206388', 'tblTempUsageDetail_20' ) start [2025-01-09 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206388', 'tblTempUsageDetail_20' ) end [2025-01-09 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:03:22] Production.INFO: ==8340== Releasing lock... [2025-01-09 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:03:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:04:04 [end_date_ymd] => 2025-01-09 02:04:04 [RateCDR] => 1 ) [2025-01-09 02:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:04:04' and `end` < '2025-01-09 02:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:04:17] Production.INFO: count ==186 [2025-01-09 02:04:17] Production.ERROR: pbx CDR StartTime 2025-01-08 23:04:04 - End Time 2025-01-09 02:04:04 [2025-01-09 02:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206393', 'tblTempUsageDetail_20' ) start [2025-01-09 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206393', 'tblTempUsageDetail_20' ) end [2025-01-09 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206393', 'tblTempVendorCDR_20' ) start [2025-01-09 02:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206393', 'tblTempVendorCDR_20' ) end [2025-01-09 02:04:17] Production.INFO: ProcessCDR(1,14206393,1,1,2) [2025-01-09 02:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206393', 'tblTempUsageDetail_20' ) start [2025-01-09 02:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206393', 'tblTempUsageDetail_20' ) end [2025-01-09 02:04:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:04:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:04:20] Production.INFO: ==8424== Releasing lock... [2025-01-09 02:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:04:20] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:05:05 [end_date_ymd] => 2025-01-09 02:05:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:05:05' and `end` < '2025-01-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-01-09 02:05:18] Production.INFO: count ==186 [2025-01-09 02:05:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:05:05 - End Time 2025-01-09 02:05:05 [2025-01-09 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206398', 'tblTempUsageDetail_20' ) start [2025-01-09 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206398', 'tblTempUsageDetail_20' ) end [2025-01-09 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206398', 'tblTempVendorCDR_20' ) start [2025-01-09 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206398', 'tblTempVendorCDR_20' ) end [2025-01-09 02:05:18] Production.INFO: ProcessCDR(1,14206398,1,1,2) [2025-01-09 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206398', 'tblTempUsageDetail_20' ) start [2025-01-09 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206398', 'tblTempUsageDetail_20' ) end [2025-01-09 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:05:21] Production.INFO: ==8505== Releasing lock... [2025-01-09 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:05:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:06:05 [end_date_ymd] => 2025-01-09 02:06:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:06:05' and `end` < '2025-01-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-01-09 02:06:19] Production.INFO: count ==185 [2025-01-09 02:06:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:06:05 - End Time 2025-01-09 02:06:05 [2025-01-09 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206403', 'tblTempUsageDetail_20' ) start [2025-01-09 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206403', 'tblTempUsageDetail_20' ) end [2025-01-09 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206403', 'tblTempVendorCDR_20' ) start [2025-01-09 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206403', 'tblTempVendorCDR_20' ) end [2025-01-09 02:06:19] Production.INFO: ProcessCDR(1,14206403,1,1,2) [2025-01-09 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206403', 'tblTempUsageDetail_20' ) start [2025-01-09 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206403', 'tblTempUsageDetail_20' ) end [2025-01-09 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:06:22] Production.INFO: ==8591== Releasing lock... [2025-01-09 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:06:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:07:04 [end_date_ymd] => 2025-01-09 02:07:04 [RateCDR] => 1 ) [2025-01-09 02:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:07:04' and `end` < '2025-01-09 02:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:07:17] Production.INFO: count ==186 [2025-01-09 02:07:17] Production.ERROR: pbx CDR StartTime 2025-01-08 23:07:04 - End Time 2025-01-09 02:07:04 [2025-01-09 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206408', 'tblTempUsageDetail_20' ) start [2025-01-09 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206408', 'tblTempUsageDetail_20' ) end [2025-01-09 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206408', 'tblTempVendorCDR_20' ) start [2025-01-09 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206408', 'tblTempVendorCDR_20' ) end [2025-01-09 02:07:17] Production.INFO: ProcessCDR(1,14206408,1,1,2) [2025-01-09 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206408', 'tblTempUsageDetail_20' ) start [2025-01-09 02:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206408', 'tblTempUsageDetail_20' ) end [2025-01-09 02:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:07:22] Production.INFO: ==8711== Releasing lock... [2025-01-09 02:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:07:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:08:05 [end_date_ymd] => 2025-01-09 02:08:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:08:05' and `end` < '2025-01-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-01-09 02:08:18] Production.INFO: count ==187 [2025-01-09 02:08:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:08:05 - End Time 2025-01-09 02:08:05 [2025-01-09 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206413', 'tblTempUsageDetail_20' ) start [2025-01-09 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206413', 'tblTempUsageDetail_20' ) end [2025-01-09 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206413', 'tblTempVendorCDR_20' ) start [2025-01-09 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206413', 'tblTempVendorCDR_20' ) end [2025-01-09 02:08:18] Production.INFO: ProcessCDR(1,14206413,1,1,2) [2025-01-09 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206413', 'tblTempUsageDetail_20' ) start [2025-01-09 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206413', 'tblTempUsageDetail_20' ) end [2025-01-09 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:08:22] Production.INFO: ==8794== Releasing lock... [2025-01-09 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:08:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:09:05 [end_date_ymd] => 2025-01-09 02:09:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:09:05' and `end` < '2025-01-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-01-09 02:09:19] Production.INFO: count ==187 [2025-01-09 02:09:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:09:05 - End Time 2025-01-09 02:09:05 [2025-01-09 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206418', 'tblTempUsageDetail_20' ) start [2025-01-09 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206418', 'tblTempUsageDetail_20' ) end [2025-01-09 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206418', 'tblTempVendorCDR_20' ) start [2025-01-09 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206418', 'tblTempVendorCDR_20' ) end [2025-01-09 02:09:19] Production.INFO: ProcessCDR(1,14206418,1,1,2) [2025-01-09 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206418', 'tblTempUsageDetail_20' ) start [2025-01-09 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206418', 'tblTempUsageDetail_20' ) end [2025-01-09 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:09:22] Production.INFO: ==8883== Releasing lock... [2025-01-09 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:09:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:10:06 [end_date_ymd] => 2025-01-09 02:10:06 [RateCDR] => 1 ) [2025-01-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-01-08 23:10:06' and `end` < '2025-01-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-01-09 02:10:19] Production.INFO: count ==188 [2025-01-09 02:10:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:10:06 - End Time 2025-01-09 02:10:06 [2025-01-09 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206424', 'tblTempUsageDetail_20' ) start [2025-01-09 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206424', 'tblTempUsageDetail_20' ) end [2025-01-09 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206424', 'tblTempVendorCDR_20' ) start [2025-01-09 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206424', 'tblTempVendorCDR_20' ) end [2025-01-09 02:10:19] Production.INFO: ProcessCDR(1,14206424,1,1,2) [2025-01-09 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206424', 'tblTempUsageDetail_20' ) start [2025-01-09 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206424', 'tblTempUsageDetail_20' ) end [2025-01-09 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:10:22] Production.INFO: ==8970== Releasing lock... [2025-01-09 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:10:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:11:05 [end_date_ymd] => 2025-01-09 02:11:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:11:05' and `end` < '2025-01-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-01-09 02:11:18] Production.INFO: count ==188 [2025-01-09 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:11:05 - End Time 2025-01-09 02:11:05 [2025-01-09 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206429', 'tblTempUsageDetail_20' ) start [2025-01-09 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206429', 'tblTempUsageDetail_20' ) end [2025-01-09 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206429', 'tblTempVendorCDR_20' ) start [2025-01-09 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206429', 'tblTempVendorCDR_20' ) end [2025-01-09 02:11:18] Production.INFO: ProcessCDR(1,14206429,1,1,2) [2025-01-09 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206429', 'tblTempUsageDetail_20' ) start [2025-01-09 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206429', 'tblTempUsageDetail_20' ) end [2025-01-09 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:11:21] Production.INFO: ==9057== Releasing lock... [2025-01-09 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:11:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:12:05 [end_date_ymd] => 2025-01-09 02:12:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:12:05' and `end` < '2025-01-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-01-09 02:12:18] Production.INFO: count ==188 [2025-01-09 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:12:05 - End Time 2025-01-09 02:12:05 [2025-01-09 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206434', 'tblTempUsageDetail_20' ) start [2025-01-09 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206434', 'tblTempUsageDetail_20' ) end [2025-01-09 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206434', 'tblTempVendorCDR_20' ) start [2025-01-09 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206434', 'tblTempVendorCDR_20' ) end [2025-01-09 02:12:18] Production.INFO: ProcessCDR(1,14206434,1,1,2) [2025-01-09 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206434', 'tblTempUsageDetail_20' ) start [2025-01-09 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206434', 'tblTempUsageDetail_20' ) end [2025-01-09 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:12:22] Production.INFO: ==9143== Releasing lock... [2025-01-09 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:12:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:13:04 [end_date_ymd] => 2025-01-09 02:13:04 [RateCDR] => 1 ) [2025-01-09 02:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:13:04' and `end` < '2025-01-09 02:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:13:17] Production.INFO: count ==188 [2025-01-09 02:13:17] Production.ERROR: pbx CDR StartTime 2025-01-08 23:13:04 - End Time 2025-01-09 02:13:04 [2025-01-09 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206439', 'tblTempUsageDetail_20' ) start [2025-01-09 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206439', 'tblTempUsageDetail_20' ) end [2025-01-09 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206439', 'tblTempVendorCDR_20' ) start [2025-01-09 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206439', 'tblTempVendorCDR_20' ) end [2025-01-09 02:13:17] Production.INFO: ProcessCDR(1,14206439,1,1,2) [2025-01-09 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206439', 'tblTempUsageDetail_20' ) start [2025-01-09 02:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206439', 'tblTempUsageDetail_20' ) end [2025-01-09 02:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:13:20] Production.INFO: ==9229== Releasing lock... [2025-01-09 02:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:13:20] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:14:05 [end_date_ymd] => 2025-01-09 02:14:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:14:05' and `end` < '2025-01-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-01-09 02:14:19] Production.INFO: count ==188 [2025-01-09 02:14:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:14:05 - End Time 2025-01-09 02:14:05 [2025-01-09 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206444', 'tblTempUsageDetail_20' ) start [2025-01-09 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206444', 'tblTempUsageDetail_20' ) end [2025-01-09 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206444', 'tblTempVendorCDR_20' ) start [2025-01-09 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206444', 'tblTempVendorCDR_20' ) end [2025-01-09 02:14:19] Production.INFO: ProcessCDR(1,14206444,1,1,2) [2025-01-09 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206444', 'tblTempUsageDetail_20' ) start [2025-01-09 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206444', 'tblTempUsageDetail_20' ) end [2025-01-09 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:14:22] Production.INFO: ==9315== Releasing lock... [2025-01-09 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:14:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:15:05 [end_date_ymd] => 2025-01-09 02:15:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:15:05' and `end` < '2025-01-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-01-09 02:15:19] Production.INFO: count ==188 [2025-01-09 02:15:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:15:05 - End Time 2025-01-09 02:15:05 [2025-01-09 02:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206449', 'tblTempUsageDetail_20' ) start [2025-01-09 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206449', 'tblTempUsageDetail_20' ) end [2025-01-09 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206449', 'tblTempVendorCDR_20' ) start [2025-01-09 02:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206449', 'tblTempVendorCDR_20' ) end [2025-01-09 02:15:19] Production.INFO: ProcessCDR(1,14206449,1,1,2) [2025-01-09 02:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206449', 'tblTempUsageDetail_20' ) start [2025-01-09 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206449', 'tblTempUsageDetail_20' ) end [2025-01-09 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:15:22] Production.INFO: ==9394== Releasing lock... [2025-01-09 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:15:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:16:05 [end_date_ymd] => 2025-01-09 02:16:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:16:05' and `end` < '2025-01-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-01-09 02:16:19] Production.INFO: count ==188 [2025-01-09 02:16:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:16:05 - End Time 2025-01-09 02:16:05 [2025-01-09 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206454', 'tblTempUsageDetail_20' ) start [2025-01-09 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206454', 'tblTempUsageDetail_20' ) end [2025-01-09 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206454', 'tblTempVendorCDR_20' ) start [2025-01-09 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206454', 'tblTempVendorCDR_20' ) end [2025-01-09 02:16:19] Production.INFO: ProcessCDR(1,14206454,1,1,2) [2025-01-09 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206454', 'tblTempUsageDetail_20' ) start [2025-01-09 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206454', 'tblTempUsageDetail_20' ) end [2025-01-09 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:16:22] Production.INFO: ==9480== Releasing lock... [2025-01-09 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:16:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:17:04 [end_date_ymd] => 2025-01-09 02:17:04 [RateCDR] => 1 ) [2025-01-09 02:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:17:04' and `end` < '2025-01-09 02:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:17:17] Production.INFO: count ==188 [2025-01-09 02:17:17] Production.ERROR: pbx CDR StartTime 2025-01-08 23:17:04 - End Time 2025-01-09 02:17:04 [2025-01-09 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206456', 'tblTempUsageDetail_20' ) start [2025-01-09 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206456', 'tblTempUsageDetail_20' ) end [2025-01-09 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206456', 'tblTempVendorCDR_20' ) start [2025-01-09 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206456', 'tblTempVendorCDR_20' ) end [2025-01-09 02:17:17] Production.INFO: ProcessCDR(1,14206456,1,1,2) [2025-01-09 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206456', 'tblTempUsageDetail_20' ) start [2025-01-09 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206456', 'tblTempUsageDetail_20' ) end [2025-01-09 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:17:20] Production.INFO: ==9562== Releasing lock... [2025-01-09 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:17:20] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:18:05 [end_date_ymd] => 2025-01-09 02:18:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:18:05' and `end` < '2025-01-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-01-09 02:18:19] Production.INFO: count ==187 [2025-01-09 02:18:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:18:05 - End Time 2025-01-09 02:18:05 [2025-01-09 02:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206464', 'tblTempUsageDetail_20' ) start [2025-01-09 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206464', 'tblTempUsageDetail_20' ) end [2025-01-09 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206464', 'tblTempVendorCDR_20' ) start [2025-01-09 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206464', 'tblTempVendorCDR_20' ) end [2025-01-09 02:18:19] Production.INFO: ProcessCDR(1,14206464,1,1,2) [2025-01-09 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206464', 'tblTempUsageDetail_20' ) start [2025-01-09 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206464', 'tblTempUsageDetail_20' ) end [2025-01-09 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:18:22] Production.INFO: ==9646== Releasing lock... [2025-01-09 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:18:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:19:05 [end_date_ymd] => 2025-01-09 02:19:05 [RateCDR] => 1 ) [2025-01-09 02:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:19:05' and `end` < '2025-01-09 02:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:19:18] Production.INFO: count ==187 [2025-01-09 02:19:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:19:05 - End Time 2025-01-09 02:19:05 [2025-01-09 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206469', 'tblTempUsageDetail_20' ) start [2025-01-09 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206469', 'tblTempUsageDetail_20' ) end [2025-01-09 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206469', 'tblTempVendorCDR_20' ) start [2025-01-09 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206469', 'tblTempVendorCDR_20' ) end [2025-01-09 02:19:18] Production.INFO: ProcessCDR(1,14206469,1,1,2) [2025-01-09 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206469', 'tblTempUsageDetail_20' ) start [2025-01-09 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206469', 'tblTempUsageDetail_20' ) end [2025-01-09 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:19:21] Production.INFO: ==9744== Releasing lock... [2025-01-09 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:19:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:20:05 [end_date_ymd] => 2025-01-09 02:20:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:20:05' and `end` < '2025-01-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-01-09 02:20:18] Production.INFO: count ==188 [2025-01-09 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:20:05 - End Time 2025-01-09 02:20:05 [2025-01-09 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206475', 'tblTempUsageDetail_20' ) start [2025-01-09 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206475', 'tblTempUsageDetail_20' ) end [2025-01-09 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206475', 'tblTempVendorCDR_20' ) start [2025-01-09 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206475', 'tblTempVendorCDR_20' ) end [2025-01-09 02:20:18] Production.INFO: ProcessCDR(1,14206475,1,1,2) [2025-01-09 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206475', 'tblTempUsageDetail_20' ) start [2025-01-09 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206475', 'tblTempUsageDetail_20' ) end [2025-01-09 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:20:22] Production.INFO: ==9857== Releasing lock... [2025-01-09 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:20:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:21:05 [end_date_ymd] => 2025-01-09 02:21:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:21:05' and `end` < '2025-01-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-01-09 02:21:19] Production.INFO: count ==188 [2025-01-09 02:21:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:21:05 - End Time 2025-01-09 02:21:05 [2025-01-09 02:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206480', 'tblTempUsageDetail_20' ) start [2025-01-09 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206480', 'tblTempUsageDetail_20' ) end [2025-01-09 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206480', 'tblTempVendorCDR_20' ) start [2025-01-09 02:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206480', 'tblTempVendorCDR_20' ) end [2025-01-09 02:21:19] Production.INFO: ProcessCDR(1,14206480,1,1,2) [2025-01-09 02:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206480', 'tblTempUsageDetail_20' ) start [2025-01-09 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206480', 'tblTempUsageDetail_20' ) end [2025-01-09 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:21:22] Production.INFO: ==9964== Releasing lock... [2025-01-09 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:21:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:22:05 [end_date_ymd] => 2025-01-09 02:22:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:22:05' and `end` < '2025-01-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-01-09 02:22:19] Production.INFO: count ==188 [2025-01-09 02:22:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:22:05 - End Time 2025-01-09 02:22:05 [2025-01-09 02:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206485', 'tblTempUsageDetail_20' ) start [2025-01-09 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206485', 'tblTempUsageDetail_20' ) end [2025-01-09 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206485', 'tblTempVendorCDR_20' ) start [2025-01-09 02:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206485', 'tblTempVendorCDR_20' ) end [2025-01-09 02:22:19] Production.INFO: ProcessCDR(1,14206485,1,1,2) [2025-01-09 02:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206485', 'tblTempUsageDetail_20' ) start [2025-01-09 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206485', 'tblTempUsageDetail_20' ) end [2025-01-09 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:22:22] Production.INFO: ==10111== Releasing lock... [2025-01-09 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:22:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:23:05 [end_date_ymd] => 2025-01-09 02:23:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:23:05' and `end` < '2025-01-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-01-09 02:23:18] Production.INFO: count ==188 [2025-01-09 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:23:05 - End Time 2025-01-09 02:23:05 [2025-01-09 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206490', 'tblTempUsageDetail_20' ) start [2025-01-09 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206490', 'tblTempUsageDetail_20' ) end [2025-01-09 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206490', 'tblTempVendorCDR_20' ) start [2025-01-09 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206490', 'tblTempVendorCDR_20' ) end [2025-01-09 02:23:18] Production.INFO: ProcessCDR(1,14206490,1,1,2) [2025-01-09 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206490', 'tblTempUsageDetail_20' ) start [2025-01-09 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206490', 'tblTempUsageDetail_20' ) end [2025-01-09 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:23:21] Production.INFO: ==10193== Releasing lock... [2025-01-09 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:23:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:24:04 [end_date_ymd] => 2025-01-09 02:24:04 [RateCDR] => 1 ) [2025-01-09 02:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:24:04' and `end` < '2025-01-09 02:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:24:17] Production.INFO: count ==188 [2025-01-09 02:24:17] Production.ERROR: pbx CDR StartTime 2025-01-08 23:24:04 - End Time 2025-01-09 02:24:04 [2025-01-09 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206495', 'tblTempUsageDetail_20' ) start [2025-01-09 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206495', 'tblTempUsageDetail_20' ) end [2025-01-09 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206495', 'tblTempVendorCDR_20' ) start [2025-01-09 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206495', 'tblTempVendorCDR_20' ) end [2025-01-09 02:24:17] Production.INFO: ProcessCDR(1,14206495,1,1,2) [2025-01-09 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206495', 'tblTempUsageDetail_20' ) start [2025-01-09 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206495', 'tblTempUsageDetail_20' ) end [2025-01-09 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:24:21] Production.INFO: ==10276== Releasing lock... [2025-01-09 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:24:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:25:05 [end_date_ymd] => 2025-01-09 02:25:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:25:05' and `end` < '2025-01-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-01-09 02:25:18] Production.INFO: count ==188 [2025-01-09 02:25:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:25:05 - End Time 2025-01-09 02:25:05 [2025-01-09 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206500', 'tblTempUsageDetail_20' ) start [2025-01-09 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206500', 'tblTempUsageDetail_20' ) end [2025-01-09 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206500', 'tblTempVendorCDR_20' ) start [2025-01-09 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206500', 'tblTempVendorCDR_20' ) end [2025-01-09 02:25:18] Production.INFO: ProcessCDR(1,14206500,1,1,2) [2025-01-09 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206500', 'tblTempUsageDetail_20' ) start [2025-01-09 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206500', 'tblTempUsageDetail_20' ) end [2025-01-09 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:25:21] Production.INFO: ==10360== Releasing lock... [2025-01-09 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:26:05 [end_date_ymd] => 2025-01-09 02:26:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:26:05' and `end` < '2025-01-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-01-09 02:26:20] Production.INFO: count ==188 [2025-01-09 02:26:20] Production.ERROR: pbx CDR StartTime 2025-01-08 23:26:05 - End Time 2025-01-09 02:26:05 [2025-01-09 02:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206505', 'tblTempUsageDetail_20' ) start [2025-01-09 02:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206505', 'tblTempUsageDetail_20' ) end [2025-01-09 02:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206505', 'tblTempVendorCDR_20' ) start [2025-01-09 02:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206505', 'tblTempVendorCDR_20' ) end [2025-01-09 02:26:20] Production.INFO: ProcessCDR(1,14206505,1,1,2) [2025-01-09 02:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206505', 'tblTempUsageDetail_20' ) start [2025-01-09 02:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206505', 'tblTempUsageDetail_20' ) end [2025-01-09 02:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:26:23] Production.INFO: ==10443== Releasing lock... [2025-01-09 02:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:26:23] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:27:05 [end_date_ymd] => 2025-01-09 02:27:05 [RateCDR] => 1 ) [2025-01-09 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:27:05' and `end` < '2025-01-09 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:27:19] Production.INFO: count ==188 [2025-01-09 02:27:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:27:05 - End Time 2025-01-09 02:27:05 [2025-01-09 02:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206510', 'tblTempUsageDetail_20' ) start [2025-01-09 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206510', 'tblTempUsageDetail_20' ) end [2025-01-09 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206510', 'tblTempVendorCDR_20' ) start [2025-01-09 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206510', 'tblTempVendorCDR_20' ) end [2025-01-09 02:27:19] Production.INFO: ProcessCDR(1,14206510,1,1,2) [2025-01-09 02:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206510', 'tblTempUsageDetail_20' ) start [2025-01-09 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206510', 'tblTempUsageDetail_20' ) end [2025-01-09 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:27:22] Production.INFO: ==10529== Releasing lock... [2025-01-09 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:27:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:28:04 [end_date_ymd] => 2025-01-09 02:28:04 [RateCDR] => 1 ) [2025-01-09 02:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:28:04' and `end` < '2025-01-09 02:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:28:17] Production.INFO: count ==188 [2025-01-09 02:28:17] Production.ERROR: pbx CDR StartTime 2025-01-08 23:28:04 - End Time 2025-01-09 02:28:04 [2025-01-09 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206515', 'tblTempUsageDetail_20' ) start [2025-01-09 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206515', 'tblTempUsageDetail_20' ) end [2025-01-09 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206515', 'tblTempVendorCDR_20' ) start [2025-01-09 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206515', 'tblTempVendorCDR_20' ) end [2025-01-09 02:28:17] Production.INFO: ProcessCDR(1,14206515,1,1,2) [2025-01-09 02:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206515', 'tblTempUsageDetail_20' ) start [2025-01-09 02:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206515', 'tblTempUsageDetail_20' ) end [2025-01-09 02:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:28:20] Production.INFO: ==10615== Releasing lock... [2025-01-09 02:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:28:20] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:29:04 [end_date_ymd] => 2025-01-09 02:29:04 [RateCDR] => 1 ) [2025-01-09 02:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:29:04' and `end` < '2025-01-09 02:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:29:17] Production.INFO: count ==186 [2025-01-09 02:29:17] Production.ERROR: pbx CDR StartTime 2025-01-08 23:29:04 - End Time 2025-01-09 02:29:04 [2025-01-09 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206520', 'tblTempUsageDetail_20' ) start [2025-01-09 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206520', 'tblTempUsageDetail_20' ) end [2025-01-09 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206520', 'tblTempVendorCDR_20' ) start [2025-01-09 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206520', 'tblTempVendorCDR_20' ) end [2025-01-09 02:29:17] Production.INFO: ProcessCDR(1,14206520,1,1,2) [2025-01-09 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206520', 'tblTempUsageDetail_20' ) start [2025-01-09 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206520', 'tblTempUsageDetail_20' ) end [2025-01-09 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:29:20] Production.INFO: ==10696== Releasing lock... [2025-01-09 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:29:20] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:30:06 [end_date_ymd] => 2025-01-09 02:30:06 [RateCDR] => 1 ) [2025-01-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-01-08 23:30:06' and `end` < '2025-01-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-01-09 02:30:19] Production.INFO: count ==187 [2025-01-09 02:30:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:30:06 - End Time 2025-01-09 02:30:06 [2025-01-09 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206525', 'tblTempUsageDetail_20' ) start [2025-01-09 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206525', 'tblTempUsageDetail_20' ) end [2025-01-09 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206525', 'tblTempVendorCDR_20' ) start [2025-01-09 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206525', 'tblTempVendorCDR_20' ) end [2025-01-09 02:30:19] Production.INFO: ProcessCDR(1,14206525,1,1,2) [2025-01-09 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206525', 'tblTempUsageDetail_20' ) start [2025-01-09 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206525', 'tblTempUsageDetail_20' ) end [2025-01-09 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:30:22] Production.INFO: ==10784== Releasing lock... [2025-01-09 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:30:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:31:05 [end_date_ymd] => 2025-01-09 02:31:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:31:05' and `end` < '2025-01-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-01-09 02:31:19] Production.INFO: count ==186 [2025-01-09 02:31:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:31:05 - End Time 2025-01-09 02:31:05 [2025-01-09 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206531', 'tblTempUsageDetail_20' ) start [2025-01-09 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206531', 'tblTempUsageDetail_20' ) end [2025-01-09 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206531', 'tblTempVendorCDR_20' ) start [2025-01-09 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206531', 'tblTempVendorCDR_20' ) end [2025-01-09 02:31:19] Production.INFO: ProcessCDR(1,14206531,1,1,2) [2025-01-09 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206531', 'tblTempUsageDetail_20' ) start [2025-01-09 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206531', 'tblTempUsageDetail_20' ) end [2025-01-09 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:31:22] Production.INFO: ==10868== Releasing lock... [2025-01-09 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:31:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:32:05 [end_date_ymd] => 2025-01-09 02:32:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:32:05' and `end` < '2025-01-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-01-09 02:32:19] Production.INFO: count ==183 [2025-01-09 02:32:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:32:05 - End Time 2025-01-09 02:32:05 [2025-01-09 02:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206536', 'tblTempUsageDetail_20' ) start [2025-01-09 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206536', 'tblTempUsageDetail_20' ) end [2025-01-09 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206536', 'tblTempVendorCDR_20' ) start [2025-01-09 02:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206536', 'tblTempVendorCDR_20' ) end [2025-01-09 02:32:19] Production.INFO: ProcessCDR(1,14206536,1,1,2) [2025-01-09 02:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206536', 'tblTempUsageDetail_20' ) start [2025-01-09 02:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206536', 'tblTempUsageDetail_20' ) end [2025-01-09 02:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:32:22] Production.INFO: ==10950== Releasing lock... [2025-01-09 02:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:32:22] Production.INFO: 29 MB #Memory Used# [2025-01-09 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:33:05 [end_date_ymd] => 2025-01-09 02:33:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:33:05' and `end` < '2025-01-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-01-09 02:33:18] Production.INFO: count ==183 [2025-01-09 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:33:05 - End Time 2025-01-09 02:33:05 [2025-01-09 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206541', 'tblTempUsageDetail_20' ) start [2025-01-09 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206541', 'tblTempUsageDetail_20' ) end [2025-01-09 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206541', 'tblTempVendorCDR_20' ) start [2025-01-09 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206541', 'tblTempVendorCDR_20' ) end [2025-01-09 02:33:18] Production.INFO: ProcessCDR(1,14206541,1,1,2) [2025-01-09 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206541', 'tblTempUsageDetail_20' ) start [2025-01-09 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206541', 'tblTempUsageDetail_20' ) end [2025-01-09 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:33:21] Production.INFO: ==11032== Releasing lock... [2025-01-09 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:34:05 [end_date_ymd] => 2025-01-09 02:34:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:34:05' and `end` < '2025-01-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-01-09 02:34:18] Production.INFO: count ==183 [2025-01-09 02:34:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:34:05 - End Time 2025-01-09 02:34:05 [2025-01-09 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206546', 'tblTempUsageDetail_20' ) start [2025-01-09 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206546', 'tblTempUsageDetail_20' ) end [2025-01-09 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206546', 'tblTempVendorCDR_20' ) start [2025-01-09 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206546', 'tblTempVendorCDR_20' ) end [2025-01-09 02:34:18] Production.INFO: ProcessCDR(1,14206546,1,1,2) [2025-01-09 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206546', 'tblTempUsageDetail_20' ) start [2025-01-09 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206546', 'tblTempUsageDetail_20' ) end [2025-01-09 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:34:21] Production.INFO: ==11115== Releasing lock... [2025-01-09 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:35:04 [end_date_ymd] => 2025-01-09 02:35:04 [RateCDR] => 1 ) [2025-01-09 02:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:35:04' and `end` < '2025-01-09 02:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:35:17] Production.INFO: count ==181 [2025-01-09 02:35:17] Production.ERROR: pbx CDR StartTime 2025-01-08 23:35:04 - End Time 2025-01-09 02:35:04 [2025-01-09 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206551', 'tblTempUsageDetail_20' ) start [2025-01-09 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206551', 'tblTempUsageDetail_20' ) end [2025-01-09 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206551', 'tblTempVendorCDR_20' ) start [2025-01-09 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206551', 'tblTempVendorCDR_20' ) end [2025-01-09 02:35:17] Production.INFO: ProcessCDR(1,14206551,1,1,2) [2025-01-09 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206551', 'tblTempUsageDetail_20' ) start [2025-01-09 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206551', 'tblTempUsageDetail_20' ) end [2025-01-09 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:35:21] Production.INFO: ==11198== Releasing lock... [2025-01-09 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:36:05 [end_date_ymd] => 2025-01-09 02:36:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:36:05' and `end` < '2025-01-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-01-09 02:36:18] Production.INFO: count ==177 [2025-01-09 02:36:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:36:05 - End Time 2025-01-09 02:36:05 [2025-01-09 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206556', 'tblTempUsageDetail_20' ) start [2025-01-09 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206556', 'tblTempUsageDetail_20' ) end [2025-01-09 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206556', 'tblTempVendorCDR_20' ) start [2025-01-09 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206556', 'tblTempVendorCDR_20' ) end [2025-01-09 02:36:18] Production.INFO: ProcessCDR(1,14206556,1,1,2) [2025-01-09 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206556', 'tblTempUsageDetail_20' ) start [2025-01-09 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206556', 'tblTempUsageDetail_20' ) end [2025-01-09 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:36:21] Production.INFO: ==11283== Releasing lock... [2025-01-09 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:37:04 [end_date_ymd] => 2025-01-09 02:37:04 [RateCDR] => 1 ) [2025-01-09 02:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:37:04' and `end` < '2025-01-09 02:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:37:18] Production.INFO: count ==174 [2025-01-09 02:37:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:37:04 - End Time 2025-01-09 02:37:04 [2025-01-09 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206561', 'tblTempUsageDetail_20' ) start [2025-01-09 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206561', 'tblTempUsageDetail_20' ) end [2025-01-09 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206561', 'tblTempVendorCDR_20' ) start [2025-01-09 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206561', 'tblTempVendorCDR_20' ) end [2025-01-09 02:37:18] Production.INFO: ProcessCDR(1,14206561,1,1,2) [2025-01-09 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206561', 'tblTempUsageDetail_20' ) start [2025-01-09 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206561', 'tblTempUsageDetail_20' ) end [2025-01-09 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:37:22] Production.INFO: ==11361== Releasing lock... [2025-01-09 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:37:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:38:06 [end_date_ymd] => 2025-01-09 02:38:06 [RateCDR] => 1 ) [2025-01-09 02:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:38:06' and `end` < '2025-01-09 02:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:38:19] Production.INFO: count ==174 [2025-01-09 02:38:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:38:06 - End Time 2025-01-09 02:38:06 [2025-01-09 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206566', 'tblTempUsageDetail_20' ) start [2025-01-09 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206566', 'tblTempUsageDetail_20' ) end [2025-01-09 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206566', 'tblTempVendorCDR_20' ) start [2025-01-09 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206566', 'tblTempVendorCDR_20' ) end [2025-01-09 02:38:19] Production.INFO: ProcessCDR(1,14206566,1,1,2) [2025-01-09 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206566', 'tblTempUsageDetail_20' ) start [2025-01-09 02:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206566', 'tblTempUsageDetail_20' ) end [2025-01-09 02:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:38:22] Production.INFO: ==11488== Releasing lock... [2025-01-09 02:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:38:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:39:04 [end_date_ymd] => 2025-01-09 02:39:04 [RateCDR] => 1 ) [2025-01-09 02:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:39:04' and `end` < '2025-01-09 02:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:39:18] Production.INFO: count ==174 [2025-01-09 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:39:04 - End Time 2025-01-09 02:39:04 [2025-01-09 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206571', 'tblTempUsageDetail_20' ) start [2025-01-09 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206571', 'tblTempUsageDetail_20' ) end [2025-01-09 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206571', 'tblTempVendorCDR_20' ) start [2025-01-09 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206571', 'tblTempVendorCDR_20' ) end [2025-01-09 02:39:18] Production.INFO: ProcessCDR(1,14206571,1,1,2) [2025-01-09 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206571', 'tblTempUsageDetail_20' ) start [2025-01-09 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206571', 'tblTempUsageDetail_20' ) end [2025-01-09 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:39:21] Production.INFO: ==11571== Releasing lock... [2025-01-09 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:40:06 [end_date_ymd] => 2025-01-09 02:40:06 [RateCDR] => 1 ) [2025-01-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-01-08 23:40:06' and `end` < '2025-01-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-01-09 02:40:19] Production.INFO: count ==174 [2025-01-09 02:40:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:40:06 - End Time 2025-01-09 02:40:06 [2025-01-09 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206577', 'tblTempUsageDetail_20' ) start [2025-01-09 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206577', 'tblTempUsageDetail_20' ) end [2025-01-09 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206577', 'tblTempVendorCDR_20' ) start [2025-01-09 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206577', 'tblTempVendorCDR_20' ) end [2025-01-09 02:40:19] Production.INFO: ProcessCDR(1,14206577,1,1,2) [2025-01-09 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206577', 'tblTempUsageDetail_20' ) start [2025-01-09 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206577', 'tblTempUsageDetail_20' ) end [2025-01-09 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:40:22] Production.INFO: ==11656== Releasing lock... [2025-01-09 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:41:05 [end_date_ymd] => 2025-01-09 02:41:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:41:05' and `end` < '2025-01-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-01-09 02:41:19] Production.INFO: count ==174 [2025-01-09 02:41:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:41:05 - End Time 2025-01-09 02:41:05 [2025-01-09 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206582', 'tblTempUsageDetail_20' ) start [2025-01-09 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206582', 'tblTempUsageDetail_20' ) end [2025-01-09 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206582', 'tblTempVendorCDR_20' ) start [2025-01-09 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206582', 'tblTempVendorCDR_20' ) end [2025-01-09 02:41:19] Production.INFO: ProcessCDR(1,14206582,1,1,2) [2025-01-09 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206582', 'tblTempUsageDetail_20' ) start [2025-01-09 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206582', 'tblTempUsageDetail_20' ) end [2025-01-09 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:41:22] Production.INFO: ==11740== Releasing lock... [2025-01-09 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:41:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:42:05 [end_date_ymd] => 2025-01-09 02:42:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:42:05' and `end` < '2025-01-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-01-09 02:42:18] Production.INFO: count ==174 [2025-01-09 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:42:05 - End Time 2025-01-09 02:42:05 [2025-01-09 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206587', 'tblTempUsageDetail_20' ) start [2025-01-09 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206587', 'tblTempUsageDetail_20' ) end [2025-01-09 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206587', 'tblTempVendorCDR_20' ) start [2025-01-09 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206587', 'tblTempVendorCDR_20' ) end [2025-01-09 02:42:18] Production.INFO: ProcessCDR(1,14206587,1,1,2) [2025-01-09 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206587', 'tblTempUsageDetail_20' ) start [2025-01-09 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206587', 'tblTempUsageDetail_20' ) end [2025-01-09 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:42:21] Production.INFO: ==11829== Releasing lock... [2025-01-09 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:43:06 [end_date_ymd] => 2025-01-09 02:43:06 [RateCDR] => 1 ) [2025-01-09 02:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:43:06' and `end` < '2025-01-09 02:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:43:19] Production.INFO: count ==177 [2025-01-09 02:43:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:43:06 - End Time 2025-01-09 02:43:06 [2025-01-09 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206592', 'tblTempUsageDetail_20' ) start [2025-01-09 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206592', 'tblTempUsageDetail_20' ) end [2025-01-09 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206592', 'tblTempVendorCDR_20' ) start [2025-01-09 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206592', 'tblTempVendorCDR_20' ) end [2025-01-09 02:43:19] Production.INFO: ProcessCDR(1,14206592,1,1,2) [2025-01-09 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206592', 'tblTempUsageDetail_20' ) start [2025-01-09 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206592', 'tblTempUsageDetail_20' ) end [2025-01-09 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:43:22] Production.INFO: ==11913== Releasing lock... [2025-01-09 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:43:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:44:05 [end_date_ymd] => 2025-01-09 02:44:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:44:05' and `end` < '2025-01-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-01-09 02:44:19] Production.INFO: count ==175 [2025-01-09 02:44:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:44:05 - End Time 2025-01-09 02:44:05 [2025-01-09 02:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206597', 'tblTempUsageDetail_20' ) start [2025-01-09 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206597', 'tblTempUsageDetail_20' ) end [2025-01-09 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206597', 'tblTempVendorCDR_20' ) start [2025-01-09 02:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206597', 'tblTempVendorCDR_20' ) end [2025-01-09 02:44:19] Production.INFO: ProcessCDR(1,14206597,1,1,2) [2025-01-09 02:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206597', 'tblTempUsageDetail_20' ) start [2025-01-09 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206597', 'tblTempUsageDetail_20' ) end [2025-01-09 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:44:22] Production.INFO: ==11994== Releasing lock... [2025-01-09 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:45:05 [end_date_ymd] => 2025-01-09 02:45:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:45:05' and `end` < '2025-01-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-01-09 02:45:18] Production.INFO: count ==179 [2025-01-09 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:45:05 - End Time 2025-01-09 02:45:05 [2025-01-09 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206602', 'tblTempUsageDetail_20' ) start [2025-01-09 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206602', 'tblTempUsageDetail_20' ) end [2025-01-09 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206602', 'tblTempVendorCDR_20' ) start [2025-01-09 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206602', 'tblTempVendorCDR_20' ) end [2025-01-09 02:45:18] Production.INFO: ProcessCDR(1,14206602,1,1,2) [2025-01-09 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206602', 'tblTempUsageDetail_20' ) start [2025-01-09 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206602', 'tblTempUsageDetail_20' ) end [2025-01-09 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:45:21] Production.INFO: ==12077== Releasing lock... [2025-01-09 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:46:04 [end_date_ymd] => 2025-01-09 02:46:04 [RateCDR] => 1 ) [2025-01-09 02:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:46:04' and `end` < '2025-01-09 02:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:46:17] Production.INFO: count ==178 [2025-01-09 02:46:17] Production.ERROR: pbx CDR StartTime 2025-01-08 23:46:04 - End Time 2025-01-09 02:46:04 [2025-01-09 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206607', 'tblTempUsageDetail_20' ) start [2025-01-09 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206607', 'tblTempUsageDetail_20' ) end [2025-01-09 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206607', 'tblTempVendorCDR_20' ) start [2025-01-09 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206607', 'tblTempVendorCDR_20' ) end [2025-01-09 02:46:17] Production.INFO: ProcessCDR(1,14206607,1,1,2) [2025-01-09 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206607', 'tblTempUsageDetail_20' ) start [2025-01-09 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206607', 'tblTempUsageDetail_20' ) end [2025-01-09 02:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:46:20] Production.INFO: ==12162== Releasing lock... [2025-01-09 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:46:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:47:05 [end_date_ymd] => 2025-01-09 02:47:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:47:05' and `end` < '2025-01-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-01-09 02:47:19] Production.INFO: count ==178 [2025-01-09 02:47:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:47:05 - End Time 2025-01-09 02:47:05 [2025-01-09 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206612', 'tblTempUsageDetail_20' ) start [2025-01-09 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206612', 'tblTempUsageDetail_20' ) end [2025-01-09 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206612', 'tblTempVendorCDR_20' ) start [2025-01-09 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206612', 'tblTempVendorCDR_20' ) end [2025-01-09 02:47:19] Production.INFO: ProcessCDR(1,14206612,1,1,2) [2025-01-09 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206612', 'tblTempUsageDetail_20' ) start [2025-01-09 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206612', 'tblTempUsageDetail_20' ) end [2025-01-09 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:47:22] Production.INFO: ==12245== Releasing lock... [2025-01-09 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:48:05 [end_date_ymd] => 2025-01-09 02:48:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:48:05' and `end` < '2025-01-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-01-09 02:48:19] Production.INFO: count ==178 [2025-01-09 02:48:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:48:05 - End Time 2025-01-09 02:48:05 [2025-01-09 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206617', 'tblTempUsageDetail_20' ) start [2025-01-09 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206617', 'tblTempUsageDetail_20' ) end [2025-01-09 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206617', 'tblTempVendorCDR_20' ) start [2025-01-09 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206617', 'tblTempVendorCDR_20' ) end [2025-01-09 02:48:19] Production.INFO: ProcessCDR(1,14206617,1,1,2) [2025-01-09 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206617', 'tblTempUsageDetail_20' ) start [2025-01-09 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206617', 'tblTempUsageDetail_20' ) end [2025-01-09 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:48:22] Production.INFO: ==12328== Releasing lock... [2025-01-09 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:49:05 [end_date_ymd] => 2025-01-09 02:49:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:49:05' and `end` < '2025-01-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-01-09 02:49:18] Production.INFO: count ==178 [2025-01-09 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:49:05 - End Time 2025-01-09 02:49:05 [2025-01-09 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206622', 'tblTempUsageDetail_20' ) start [2025-01-09 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206622', 'tblTempUsageDetail_20' ) end [2025-01-09 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206622', 'tblTempVendorCDR_20' ) start [2025-01-09 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206622', 'tblTempVendorCDR_20' ) end [2025-01-09 02:49:18] Production.INFO: ProcessCDR(1,14206622,1,1,2) [2025-01-09 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206622', 'tblTempUsageDetail_20' ) start [2025-01-09 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206622', 'tblTempUsageDetail_20' ) end [2025-01-09 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:49:22] Production.INFO: ==12411== Releasing lock... [2025-01-09 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:50:05 [end_date_ymd] => 2025-01-09 02:50:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:50:05' and `end` < '2025-01-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-01-09 02:50:19] Production.INFO: count ==183 [2025-01-09 02:50:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:50:05 - End Time 2025-01-09 02:50:05 [2025-01-09 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206627', 'tblTempUsageDetail_20' ) start [2025-01-09 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206627', 'tblTempUsageDetail_20' ) end [2025-01-09 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206627', 'tblTempVendorCDR_20' ) start [2025-01-09 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206627', 'tblTempVendorCDR_20' ) end [2025-01-09 02:50:19] Production.INFO: ProcessCDR(1,14206627,1,1,2) [2025-01-09 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206627', 'tblTempUsageDetail_20' ) start [2025-01-09 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206627', 'tblTempUsageDetail_20' ) end [2025-01-09 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:50:22] Production.INFO: ==12494== Releasing lock... [2025-01-09 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:51:05 [end_date_ymd] => 2025-01-09 02:51:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:51:05' and `end` < '2025-01-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-01-09 02:51:19] Production.INFO: count ==189 [2025-01-09 02:51:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:51:05 - End Time 2025-01-09 02:51:05 [2025-01-09 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206633', 'tblTempUsageDetail_20' ) start [2025-01-09 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206633', 'tblTempUsageDetail_20' ) end [2025-01-09 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206633', 'tblTempVendorCDR_20' ) start [2025-01-09 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206633', 'tblTempVendorCDR_20' ) end [2025-01-09 02:51:19] Production.INFO: ProcessCDR(1,14206633,1,1,2) [2025-01-09 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206633', 'tblTempUsageDetail_20' ) start [2025-01-09 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206633', 'tblTempUsageDetail_20' ) end [2025-01-09 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:51:22] Production.INFO: ==12579== Releasing lock... [2025-01-09 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:52:04 [end_date_ymd] => 2025-01-09 02:52:04 [RateCDR] => 1 ) [2025-01-09 02:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:52:04' and `end` < '2025-01-09 02:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:52:17] Production.INFO: count ==189 [2025-01-09 02:52:17] Production.ERROR: pbx CDR StartTime 2025-01-08 23:52:04 - End Time 2025-01-09 02:52:04 [2025-01-09 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206638', 'tblTempUsageDetail_20' ) start [2025-01-09 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206638', 'tblTempUsageDetail_20' ) end [2025-01-09 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206638', 'tblTempVendorCDR_20' ) start [2025-01-09 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206638', 'tblTempVendorCDR_20' ) end [2025-01-09 02:52:17] Production.INFO: ProcessCDR(1,14206638,1,1,2) [2025-01-09 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206638', 'tblTempUsageDetail_20' ) start [2025-01-09 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206638', 'tblTempUsageDetail_20' ) end [2025-01-09 02:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:52:20] Production.INFO: ==12660== Releasing lock... [2025-01-09 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:52:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:53:05 [end_date_ymd] => 2025-01-09 02:53:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:53:05' and `end` < '2025-01-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-01-09 02:53:20] Production.INFO: count ==188 [2025-01-09 02:53:20] Production.ERROR: pbx CDR StartTime 2025-01-08 23:53:05 - End Time 2025-01-09 02:53:05 [2025-01-09 02:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206643', 'tblTempUsageDetail_20' ) start [2025-01-09 02:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206643', 'tblTempUsageDetail_20' ) end [2025-01-09 02:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206643', 'tblTempVendorCDR_20' ) start [2025-01-09 02:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206643', 'tblTempVendorCDR_20' ) end [2025-01-09 02:53:20] Production.INFO: ProcessCDR(1,14206643,1,1,2) [2025-01-09 02:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206643', 'tblTempUsageDetail_20' ) start [2025-01-09 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206643', 'tblTempUsageDetail_20' ) end [2025-01-09 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:53:23] Production.INFO: ==12745== Releasing lock... [2025-01-09 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:53:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:54:05 [end_date_ymd] => 2025-01-09 02:54:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:54:05' and `end` < '2025-01-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-01-09 02:54:19] Production.INFO: count ==188 [2025-01-09 02:54:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:54:05 - End Time 2025-01-09 02:54:05 [2025-01-09 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206648', 'tblTempUsageDetail_20' ) start [2025-01-09 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206648', 'tblTempUsageDetail_20' ) end [2025-01-09 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206648', 'tblTempVendorCDR_20' ) start [2025-01-09 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206648', 'tblTempVendorCDR_20' ) end [2025-01-09 02:54:19] Production.INFO: ProcessCDR(1,14206648,1,1,2) [2025-01-09 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206648', 'tblTempUsageDetail_20' ) start [2025-01-09 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206648', 'tblTempUsageDetail_20' ) end [2025-01-09 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:54:22] Production.INFO: ==12867== Releasing lock... [2025-01-09 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:55:05 [end_date_ymd] => 2025-01-09 02:55:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:55:05' and `end` < '2025-01-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-01-09 02:55:18] Production.INFO: count ==188 [2025-01-09 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:55:05 - End Time 2025-01-09 02:55:05 [2025-01-09 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206653', 'tblTempUsageDetail_20' ) start [2025-01-09 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206653', 'tblTempUsageDetail_20' ) end [2025-01-09 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206653', 'tblTempVendorCDR_20' ) start [2025-01-09 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206653', 'tblTempVendorCDR_20' ) end [2025-01-09 02:55:18] Production.INFO: ProcessCDR(1,14206653,1,1,2) [2025-01-09 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206653', 'tblTempUsageDetail_20' ) start [2025-01-09 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206653', 'tblTempUsageDetail_20' ) end [2025-01-09 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:55:21] Production.INFO: ==12948== Releasing lock... [2025-01-09 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:56:05 [end_date_ymd] => 2025-01-09 02:56:05 [RateCDR] => 1 ) [2025-01-09 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:56:05' and `end` < '2025-01-09 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:56:18] Production.INFO: count ==188 [2025-01-09 02:56:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:56:05 - End Time 2025-01-09 02:56:05 [2025-01-09 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206658', 'tblTempUsageDetail_20' ) start [2025-01-09 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206658', 'tblTempUsageDetail_20' ) end [2025-01-09 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206658', 'tblTempVendorCDR_20' ) start [2025-01-09 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206658', 'tblTempVendorCDR_20' ) end [2025-01-09 02:56:18] Production.INFO: ProcessCDR(1,14206658,1,1,2) [2025-01-09 02:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206658', 'tblTempUsageDetail_20' ) start [2025-01-09 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206658', 'tblTempUsageDetail_20' ) end [2025-01-09 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:56:21] Production.INFO: ==13034== Releasing lock... [2025-01-09 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:57:05 [end_date_ymd] => 2025-01-09 02:57:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:57:05' and `end` < '2025-01-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-01-09 02:57:17] Production.INFO: count ==187 [2025-01-09 02:57:17] Production.ERROR: pbx CDR StartTime 2025-01-08 23:57:05 - End Time 2025-01-09 02:57:05 [2025-01-09 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206663', 'tblTempUsageDetail_20' ) start [2025-01-09 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206663', 'tblTempUsageDetail_20' ) end [2025-01-09 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206663', 'tblTempVendorCDR_20' ) start [2025-01-09 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206663', 'tblTempVendorCDR_20' ) end [2025-01-09 02:57:17] Production.INFO: ProcessCDR(1,14206663,1,1,2) [2025-01-09 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206663', 'tblTempUsageDetail_20' ) start [2025-01-09 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206663', 'tblTempUsageDetail_20' ) end [2025-01-09 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:57:21] Production.INFO: ==13118== Releasing lock... [2025-01-09 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:58:05 [end_date_ymd] => 2025-01-09 02:58:05 [RateCDR] => 1 ) [2025-01-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-01-08 23:58:05' and `end` < '2025-01-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-01-09 02:58:19] Production.INFO: count ==187 [2025-01-09 02:58:19] Production.ERROR: pbx CDR StartTime 2025-01-08 23:58:05 - End Time 2025-01-09 02:58:05 [2025-01-09 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206668', 'tblTempUsageDetail_20' ) start [2025-01-09 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206668', 'tblTempUsageDetail_20' ) end [2025-01-09 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206668', 'tblTempVendorCDR_20' ) start [2025-01-09 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206668', 'tblTempVendorCDR_20' ) end [2025-01-09 02:58:19] Production.INFO: ProcessCDR(1,14206668,1,1,2) [2025-01-09 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206668', 'tblTempUsageDetail_20' ) start [2025-01-09 02:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206668', 'tblTempUsageDetail_20' ) end [2025-01-09 02:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:58:22] Production.INFO: ==13204== Releasing lock... [2025-01-09 02:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-08 23:59:05 [end_date_ymd] => 2025-01-09 02:59:05 [RateCDR] => 1 ) [2025-01-09 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-08 23:59:05' and `end` < '2025-01-09 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 02:59:18] Production.INFO: count ==187 [2025-01-09 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-08 23:59:05 - End Time 2025-01-09 02:59:05 [2025-01-09 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206673', 'tblTempUsageDetail_20' ) start [2025-01-09 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206673', 'tblTempUsageDetail_20' ) end [2025-01-09 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206673', 'tblTempVendorCDR_20' ) start [2025-01-09 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206673', 'tblTempVendorCDR_20' ) end [2025-01-09 02:59:18] Production.INFO: ProcessCDR(1,14206673,1,1,2) [2025-01-09 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206673', 'tblTempUsageDetail_20' ) start [2025-01-09 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206673', 'tblTempUsageDetail_20' ) end [2025-01-09 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 02:59:21] Production.INFO: ==13286== Releasing lock... [2025-01-09 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 02:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:00:06 [end_date_ymd] => 2025-01-09 03:00:06 [RateCDR] => 1 ) [2025-01-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-01-09 00:00:06' and `end` < '2025-01-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-01-09 03:00:19] Production.INFO: count ==196 [2025-01-09 03:00:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:00:06 - End Time 2025-01-09 03:00:06 [2025-01-09 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206679', 'tblTempUsageDetail_20' ) start [2025-01-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206679', 'tblTempUsageDetail_20' ) end [2025-01-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206679', 'tblTempVendorCDR_20' ) start [2025-01-09 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206679', 'tblTempVendorCDR_20' ) end [2025-01-09 03:00:19] Production.INFO: ProcessCDR(1,14206679,1,1,2) [2025-01-09 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206679', 'tblTempUsageDetail_20' ) start [2025-01-09 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206679', 'tblTempUsageDetail_20' ) end [2025-01-09 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:00:23] Production.INFO: ==13370== Releasing lock... [2025-01-09 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:00:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:01:04 [end_date_ymd] => 2025-01-09 03:01:04 [RateCDR] => 1 ) [2025-01-09 03:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:01:04' and `end` < '2025-01-09 03:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:01:20] Production.INFO: count ==199 [2025-01-09 03:01:20] Production.ERROR: pbx CDR StartTime 2025-01-09 00:01:04 - End Time 2025-01-09 03:01:04 [2025-01-09 03:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206683', 'tblTempUsageDetail_20' ) start [2025-01-09 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206683', 'tblTempUsageDetail_20' ) end [2025-01-09 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206683', 'tblTempVendorCDR_20' ) start [2025-01-09 03:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206683', 'tblTempVendorCDR_20' ) end [2025-01-09 03:01:20] Production.INFO: ProcessCDR(1,14206683,1,1,2) [2025-01-09 03:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206683', 'tblTempUsageDetail_20' ) start [2025-01-09 03:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206683', 'tblTempUsageDetail_20' ) end [2025-01-09 03:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:01:24] Production.INFO: ==13465== Releasing lock... [2025-01-09 03:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:01:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:02:05 [end_date_ymd] => 2025-01-09 03:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:02:05' and `end` < '2025-01-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-01-09 03:02:19] Production.INFO: count ==199 [2025-01-09 03:02:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:02:05 - End Time 2025-01-09 03:02:05 [2025-01-09 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206689', 'tblTempUsageDetail_20' ) start [2025-01-09 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206689', 'tblTempUsageDetail_20' ) end [2025-01-09 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206689', 'tblTempVendorCDR_20' ) start [2025-01-09 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206689', 'tblTempVendorCDR_20' ) end [2025-01-09 03:02:19] Production.INFO: ProcessCDR(1,14206689,1,1,2) [2025-01-09 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206689', 'tblTempUsageDetail_20' ) start [2025-01-09 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206689', 'tblTempUsageDetail_20' ) end [2025-01-09 03:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:02:23] Production.INFO: ==13622== Releasing lock... [2025-01-09 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:02:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:03:05 [end_date_ymd] => 2025-01-09 03:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:03:05' and `end` < '2025-01-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-01-09 03:03:19] Production.INFO: count ==199 [2025-01-09 03:03:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:03:05 - End Time 2025-01-09 03:03:05 [2025-01-09 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206694', 'tblTempUsageDetail_20' ) start [2025-01-09 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206694', 'tblTempUsageDetail_20' ) end [2025-01-09 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206694', 'tblTempVendorCDR_20' ) start [2025-01-09 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206694', 'tblTempVendorCDR_20' ) end [2025-01-09 03:03:19] Production.INFO: ProcessCDR(1,14206694,1,1,2) [2025-01-09 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206694', 'tblTempUsageDetail_20' ) start [2025-01-09 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206694', 'tblTempUsageDetail_20' ) end [2025-01-09 03:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:03:23] Production.INFO: ==13698== Releasing lock... [2025-01-09 03:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:03:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:04:05 [end_date_ymd] => 2025-01-09 03:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:04:05' and `end` < '2025-01-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-01-09 03:04:18] Production.INFO: count ==199 [2025-01-09 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:04:05 - End Time 2025-01-09 03:04:05 [2025-01-09 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206699', 'tblTempUsageDetail_20' ) start [2025-01-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206699', 'tblTempUsageDetail_20' ) end [2025-01-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206699', 'tblTempVendorCDR_20' ) start [2025-01-09 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206699', 'tblTempVendorCDR_20' ) end [2025-01-09 03:04:18] Production.INFO: ProcessCDR(1,14206699,1,1,2) [2025-01-09 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206699', 'tblTempUsageDetail_20' ) start [2025-01-09 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206699', 'tblTempUsageDetail_20' ) end [2025-01-09 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:04:22] Production.INFO: ==13780== Releasing lock... [2025-01-09 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:04:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:05:05 [end_date_ymd] => 2025-01-09 03:05:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:05:05' and `end` < '2025-01-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-01-09 03:05:18] Production.INFO: count ==199 [2025-01-09 03:05:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:05:05 - End Time 2025-01-09 03:05:05 [2025-01-09 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206704', 'tblTempUsageDetail_20' ) start [2025-01-09 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206704', 'tblTempUsageDetail_20' ) end [2025-01-09 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206704', 'tblTempVendorCDR_20' ) start [2025-01-09 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206704', 'tblTempVendorCDR_20' ) end [2025-01-09 03:05:18] Production.INFO: ProcessCDR(1,14206704,1,1,2) [2025-01-09 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206704', 'tblTempUsageDetail_20' ) start [2025-01-09 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206704', 'tblTempUsageDetail_20' ) end [2025-01-09 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:05:21] Production.INFO: ==13904== Releasing lock... [2025-01-09 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:06:05 [end_date_ymd] => 2025-01-09 03:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:06:05' and `end` < '2025-01-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-01-09 03:06:20] Production.INFO: count ==198 [2025-01-09 03:06:20] Production.ERROR: pbx CDR StartTime 2025-01-09 00:06:05 - End Time 2025-01-09 03:06:05 [2025-01-09 03:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206709', 'tblTempUsageDetail_20' ) start [2025-01-09 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206709', 'tblTempUsageDetail_20' ) end [2025-01-09 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206709', 'tblTempVendorCDR_20' ) start [2025-01-09 03:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206709', 'tblTempVendorCDR_20' ) end [2025-01-09 03:06:20] Production.INFO: ProcessCDR(1,14206709,1,1,2) [2025-01-09 03:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206709', 'tblTempUsageDetail_20' ) start [2025-01-09 03:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206709', 'tblTempUsageDetail_20' ) end [2025-01-09 03:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:06:23] Production.INFO: ==14025== Releasing lock... [2025-01-09 03:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:06:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:07:05 [end_date_ymd] => 2025-01-09 03:07:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:07:05' and `end` < '2025-01-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-01-09 03:07:18] Production.INFO: count ==198 [2025-01-09 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:07:05 - End Time 2025-01-09 03:07:05 [2025-01-09 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206714', 'tblTempUsageDetail_20' ) start [2025-01-09 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206714', 'tblTempUsageDetail_20' ) end [2025-01-09 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206714', 'tblTempVendorCDR_20' ) start [2025-01-09 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206714', 'tblTempVendorCDR_20' ) end [2025-01-09 03:07:18] Production.INFO: ProcessCDR(1,14206714,1,1,2) [2025-01-09 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206714', 'tblTempUsageDetail_20' ) start [2025-01-09 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206714', 'tblTempUsageDetail_20' ) end [2025-01-09 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:07:21] Production.INFO: ==14103== Releasing lock... [2025-01-09 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:08:05 [end_date_ymd] => 2025-01-09 03:08:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:08:05' and `end` < '2025-01-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-01-09 03:08:18] Production.INFO: count ==198 [2025-01-09 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:08:05 - End Time 2025-01-09 03:08:05 [2025-01-09 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206719', 'tblTempUsageDetail_20' ) start [2025-01-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206719', 'tblTempUsageDetail_20' ) end [2025-01-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206719', 'tblTempVendorCDR_20' ) start [2025-01-09 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206719', 'tblTempVendorCDR_20' ) end [2025-01-09 03:08:18] Production.INFO: ProcessCDR(1,14206719,1,1,2) [2025-01-09 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206719', 'tblTempUsageDetail_20' ) start [2025-01-09 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206719', 'tblTempUsageDetail_20' ) end [2025-01-09 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:08:21] Production.INFO: ==14187== Releasing lock... [2025-01-09 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:09:05 [end_date_ymd] => 2025-01-09 03:09:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:09:05' and `end` < '2025-01-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-01-09 03:09:20] Production.INFO: count ==198 [2025-01-09 03:09:20] Production.ERROR: pbx CDR StartTime 2025-01-09 00:09:05 - End Time 2025-01-09 03:09:05 [2025-01-09 03:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206721', 'tblTempUsageDetail_20' ) start [2025-01-09 03:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206721', 'tblTempUsageDetail_20' ) end [2025-01-09 03:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206721', 'tblTempVendorCDR_20' ) start [2025-01-09 03:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206721', 'tblTempVendorCDR_20' ) end [2025-01-09 03:09:20] Production.INFO: ProcessCDR(1,14206721,1,1,2) [2025-01-09 03:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206721', 'tblTempUsageDetail_20' ) start [2025-01-09 03:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206721', 'tblTempUsageDetail_20' ) end [2025-01-09 03:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:09:23] Production.INFO: ==14384== Releasing lock... [2025-01-09 03:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:09:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:10:05 [end_date_ymd] => 2025-01-09 03:10:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:10:05' and `end` < '2025-01-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-01-09 03:10:18] Production.INFO: count ==196 [2025-01-09 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:10:05 - End Time 2025-01-09 03:10:05 [2025-01-09 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206729', 'tblTempUsageDetail_20' ) start [2025-01-09 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206729', 'tblTempUsageDetail_20' ) end [2025-01-09 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206729', 'tblTempVendorCDR_20' ) start [2025-01-09 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206729', 'tblTempVendorCDR_20' ) end [2025-01-09 03:10:18] Production.INFO: ProcessCDR(1,14206729,1,1,2) [2025-01-09 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206729', 'tblTempUsageDetail_20' ) start [2025-01-09 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206729', 'tblTempUsageDetail_20' ) end [2025-01-09 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:10:22] Production.INFO: ==14469== Releasing lock... [2025-01-09 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:11:05 [end_date_ymd] => 2025-01-09 03:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:11:05' and `end` < '2025-01-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-01-09 03:11:18] Production.INFO: count ==188 [2025-01-09 03:11:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:11:05 - End Time 2025-01-09 03:11:05 [2025-01-09 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206735', 'tblTempUsageDetail_20' ) start [2025-01-09 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206735', 'tblTempUsageDetail_20' ) end [2025-01-09 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206735', 'tblTempVendorCDR_20' ) start [2025-01-09 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206735', 'tblTempVendorCDR_20' ) end [2025-01-09 03:11:18] Production.INFO: ProcessCDR(1,14206735,1,1,2) [2025-01-09 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206735', 'tblTempUsageDetail_20' ) start [2025-01-09 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206735', 'tblTempUsageDetail_20' ) end [2025-01-09 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:11:21] Production.INFO: ==14557== Releasing lock... [2025-01-09 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:12:05 [end_date_ymd] => 2025-01-09 03:12:05 [RateCDR] => 1 ) [2025-01-09 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:12:05' and `end` < '2025-01-09 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:12:17] Production.INFO: count ==187 [2025-01-09 03:12:17] Production.ERROR: pbx CDR StartTime 2025-01-09 00:12:05 - End Time 2025-01-09 03:12:05 [2025-01-09 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206740', 'tblTempUsageDetail_20' ) start [2025-01-09 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206740', 'tblTempUsageDetail_20' ) end [2025-01-09 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206740', 'tblTempVendorCDR_20' ) start [2025-01-09 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206740', 'tblTempVendorCDR_20' ) end [2025-01-09 03:12:17] Production.INFO: ProcessCDR(1,14206740,1,1,2) [2025-01-09 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206740', 'tblTempUsageDetail_20' ) start [2025-01-09 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206740', 'tblTempUsageDetail_20' ) end [2025-01-09 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:12:21] Production.INFO: ==14637== Releasing lock... [2025-01-09 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:13:05 [end_date_ymd] => 2025-01-09 03:13:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:13:05' and `end` < '2025-01-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-01-09 03:13:18] Production.INFO: count ==188 [2025-01-09 03:13:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:13:05 - End Time 2025-01-09 03:13:05 [2025-01-09 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206745', 'tblTempUsageDetail_20' ) start [2025-01-09 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206745', 'tblTempUsageDetail_20' ) end [2025-01-09 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206745', 'tblTempVendorCDR_20' ) start [2025-01-09 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206745', 'tblTempVendorCDR_20' ) end [2025-01-09 03:13:18] Production.INFO: ProcessCDR(1,14206745,1,1,2) [2025-01-09 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206745', 'tblTempUsageDetail_20' ) start [2025-01-09 03:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206745', 'tblTempUsageDetail_20' ) end [2025-01-09 03:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:13:23] Production.INFO: ==14796== Releasing lock... [2025-01-09 03:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:13:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:14:05 [end_date_ymd] => 2025-01-09 03:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:14:05' and `end` < '2025-01-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-01-09 03:14:18] Production.INFO: count ==188 [2025-01-09 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:14:05 - End Time 2025-01-09 03:14:05 [2025-01-09 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206750', 'tblTempUsageDetail_20' ) start [2025-01-09 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206750', 'tblTempUsageDetail_20' ) end [2025-01-09 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206750', 'tblTempVendorCDR_20' ) start [2025-01-09 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206750', 'tblTempVendorCDR_20' ) end [2025-01-09 03:14:18] Production.INFO: ProcessCDR(1,14206750,1,1,2) [2025-01-09 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206750', 'tblTempUsageDetail_20' ) start [2025-01-09 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206750', 'tblTempUsageDetail_20' ) end [2025-01-09 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:14:22] Production.INFO: ==14876== Releasing lock... [2025-01-09 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:14:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:15:05 [end_date_ymd] => 2025-01-09 03:15:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:15:05' and `end` < '2025-01-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-01-09 03:15:18] Production.INFO: count ==188 [2025-01-09 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:15:05 - End Time 2025-01-09 03:15:05 [2025-01-09 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206755', 'tblTempUsageDetail_20' ) start [2025-01-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206755', 'tblTempUsageDetail_20' ) end [2025-01-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206755', 'tblTempVendorCDR_20' ) start [2025-01-09 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206755', 'tblTempVendorCDR_20' ) end [2025-01-09 03:15:18] Production.INFO: ProcessCDR(1,14206755,1,1,2) [2025-01-09 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206755', 'tblTempUsageDetail_20' ) start [2025-01-09 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206755', 'tblTempUsageDetail_20' ) end [2025-01-09 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:15:21] Production.INFO: ==14958== Releasing lock... [2025-01-09 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:16:05 [end_date_ymd] => 2025-01-09 03:16:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:16:05' and `end` < '2025-01-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-01-09 03:16:19] Production.INFO: count ==188 [2025-01-09 03:16:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:16:05 - End Time 2025-01-09 03:16:05 [2025-01-09 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206760', 'tblTempUsageDetail_20' ) start [2025-01-09 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206760', 'tblTempUsageDetail_20' ) end [2025-01-09 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206760', 'tblTempVendorCDR_20' ) start [2025-01-09 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206760', 'tblTempVendorCDR_20' ) end [2025-01-09 03:16:19] Production.INFO: ProcessCDR(1,14206760,1,1,2) [2025-01-09 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206760', 'tblTempUsageDetail_20' ) start [2025-01-09 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206760', 'tblTempUsageDetail_20' ) end [2025-01-09 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:16:22] Production.INFO: ==15040== Releasing lock... [2025-01-09 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:16:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:17:04 [end_date_ymd] => 2025-01-09 03:17:04 [RateCDR] => 1 ) [2025-01-09 03:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:17:04' and `end` < '2025-01-09 03:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:17:17] Production.INFO: count ==188 [2025-01-09 03:17:17] Production.ERROR: pbx CDR StartTime 2025-01-09 00:17:04 - End Time 2025-01-09 03:17:04 [2025-01-09 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206765', 'tblTempUsageDetail_20' ) start [2025-01-09 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206765', 'tblTempUsageDetail_20' ) end [2025-01-09 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206765', 'tblTempVendorCDR_20' ) start [2025-01-09 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206765', 'tblTempVendorCDR_20' ) end [2025-01-09 03:17:17] Production.INFO: ProcessCDR(1,14206765,1,1,2) [2025-01-09 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206765', 'tblTempUsageDetail_20' ) start [2025-01-09 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206765', 'tblTempUsageDetail_20' ) end [2025-01-09 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:17:20] Production.INFO: ==15197== Releasing lock... [2025-01-09 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:17:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:18:05 [end_date_ymd] => 2025-01-09 03:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:18:05' and `end` < '2025-01-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-01-09 03:18:19] Production.INFO: count ==188 [2025-01-09 03:18:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:18:05 - End Time 2025-01-09 03:18:05 [2025-01-09 03:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206770', 'tblTempUsageDetail_20' ) start [2025-01-09 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206770', 'tblTempUsageDetail_20' ) end [2025-01-09 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206770', 'tblTempVendorCDR_20' ) start [2025-01-09 03:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206770', 'tblTempVendorCDR_20' ) end [2025-01-09 03:18:19] Production.INFO: ProcessCDR(1,14206770,1,1,2) [2025-01-09 03:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206770', 'tblTempUsageDetail_20' ) start [2025-01-09 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206770', 'tblTempUsageDetail_20' ) end [2025-01-09 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:18:22] Production.INFO: ==15280== Releasing lock... [2025-01-09 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:18:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:19:04 [end_date_ymd] => 2025-01-09 03:19:04 [RateCDR] => 1 ) [2025-01-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-01-09 00:19:04' and `end` < '2025-01-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-01-09 03:19:18] Production.INFO: count ==188 [2025-01-09 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:19:04 - End Time 2025-01-09 03:19:04 [2025-01-09 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206775', 'tblTempUsageDetail_20' ) start [2025-01-09 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206775', 'tblTempUsageDetail_20' ) end [2025-01-09 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206775', 'tblTempVendorCDR_20' ) start [2025-01-09 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206775', 'tblTempVendorCDR_20' ) end [2025-01-09 03:19:18] Production.INFO: ProcessCDR(1,14206775,1,1,2) [2025-01-09 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206775', 'tblTempUsageDetail_20' ) start [2025-01-09 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206775', 'tblTempUsageDetail_20' ) end [2025-01-09 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:19:21] Production.INFO: ==15364== Releasing lock... [2025-01-09 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:20:06 [end_date_ymd] => 2025-01-09 03:20:06 [RateCDR] => 1 ) [2025-01-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-01-09 00:20:06' and `end` < '2025-01-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-01-09 03:20:19] Production.INFO: count ==180 [2025-01-09 03:20:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:20:06 - End Time 2025-01-09 03:20:06 [2025-01-09 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206780', 'tblTempUsageDetail_20' ) start [2025-01-09 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206780', 'tblTempUsageDetail_20' ) end [2025-01-09 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206780', 'tblTempVendorCDR_20' ) start [2025-01-09 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206780', 'tblTempVendorCDR_20' ) end [2025-01-09 03:20:19] Production.INFO: ProcessCDR(1,14206780,1,1,2) [2025-01-09 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206780', 'tblTempUsageDetail_20' ) start [2025-01-09 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206780', 'tblTempUsageDetail_20' ) end [2025-01-09 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:20:22] Production.INFO: ==15447== Releasing lock... [2025-01-09 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:21:04 [end_date_ymd] => 2025-01-09 03:21:04 [RateCDR] => 1 ) [2025-01-09 03:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:21:04' and `end` < '2025-01-09 03:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:21:17] Production.INFO: count ==166 [2025-01-09 03:21:17] Production.ERROR: pbx CDR StartTime 2025-01-09 00:21:04 - End Time 2025-01-09 03:21:04 [2025-01-09 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206786', 'tblTempUsageDetail_20' ) start [2025-01-09 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206786', 'tblTempUsageDetail_20' ) end [2025-01-09 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206786', 'tblTempVendorCDR_20' ) start [2025-01-09 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206786', 'tblTempVendorCDR_20' ) end [2025-01-09 03:21:18] Production.INFO: ProcessCDR(1,14206786,1,1,2) [2025-01-09 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206786', 'tblTempUsageDetail_20' ) start [2025-01-09 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206786', 'tblTempUsageDetail_20' ) end [2025-01-09 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:21:21] Production.INFO: ==15530== Releasing lock... [2025-01-09 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:21:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:22:05 [end_date_ymd] => 2025-01-09 03:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:22:05' and `end` < '2025-01-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-01-09 03:22:18] Production.INFO: count ==166 [2025-01-09 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:22:05 - End Time 2025-01-09 03:22:05 [2025-01-09 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206791', 'tblTempUsageDetail_20' ) start [2025-01-09 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206791', 'tblTempUsageDetail_20' ) end [2025-01-09 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206791', 'tblTempVendorCDR_20' ) start [2025-01-09 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206791', 'tblTempVendorCDR_20' ) end [2025-01-09 03:22:18] Production.INFO: ProcessCDR(1,14206791,1,1,2) [2025-01-09 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206791', 'tblTempUsageDetail_20' ) start [2025-01-09 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206791', 'tblTempUsageDetail_20' ) end [2025-01-09 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:22:21] Production.INFO: ==15611== Releasing lock... [2025-01-09 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:23:04 [end_date_ymd] => 2025-01-09 03:23:04 [RateCDR] => 1 ) [2025-01-09 03:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:23:04' and `end` < '2025-01-09 03:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:23:18] Production.INFO: count ==166 [2025-01-09 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:23:04 - End Time 2025-01-09 03:23:04 [2025-01-09 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206796', 'tblTempUsageDetail_20' ) start [2025-01-09 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206796', 'tblTempUsageDetail_20' ) end [2025-01-09 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206796', 'tblTempVendorCDR_20' ) start [2025-01-09 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206796', 'tblTempVendorCDR_20' ) end [2025-01-09 03:23:18] Production.INFO: ProcessCDR(1,14206796,1,1,2) [2025-01-09 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206796', 'tblTempUsageDetail_20' ) start [2025-01-09 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206796', 'tblTempUsageDetail_20' ) end [2025-01-09 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:23:21] Production.INFO: ==15692== Releasing lock... [2025-01-09 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:24:05 [end_date_ymd] => 2025-01-09 03:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:24:05' and `end` < '2025-01-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-01-09 03:24:19] Production.INFO: count ==166 [2025-01-09 03:24:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:24:05 - End Time 2025-01-09 03:24:05 [2025-01-09 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206801', 'tblTempUsageDetail_20' ) start [2025-01-09 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206801', 'tblTempUsageDetail_20' ) end [2025-01-09 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206801', 'tblTempVendorCDR_20' ) start [2025-01-09 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206801', 'tblTempVendorCDR_20' ) end [2025-01-09 03:24:19] Production.INFO: ProcessCDR(1,14206801,1,1,2) [2025-01-09 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206801', 'tblTempUsageDetail_20' ) start [2025-01-09 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206801', 'tblTempUsageDetail_20' ) end [2025-01-09 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:24:22] Production.INFO: ==15773== Releasing lock... [2025-01-09 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:24:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:25:04 [end_date_ymd] => 2025-01-09 03:25:04 [RateCDR] => 1 ) [2025-01-09 03:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:25:04' and `end` < '2025-01-09 03:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:25:17] Production.INFO: count ==166 [2025-01-09 03:25:17] Production.ERROR: pbx CDR StartTime 2025-01-09 00:25:04 - End Time 2025-01-09 03:25:04 [2025-01-09 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206806', 'tblTempUsageDetail_20' ) start [2025-01-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206806', 'tblTempUsageDetail_20' ) end [2025-01-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206806', 'tblTempVendorCDR_20' ) start [2025-01-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206806', 'tblTempVendorCDR_20' ) end [2025-01-09 03:25:17] Production.INFO: ProcessCDR(1,14206806,1,1,2) [2025-01-09 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206806', 'tblTempUsageDetail_20' ) start [2025-01-09 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206806', 'tblTempUsageDetail_20' ) end [2025-01-09 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:25:20] Production.INFO: ==15858== Releasing lock... [2025-01-09 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:26:04 [end_date_ymd] => 2025-01-09 03:26:04 [RateCDR] => 1 ) [2025-01-09 03:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:26:04' and `end` < '2025-01-09 03:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:26:18] Production.INFO: count ==166 [2025-01-09 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:26:04 - End Time 2025-01-09 03:26:04 [2025-01-09 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206811', 'tblTempUsageDetail_20' ) start [2025-01-09 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206811', 'tblTempUsageDetail_20' ) end [2025-01-09 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206811', 'tblTempVendorCDR_20' ) start [2025-01-09 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206811', 'tblTempVendorCDR_20' ) end [2025-01-09 03:26:18] Production.INFO: ProcessCDR(1,14206811,1,1,2) [2025-01-09 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206811', 'tblTempUsageDetail_20' ) start [2025-01-09 03:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206811', 'tblTempUsageDetail_20' ) end [2025-01-09 03:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:26:22] Production.INFO: ==15982== Releasing lock... [2025-01-09 03:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:26:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:27:04 [end_date_ymd] => 2025-01-09 03:27:04 [RateCDR] => 1 ) [2025-01-09 03:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:27:04' and `end` < '2025-01-09 03:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:27:19] Production.INFO: count ==166 [2025-01-09 03:27:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:27:04 - End Time 2025-01-09 03:27:04 [2025-01-09 03:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206816', 'tblTempUsageDetail_20' ) start [2025-01-09 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206816', 'tblTempUsageDetail_20' ) end [2025-01-09 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206816', 'tblTempVendorCDR_20' ) start [2025-01-09 03:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206816', 'tblTempVendorCDR_20' ) end [2025-01-09 03:27:19] Production.INFO: ProcessCDR(1,14206816,1,1,2) [2025-01-09 03:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206816', 'tblTempUsageDetail_20' ) start [2025-01-09 03:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206816', 'tblTempUsageDetail_20' ) end [2025-01-09 03:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:27:22] Production.INFO: ==16075== Releasing lock... [2025-01-09 03:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:27:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:28:05 [end_date_ymd] => 2025-01-09 03:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:28:05' and `end` < '2025-01-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-01-09 03:28:17] Production.INFO: count ==166 [2025-01-09 03:28:17] Production.ERROR: pbx CDR StartTime 2025-01-09 00:28:05 - End Time 2025-01-09 03:28:05 [2025-01-09 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206821', 'tblTempUsageDetail_20' ) start [2025-01-09 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206821', 'tblTempUsageDetail_20' ) end [2025-01-09 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206821', 'tblTempVendorCDR_20' ) start [2025-01-09 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206821', 'tblTempVendorCDR_20' ) end [2025-01-09 03:28:18] Production.INFO: ProcessCDR(1,14206821,1,1,2) [2025-01-09 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206821', 'tblTempUsageDetail_20' ) start [2025-01-09 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206821', 'tblTempUsageDetail_20' ) end [2025-01-09 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:28:21] Production.INFO: ==16160== Releasing lock... [2025-01-09 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:29:05 [end_date_ymd] => 2025-01-09 03:29:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:29:05' and `end` < '2025-01-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-01-09 03:29:19] Production.INFO: count ==166 [2025-01-09 03:29:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:29:05 - End Time 2025-01-09 03:29:05 [2025-01-09 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206826', 'tblTempUsageDetail_20' ) start [2025-01-09 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206826', 'tblTempUsageDetail_20' ) end [2025-01-09 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206826', 'tblTempVendorCDR_20' ) start [2025-01-09 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206826', 'tblTempVendorCDR_20' ) end [2025-01-09 03:29:19] Production.INFO: ProcessCDR(1,14206826,1,1,2) [2025-01-09 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206826', 'tblTempUsageDetail_20' ) start [2025-01-09 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206826', 'tblTempUsageDetail_20' ) end [2025-01-09 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:29:22] Production.INFO: ==16249== Releasing lock... [2025-01-09 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:29:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:30:06 [end_date_ymd] => 2025-01-09 03:30:06 [RateCDR] => 1 ) [2025-01-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-01-09 00:30:06' and `end` < '2025-01-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-01-09 03:30:19] Production.INFO: count ==166 [2025-01-09 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:30:06 - End Time 2025-01-09 03:30:06 [2025-01-09 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206832', 'tblTempUsageDetail_20' ) start [2025-01-09 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206832', 'tblTempUsageDetail_20' ) end [2025-01-09 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206832', 'tblTempVendorCDR_20' ) start [2025-01-09 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206832', 'tblTempVendorCDR_20' ) end [2025-01-09 03:30:19] Production.INFO: ProcessCDR(1,14206832,1,1,2) [2025-01-09 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206832', 'tblTempUsageDetail_20' ) start [2025-01-09 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206832', 'tblTempUsageDetail_20' ) end [2025-01-09 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:30:22] Production.INFO: ==16342== Releasing lock... [2025-01-09 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:31:05 [end_date_ymd] => 2025-01-09 03:31:05 [RateCDR] => 1 ) [2025-01-09 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:31:05' and `end` < '2025-01-09 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:31:18] Production.INFO: count ==166 [2025-01-09 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:31:05 - End Time 2025-01-09 03:31:05 [2025-01-09 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206837', 'tblTempUsageDetail_20' ) start [2025-01-09 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206837', 'tblTempUsageDetail_20' ) end [2025-01-09 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206837', 'tblTempVendorCDR_20' ) start [2025-01-09 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206837', 'tblTempVendorCDR_20' ) end [2025-01-09 03:31:18] Production.INFO: ProcessCDR(1,14206837,1,1,2) [2025-01-09 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206837', 'tblTempUsageDetail_20' ) start [2025-01-09 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206837', 'tblTempUsageDetail_20' ) end [2025-01-09 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:31:21] Production.INFO: ==16432== Releasing lock... [2025-01-09 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:32:04 [end_date_ymd] => 2025-01-09 03:32:04 [RateCDR] => 1 ) [2025-01-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-01-09 00:32:04' and `end` < '2025-01-09 03:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:32:17] Production.INFO: count ==166 [2025-01-09 03:32:17] Production.ERROR: pbx CDR StartTime 2025-01-09 00:32:04 - End Time 2025-01-09 03:32:04 [2025-01-09 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206842', 'tblTempUsageDetail_20' ) start [2025-01-09 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206842', 'tblTempUsageDetail_20' ) end [2025-01-09 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206842', 'tblTempVendorCDR_20' ) start [2025-01-09 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206842', 'tblTempVendorCDR_20' ) end [2025-01-09 03:32:17] Production.INFO: ProcessCDR(1,14206842,1,1,2) [2025-01-09 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206842', 'tblTempUsageDetail_20' ) start [2025-01-09 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206842', 'tblTempUsageDetail_20' ) end [2025-01-09 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:32:21] Production.INFO: ==16518== Releasing lock... [2025-01-09 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:33:05 [end_date_ymd] => 2025-01-09 03:33:05 [RateCDR] => 1 ) [2025-01-09 03:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:33:05' and `end` < '2025-01-09 03:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:33:20] Production.INFO: count ==166 [2025-01-09 03:33:20] Production.ERROR: pbx CDR StartTime 2025-01-09 00:33:05 - End Time 2025-01-09 03:33:05 [2025-01-09 03:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206847', 'tblTempUsageDetail_20' ) start [2025-01-09 03:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206847', 'tblTempUsageDetail_20' ) end [2025-01-09 03:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206847', 'tblTempVendorCDR_20' ) start [2025-01-09 03:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206847', 'tblTempVendorCDR_20' ) end [2025-01-09 03:33:20] Production.INFO: ProcessCDR(1,14206847,1,1,2) [2025-01-09 03:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206847', 'tblTempUsageDetail_20' ) start [2025-01-09 03:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206847', 'tblTempUsageDetail_20' ) end [2025-01-09 03:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:33:23] Production.INFO: ==16600== Releasing lock... [2025-01-09 03:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:33:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:34:05 [end_date_ymd] => 2025-01-09 03:34:05 [RateCDR] => 1 ) [2025-01-09 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:34:05' and `end` < '2025-01-09 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:34:18] Production.INFO: count ==166 [2025-01-09 03:34:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:34:05 - End Time 2025-01-09 03:34:05 [2025-01-09 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206852', 'tblTempUsageDetail_20' ) start [2025-01-09 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206852', 'tblTempUsageDetail_20' ) end [2025-01-09 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206852', 'tblTempVendorCDR_20' ) start [2025-01-09 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206852', 'tblTempVendorCDR_20' ) end [2025-01-09 03:34:18] Production.INFO: ProcessCDR(1,14206852,1,1,2) [2025-01-09 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206852', 'tblTempUsageDetail_20' ) start [2025-01-09 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206852', 'tblTempUsageDetail_20' ) end [2025-01-09 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:34:22] Production.INFO: ==16677== Releasing lock... [2025-01-09 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:34:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:35:05 [end_date_ymd] => 2025-01-09 03:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:35:05' and `end` < '2025-01-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-01-09 03:35:18] Production.INFO: count ==166 [2025-01-09 03:35:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:35:05 - End Time 2025-01-09 03:35:05 [2025-01-09 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206857', 'tblTempUsageDetail_20' ) start [2025-01-09 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206857', 'tblTempUsageDetail_20' ) end [2025-01-09 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206857', 'tblTempVendorCDR_20' ) start [2025-01-09 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206857', 'tblTempVendorCDR_20' ) end [2025-01-09 03:35:18] Production.INFO: ProcessCDR(1,14206857,1,1,2) [2025-01-09 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206857', 'tblTempUsageDetail_20' ) start [2025-01-09 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206857', 'tblTempUsageDetail_20' ) end [2025-01-09 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:35:21] Production.INFO: ==16751== Releasing lock... [2025-01-09 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:36:05 [end_date_ymd] => 2025-01-09 03:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:36:05' and `end` < '2025-01-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-01-09 03:36:19] Production.INFO: count ==166 [2025-01-09 03:36:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:36:05 - End Time 2025-01-09 03:36:05 [2025-01-09 03:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206862', 'tblTempUsageDetail_20' ) start [2025-01-09 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206862', 'tblTempUsageDetail_20' ) end [2025-01-09 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206862', 'tblTempVendorCDR_20' ) start [2025-01-09 03:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206862', 'tblTempVendorCDR_20' ) end [2025-01-09 03:36:19] Production.INFO: ProcessCDR(1,14206862,1,1,2) [2025-01-09 03:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206862', 'tblTempUsageDetail_20' ) start [2025-01-09 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206862', 'tblTempUsageDetail_20' ) end [2025-01-09 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:36:22] Production.INFO: ==16842== Releasing lock... [2025-01-09 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:36:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:37:05 [end_date_ymd] => 2025-01-09 03:37:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:37:05' and `end` < '2025-01-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-01-09 03:37:18] Production.INFO: count ==166 [2025-01-09 03:37:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:37:05 - End Time 2025-01-09 03:37:05 [2025-01-09 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206867', 'tblTempUsageDetail_20' ) start [2025-01-09 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206867', 'tblTempUsageDetail_20' ) end [2025-01-09 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206867', 'tblTempVendorCDR_20' ) start [2025-01-09 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206867', 'tblTempVendorCDR_20' ) end [2025-01-09 03:37:18] Production.INFO: ProcessCDR(1,14206867,1,1,2) [2025-01-09 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206867', 'tblTempUsageDetail_20' ) start [2025-01-09 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206867', 'tblTempUsageDetail_20' ) end [2025-01-09 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:37:21] Production.INFO: ==16943== Releasing lock... [2025-01-09 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:38:05 [end_date_ymd] => 2025-01-09 03:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:38:05' and `end` < '2025-01-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-01-09 03:38:18] Production.INFO: count ==166 [2025-01-09 03:38:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:38:05 - End Time 2025-01-09 03:38:05 [2025-01-09 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206872', 'tblTempUsageDetail_20' ) start [2025-01-09 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206872', 'tblTempUsageDetail_20' ) end [2025-01-09 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206872', 'tblTempVendorCDR_20' ) start [2025-01-09 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206872', 'tblTempVendorCDR_20' ) end [2025-01-09 03:38:18] Production.INFO: ProcessCDR(1,14206872,1,1,2) [2025-01-09 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206872', 'tblTempUsageDetail_20' ) start [2025-01-09 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206872', 'tblTempUsageDetail_20' ) end [2025-01-09 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:38:21] Production.INFO: ==17015== Releasing lock... [2025-01-09 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:39:04 [end_date_ymd] => 2025-01-09 03:39:04 [RateCDR] => 1 ) [2025-01-09 03:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:39:04' and `end` < '2025-01-09 03:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:39:18] Production.INFO: count ==166 [2025-01-09 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:39:04 - End Time 2025-01-09 03:39:04 [2025-01-09 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206877', 'tblTempUsageDetail_20' ) start [2025-01-09 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206877', 'tblTempUsageDetail_20' ) end [2025-01-09 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206877', 'tblTempVendorCDR_20' ) start [2025-01-09 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206877', 'tblTempVendorCDR_20' ) end [2025-01-09 03:39:18] Production.INFO: ProcessCDR(1,14206877,1,1,2) [2025-01-09 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206877', 'tblTempUsageDetail_20' ) start [2025-01-09 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206877', 'tblTempUsageDetail_20' ) end [2025-01-09 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:39:21] Production.INFO: ==17089== Releasing lock... [2025-01-09 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:40:05 [end_date_ymd] => 2025-01-09 03:40:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:40:05' and `end` < '2025-01-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-01-09 03:40:18] Production.INFO: count ==162 [2025-01-09 03:40:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:40:05 - End Time 2025-01-09 03:40:05 [2025-01-09 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206883', 'tblTempUsageDetail_20' ) start [2025-01-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206883', 'tblTempUsageDetail_20' ) end [2025-01-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206883', 'tblTempVendorCDR_20' ) start [2025-01-09 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206883', 'tblTempVendorCDR_20' ) end [2025-01-09 03:40:18] Production.INFO: ProcessCDR(1,14206883,1,1,2) [2025-01-09 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206883', 'tblTempUsageDetail_20' ) start [2025-01-09 03:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206883', 'tblTempUsageDetail_20' ) end [2025-01-09 03:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:40:21] Production.INFO: ==17173== Releasing lock... [2025-01-09 03:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:40:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:41:05 [end_date_ymd] => 2025-01-09 03:41:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:41:05' and `end` < '2025-01-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-01-09 03:41:19] Production.INFO: count ==150 [2025-01-09 03:41:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:41:05 - End Time 2025-01-09 03:41:05 [2025-01-09 03:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206888', 'tblTempUsageDetail_20' ) start [2025-01-09 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206888', 'tblTempUsageDetail_20' ) end [2025-01-09 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206888', 'tblTempVendorCDR_20' ) start [2025-01-09 03:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206888', 'tblTempVendorCDR_20' ) end [2025-01-09 03:41:19] Production.INFO: ProcessCDR(1,14206888,1,1,2) [2025-01-09 03:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206888', 'tblTempUsageDetail_20' ) start [2025-01-09 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206888', 'tblTempUsageDetail_20' ) end [2025-01-09 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:41:22] Production.INFO: ==17250== Releasing lock... [2025-01-09 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:41:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:42:05 [end_date_ymd] => 2025-01-09 03:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:42:05' and `end` < '2025-01-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-01-09 03:42:18] Production.INFO: count ==150 [2025-01-09 03:42:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:42:05 - End Time 2025-01-09 03:42:05 [2025-01-09 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206893', 'tblTempUsageDetail_20' ) start [2025-01-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206893', 'tblTempUsageDetail_20' ) end [2025-01-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206893', 'tblTempVendorCDR_20' ) start [2025-01-09 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206893', 'tblTempVendorCDR_20' ) end [2025-01-09 03:42:18] Production.INFO: ProcessCDR(1,14206893,1,1,2) [2025-01-09 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206893', 'tblTempUsageDetail_20' ) start [2025-01-09 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206893', 'tblTempUsageDetail_20' ) end [2025-01-09 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:42:22] Production.INFO: ==17366== Releasing lock... [2025-01-09 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:43:05 [end_date_ymd] => 2025-01-09 03:43:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:43:05' and `end` < '2025-01-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-01-09 03:43:18] Production.INFO: count ==150 [2025-01-09 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:43:05 - End Time 2025-01-09 03:43:05 [2025-01-09 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206898', 'tblTempUsageDetail_20' ) start [2025-01-09 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206898', 'tblTempUsageDetail_20' ) end [2025-01-09 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206898', 'tblTempVendorCDR_20' ) start [2025-01-09 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206898', 'tblTempVendorCDR_20' ) end [2025-01-09 03:43:18] Production.INFO: ProcessCDR(1,14206898,1,1,2) [2025-01-09 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206898', 'tblTempUsageDetail_20' ) start [2025-01-09 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206898', 'tblTempUsageDetail_20' ) end [2025-01-09 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:43:22] Production.INFO: ==17445== Releasing lock... [2025-01-09 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:43:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:44:05 [end_date_ymd] => 2025-01-09 03:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:44:05' and `end` < '2025-01-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-01-09 03:44:19] Production.INFO: count ==150 [2025-01-09 03:44:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:44:05 - End Time 2025-01-09 03:44:05 [2025-01-09 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206903', 'tblTempUsageDetail_20' ) start [2025-01-09 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206903', 'tblTempUsageDetail_20' ) end [2025-01-09 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206903', 'tblTempVendorCDR_20' ) start [2025-01-09 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206903', 'tblTempVendorCDR_20' ) end [2025-01-09 03:44:19] Production.INFO: ProcessCDR(1,14206903,1,1,2) [2025-01-09 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206903', 'tblTempUsageDetail_20' ) start [2025-01-09 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206903', 'tblTempUsageDetail_20' ) end [2025-01-09 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:44:22] Production.INFO: ==17524== Releasing lock... [2025-01-09 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:44:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:45:05 [end_date_ymd] => 2025-01-09 03:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:45:05' and `end` < '2025-01-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-01-09 03:45:18] Production.INFO: count ==150 [2025-01-09 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:45:05 - End Time 2025-01-09 03:45:05 [2025-01-09 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206908', 'tblTempUsageDetail_20' ) start [2025-01-09 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206908', 'tblTempUsageDetail_20' ) end [2025-01-09 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206908', 'tblTempVendorCDR_20' ) start [2025-01-09 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206908', 'tblTempVendorCDR_20' ) end [2025-01-09 03:45:18] Production.INFO: ProcessCDR(1,14206908,1,1,2) [2025-01-09 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206908', 'tblTempUsageDetail_20' ) start [2025-01-09 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206908', 'tblTempUsageDetail_20' ) end [2025-01-09 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:45:21] Production.INFO: ==17599== Releasing lock... [2025-01-09 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:46:05 [end_date_ymd] => 2025-01-09 03:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:46:05' and `end` < '2025-01-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-01-09 03:46:18] Production.INFO: count ==148 [2025-01-09 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:46:05 - End Time 2025-01-09 03:46:05 [2025-01-09 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206913', 'tblTempUsageDetail_20' ) start [2025-01-09 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206913', 'tblTempUsageDetail_20' ) end [2025-01-09 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206913', 'tblTempVendorCDR_20' ) start [2025-01-09 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206913', 'tblTempVendorCDR_20' ) end [2025-01-09 03:46:18] Production.INFO: ProcessCDR(1,14206913,1,1,2) [2025-01-09 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206913', 'tblTempUsageDetail_20' ) start [2025-01-09 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206913', 'tblTempUsageDetail_20' ) end [2025-01-09 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:46:21] Production.INFO: ==17683== Releasing lock... [2025-01-09 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:46:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:47:05 [end_date_ymd] => 2025-01-09 03:47:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:47:05' and `end` < '2025-01-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-01-09 03:47:19] Production.INFO: count ==148 [2025-01-09 03:47:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:47:05 - End Time 2025-01-09 03:47:05 [2025-01-09 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206918', 'tblTempUsageDetail_20' ) start [2025-01-09 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206918', 'tblTempUsageDetail_20' ) end [2025-01-09 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206918', 'tblTempVendorCDR_20' ) start [2025-01-09 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206918', 'tblTempVendorCDR_20' ) end [2025-01-09 03:47:19] Production.INFO: ProcessCDR(1,14206918,1,1,2) [2025-01-09 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206918', 'tblTempUsageDetail_20' ) start [2025-01-09 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206918', 'tblTempUsageDetail_20' ) end [2025-01-09 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:47:22] Production.INFO: ==17757== Releasing lock... [2025-01-09 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:47:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:48:05 [end_date_ymd] => 2025-01-09 03:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:48:05' and `end` < '2025-01-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-01-09 03:48:19] Production.INFO: count ==147 [2025-01-09 03:48:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:48:05 - End Time 2025-01-09 03:48:05 [2025-01-09 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206923', 'tblTempUsageDetail_20' ) start [2025-01-09 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206923', 'tblTempUsageDetail_20' ) end [2025-01-09 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206923', 'tblTempVendorCDR_20' ) start [2025-01-09 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206923', 'tblTempVendorCDR_20' ) end [2025-01-09 03:48:19] Production.INFO: ProcessCDR(1,14206923,1,1,2) [2025-01-09 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206923', 'tblTempUsageDetail_20' ) start [2025-01-09 03:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206923', 'tblTempUsageDetail_20' ) end [2025-01-09 03:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:48:23] Production.INFO: ==17839== Releasing lock... [2025-01-09 03:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:48:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:49:04 [end_date_ymd] => 2025-01-09 03:49:04 [RateCDR] => 1 ) [2025-01-09 03:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:49:04' and `end` < '2025-01-09 03:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:49:17] Production.INFO: count ==145 [2025-01-09 03:49:17] Production.ERROR: pbx CDR StartTime 2025-01-09 00:49:04 - End Time 2025-01-09 03:49:04 [2025-01-09 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206928', 'tblTempUsageDetail_20' ) start [2025-01-09 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206928', 'tblTempUsageDetail_20' ) end [2025-01-09 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206928', 'tblTempVendorCDR_20' ) start [2025-01-09 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206928', 'tblTempVendorCDR_20' ) end [2025-01-09 03:49:17] Production.INFO: ProcessCDR(1,14206928,1,1,2) [2025-01-09 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206928', 'tblTempUsageDetail_20' ) start [2025-01-09 03:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206928', 'tblTempUsageDetail_20' ) end [2025-01-09 03:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:49:20] Production.INFO: ==17909== Releasing lock... [2025-01-09 03:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:49:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:50:05 [end_date_ymd] => 2025-01-09 03:50:05 [RateCDR] => 1 ) [2025-01-09 03:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:50:05' and `end` < '2025-01-09 03:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:50:19] Production.INFO: count ==143 [2025-01-09 03:50:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:50:05 - End Time 2025-01-09 03:50:05 [2025-01-09 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206933', 'tblTempUsageDetail_20' ) start [2025-01-09 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206933', 'tblTempUsageDetail_20' ) end [2025-01-09 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206933', 'tblTempVendorCDR_20' ) start [2025-01-09 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206933', 'tblTempVendorCDR_20' ) end [2025-01-09 03:50:19] Production.INFO: ProcessCDR(1,14206933,1,1,2) [2025-01-09 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206933', 'tblTempUsageDetail_20' ) start [2025-01-09 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206933', 'tblTempUsageDetail_20' ) end [2025-01-09 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:50:22] Production.INFO: ==17991== Releasing lock... [2025-01-09 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:51:05 [end_date_ymd] => 2025-01-09 03:51:05 [RateCDR] => 1 ) [2025-01-09 03:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:51:05' and `end` < '2025-01-09 03:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:51:19] Production.INFO: count ==143 [2025-01-09 03:51:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:51:05 - End Time 2025-01-09 03:51:05 [2025-01-09 03:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206939', 'tblTempUsageDetail_20' ) start [2025-01-09 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206939', 'tblTempUsageDetail_20' ) end [2025-01-09 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206939', 'tblTempVendorCDR_20' ) start [2025-01-09 03:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206939', 'tblTempVendorCDR_20' ) end [2025-01-09 03:51:19] Production.INFO: ProcessCDR(1,14206939,1,1,2) [2025-01-09 03:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206939', 'tblTempUsageDetail_20' ) start [2025-01-09 03:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206939', 'tblTempUsageDetail_20' ) end [2025-01-09 03:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:51:23] Production.INFO: ==18070== Releasing lock... [2025-01-09 03:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:51:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:52:05 [end_date_ymd] => 2025-01-09 03:52:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:52:05' and `end` < '2025-01-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-01-09 03:52:18] Production.INFO: count ==143 [2025-01-09 03:52:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:52:05 - End Time 2025-01-09 03:52:05 [2025-01-09 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206944', 'tblTempUsageDetail_20' ) start [2025-01-09 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206944', 'tblTempUsageDetail_20' ) end [2025-01-09 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206944', 'tblTempVendorCDR_20' ) start [2025-01-09 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206944', 'tblTempVendorCDR_20' ) end [2025-01-09 03:52:18] Production.INFO: ProcessCDR(1,14206944,1,1,2) [2025-01-09 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206944', 'tblTempUsageDetail_20' ) start [2025-01-09 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206944', 'tblTempUsageDetail_20' ) end [2025-01-09 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:52:21] Production.INFO: ==18149== Releasing lock... [2025-01-09 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:52:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:53:04 [end_date_ymd] => 2025-01-09 03:53:04 [RateCDR] => 1 ) [2025-01-09 03:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:53:04' and `end` < '2025-01-09 03:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:53:18] Production.INFO: count ==143 [2025-01-09 03:53:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:53:04 - End Time 2025-01-09 03:53:04 [2025-01-09 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206949', 'tblTempUsageDetail_20' ) start [2025-01-09 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206949', 'tblTempUsageDetail_20' ) end [2025-01-09 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206949', 'tblTempVendorCDR_20' ) start [2025-01-09 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206949', 'tblTempVendorCDR_20' ) end [2025-01-09 03:53:18] Production.INFO: ProcessCDR(1,14206949,1,1,2) [2025-01-09 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206949', 'tblTempUsageDetail_20' ) start [2025-01-09 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206949', 'tblTempUsageDetail_20' ) end [2025-01-09 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:53:21] Production.INFO: ==18225== Releasing lock... [2025-01-09 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:54:05 [end_date_ymd] => 2025-01-09 03:54:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:54:05' and `end` < '2025-01-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-01-09 03:54:19] Production.INFO: count ==143 [2025-01-09 03:54:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:54:05 - End Time 2025-01-09 03:54:05 [2025-01-09 03:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206954', 'tblTempUsageDetail_20' ) start [2025-01-09 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206954', 'tblTempUsageDetail_20' ) end [2025-01-09 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206954', 'tblTempVendorCDR_20' ) start [2025-01-09 03:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206954', 'tblTempVendorCDR_20' ) end [2025-01-09 03:54:19] Production.INFO: ProcessCDR(1,14206954,1,1,2) [2025-01-09 03:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206954', 'tblTempUsageDetail_20' ) start [2025-01-09 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206954', 'tblTempUsageDetail_20' ) end [2025-01-09 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:54:22] Production.INFO: ==18311== Releasing lock... [2025-01-09 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:54:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:55:04 [end_date_ymd] => 2025-01-09 03:55:04 [RateCDR] => 1 ) [2025-01-09 03:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:55:04' and `end` < '2025-01-09 03:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:55:17] Production.INFO: count ==141 [2025-01-09 03:55:17] Production.ERROR: pbx CDR StartTime 2025-01-09 00:55:04 - End Time 2025-01-09 03:55:04 [2025-01-09 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206959', 'tblTempUsageDetail_20' ) start [2025-01-09 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206959', 'tblTempUsageDetail_20' ) end [2025-01-09 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206959', 'tblTempVendorCDR_20' ) start [2025-01-09 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206959', 'tblTempVendorCDR_20' ) end [2025-01-09 03:55:17] Production.INFO: ProcessCDR(1,14206959,1,1,2) [2025-01-09 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206959', 'tblTempUsageDetail_20' ) start [2025-01-09 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206959', 'tblTempUsageDetail_20' ) end [2025-01-09 03:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:55:20] Production.INFO: ==18389== Releasing lock... [2025-01-09 03:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:55:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:56:05 [end_date_ymd] => 2025-01-09 03:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:56:05' and `end` < '2025-01-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-01-09 03:56:19] Production.INFO: count ==141 [2025-01-09 03:56:19] Production.ERROR: pbx CDR StartTime 2025-01-09 00:56:05 - End Time 2025-01-09 03:56:05 [2025-01-09 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206964', 'tblTempUsageDetail_20' ) start [2025-01-09 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206964', 'tblTempUsageDetail_20' ) end [2025-01-09 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206964', 'tblTempVendorCDR_20' ) start [2025-01-09 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206964', 'tblTempVendorCDR_20' ) end [2025-01-09 03:56:19] Production.INFO: ProcessCDR(1,14206964,1,1,2) [2025-01-09 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206964', 'tblTempUsageDetail_20' ) start [2025-01-09 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206964', 'tblTempUsageDetail_20' ) end [2025-01-09 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:56:22] Production.INFO: ==18466== Releasing lock... [2025-01-09 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:57:05 [end_date_ymd] => 2025-01-09 03:57:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:57:05' and `end` < '2025-01-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-01-09 03:57:18] Production.INFO: count ==140 [2025-01-09 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:57:05 - End Time 2025-01-09 03:57:05 [2025-01-09 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206969', 'tblTempUsageDetail_20' ) start [2025-01-09 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206969', 'tblTempUsageDetail_20' ) end [2025-01-09 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206969', 'tblTempVendorCDR_20' ) start [2025-01-09 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206969', 'tblTempVendorCDR_20' ) end [2025-01-09 03:57:18] Production.INFO: ProcessCDR(1,14206969,1,1,2) [2025-01-09 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206969', 'tblTempUsageDetail_20' ) start [2025-01-09 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206969', 'tblTempUsageDetail_20' ) end [2025-01-09 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:57:21] Production.INFO: ==18549== Releasing lock... [2025-01-09 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:58:05 [end_date_ymd] => 2025-01-09 03:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 00:58:05' and `end` < '2025-01-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-01-09 03:58:18] Production.INFO: count ==140 [2025-01-09 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:58:05 - End Time 2025-01-09 03:58:05 [2025-01-09 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206974', 'tblTempUsageDetail_20' ) start [2025-01-09 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206974', 'tblTempUsageDetail_20' ) end [2025-01-09 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206974', 'tblTempVendorCDR_20' ) start [2025-01-09 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206974', 'tblTempVendorCDR_20' ) end [2025-01-09 03:58:18] Production.INFO: ProcessCDR(1,14206974,1,1,2) [2025-01-09 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206974', 'tblTempUsageDetail_20' ) start [2025-01-09 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206974', 'tblTempUsageDetail_20' ) end [2025-01-09 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:58:21] Production.INFO: ==18662== Releasing lock... [2025-01-09 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 03:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 00:59:04 [end_date_ymd] => 2025-01-09 03:59:04 [RateCDR] => 1 ) [2025-01-09 03:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 00:59:04' and `end` < '2025-01-09 03:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 03:59:17] Production.INFO: count ==140 [2025-01-09 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-09 00:59:04 - End Time 2025-01-09 03:59:04 [2025-01-09 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206979', 'tblTempUsageDetail_20' ) start [2025-01-09 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206979', 'tblTempUsageDetail_20' ) end [2025-01-09 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206979', 'tblTempVendorCDR_20' ) start [2025-01-09 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206979', 'tblTempVendorCDR_20' ) end [2025-01-09 03:59:18] Production.INFO: ProcessCDR(1,14206979,1,1,2) [2025-01-09 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 03:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206979', 'tblTempUsageDetail_20' ) start [2025-01-09 03:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206979', 'tblTempUsageDetail_20' ) end [2025-01-09 03:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 03:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 03:59:21] Production.INFO: ==18742== Releasing lock... [2025-01-09 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 03:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:00:06 [end_date_ymd] => 2025-01-09 04:00:06 [RateCDR] => 1 ) [2025-01-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-01-09 01:00:06' and `end` < '2025-01-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-01-09 04:00:18] Production.INFO: count ==134 [2025-01-09 04:00:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:00:06 - End Time 2025-01-09 04:00:06 [2025-01-09 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206986', 'tblTempUsageDetail_20' ) start [2025-01-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206986', 'tblTempUsageDetail_20' ) end [2025-01-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206986', 'tblTempVendorCDR_20' ) start [2025-01-09 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206986', 'tblTempVendorCDR_20' ) end [2025-01-09 04:00:19] Production.INFO: ProcessCDR(1,14206986,1,1,2) [2025-01-09 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206986', 'tblTempUsageDetail_20' ) start [2025-01-09 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206986', 'tblTempUsageDetail_20' ) end [2025-01-09 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:00:22] Production.INFO: ==18827== Releasing lock... [2025-01-09 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:00:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:01:05 [end_date_ymd] => 2025-01-09 04:01:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:01:05' and `end` < '2025-01-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-01-09 04:01:19] Production.INFO: count ==124 [2025-01-09 04:01:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:01:05 - End Time 2025-01-09 04:01:05 [2025-01-09 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206991', 'tblTempUsageDetail_20' ) start [2025-01-09 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206991', 'tblTempUsageDetail_20' ) end [2025-01-09 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206991', 'tblTempVendorCDR_20' ) start [2025-01-09 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206991', 'tblTempVendorCDR_20' ) end [2025-01-09 04:01:19] Production.INFO: ProcessCDR(1,14206991,1,1,2) [2025-01-09 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206991', 'tblTempUsageDetail_20' ) start [2025-01-09 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206991', 'tblTempUsageDetail_20' ) end [2025-01-09 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:01:22] Production.INFO: ==18913== Releasing lock... [2025-01-09 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:01:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:02:04 [end_date_ymd] => 2025-01-09 04:02:04 [RateCDR] => 1 ) [2025-01-09 04:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:02:04' and `end` < '2025-01-09 04:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:02:18] Production.INFO: count ==124 [2025-01-09 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:02:04 - End Time 2025-01-09 04:02:04 [2025-01-09 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206996', 'tblTempUsageDetail_20' ) start [2025-01-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14206996', 'tblTempUsageDetail_20' ) end [2025-01-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206996', 'tblTempVendorCDR_20' ) start [2025-01-09 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14206996', 'tblTempVendorCDR_20' ) end [2025-01-09 04:02:18] Production.INFO: ProcessCDR(1,14206996,1,1,2) [2025-01-09 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14206996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14206996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14206996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14206996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206996', 'tblTempUsageDetail_20' ) start [2025-01-09 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14206996', 'tblTempUsageDetail_20' ) end [2025-01-09 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:02:21] Production.INFO: ==18997== Releasing lock... [2025-01-09 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:02:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:03:05 [end_date_ymd] => 2025-01-09 04:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:03:05' and `end` < '2025-01-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-01-09 04:03:18] Production.INFO: count ==124 [2025-01-09 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:03:05 - End Time 2025-01-09 04:03:05 [2025-01-09 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207001', 'tblTempUsageDetail_20' ) start [2025-01-09 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207001', 'tblTempUsageDetail_20' ) end [2025-01-09 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207001', 'tblTempVendorCDR_20' ) start [2025-01-09 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207001', 'tblTempVendorCDR_20' ) end [2025-01-09 04:03:18] Production.INFO: ProcessCDR(1,14207001,1,1,2) [2025-01-09 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207001', 'tblTempUsageDetail_20' ) start [2025-01-09 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207001', 'tblTempUsageDetail_20' ) end [2025-01-09 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:03:21] Production.INFO: ==19076== Releasing lock... [2025-01-09 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:03:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:04:05 [end_date_ymd] => 2025-01-09 04:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:04:05' and `end` < '2025-01-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-01-09 04:04:17] Production.INFO: count ==124 [2025-01-09 04:04:17] Production.ERROR: pbx CDR StartTime 2025-01-09 01:04:05 - End Time 2025-01-09 04:04:05 [2025-01-09 04:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207006', 'tblTempUsageDetail_20' ) start [2025-01-09 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207006', 'tblTempUsageDetail_20' ) end [2025-01-09 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207006', 'tblTempVendorCDR_20' ) start [2025-01-09 04:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207006', 'tblTempVendorCDR_20' ) end [2025-01-09 04:04:17] Production.INFO: ProcessCDR(1,14207006,1,1,2) [2025-01-09 04:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207006', 'tblTempUsageDetail_20' ) start [2025-01-09 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207006', 'tblTempUsageDetail_20' ) end [2025-01-09 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:04:21] Production.INFO: ==19148== Releasing lock... [2025-01-09 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:04:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:05:05 [end_date_ymd] => 2025-01-09 04:05:05 [RateCDR] => 1 ) [2025-01-09 04:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:05:05' and `end` < '2025-01-09 04:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:05:18] Production.INFO: count ==124 [2025-01-09 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:05:05 - End Time 2025-01-09 04:05:05 [2025-01-09 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207011', 'tblTempUsageDetail_20' ) start [2025-01-09 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207011', 'tblTempUsageDetail_20' ) end [2025-01-09 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207011', 'tblTempVendorCDR_20' ) start [2025-01-09 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207011', 'tblTempVendorCDR_20' ) end [2025-01-09 04:05:18] Production.INFO: ProcessCDR(1,14207011,1,1,2) [2025-01-09 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207011', 'tblTempUsageDetail_20' ) start [2025-01-09 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207011', 'tblTempUsageDetail_20' ) end [2025-01-09 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:05:21] Production.INFO: ==19230== Releasing lock... [2025-01-09 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:06:05 [end_date_ymd] => 2025-01-09 04:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:06:05' and `end` < '2025-01-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-01-09 04:06:18] Production.INFO: count ==124 [2025-01-09 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:06:05 - End Time 2025-01-09 04:06:05 [2025-01-09 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207016', 'tblTempUsageDetail_20' ) start [2025-01-09 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207016', 'tblTempUsageDetail_20' ) end [2025-01-09 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207016', 'tblTempVendorCDR_20' ) start [2025-01-09 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207016', 'tblTempVendorCDR_20' ) end [2025-01-09 04:06:18] Production.INFO: ProcessCDR(1,14207016,1,1,2) [2025-01-09 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207016', 'tblTempUsageDetail_20' ) start [2025-01-09 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207016', 'tblTempUsageDetail_20' ) end [2025-01-09 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:06:22] Production.INFO: ==19301== Releasing lock... [2025-01-09 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:07:05 [end_date_ymd] => 2025-01-09 04:07:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:07:05' and `end` < '2025-01-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-01-09 04:07:18] Production.INFO: count ==124 [2025-01-09 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:07:05 - End Time 2025-01-09 04:07:05 [2025-01-09 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207021', 'tblTempUsageDetail_20' ) start [2025-01-09 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207021', 'tblTempUsageDetail_20' ) end [2025-01-09 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207021', 'tblTempVendorCDR_20' ) start [2025-01-09 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207021', 'tblTempVendorCDR_20' ) end [2025-01-09 04:07:18] Production.INFO: ProcessCDR(1,14207021,1,1,2) [2025-01-09 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207021', 'tblTempUsageDetail_20' ) start [2025-01-09 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207021', 'tblTempUsageDetail_20' ) end [2025-01-09 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:07:21] Production.INFO: ==19374== Releasing lock... [2025-01-09 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:07:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:08:04 [end_date_ymd] => 2025-01-09 04:08:04 [RateCDR] => 1 ) [2025-01-09 04:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:08:04' and `end` < '2025-01-09 04:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:08:17] Production.INFO: count ==124 [2025-01-09 04:08:17] Production.ERROR: pbx CDR StartTime 2025-01-09 01:08:04 - End Time 2025-01-09 04:08:04 [2025-01-09 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207026', 'tblTempUsageDetail_20' ) start [2025-01-09 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207026', 'tblTempUsageDetail_20' ) end [2025-01-09 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207026', 'tblTempVendorCDR_20' ) start [2025-01-09 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207026', 'tblTempVendorCDR_20' ) end [2025-01-09 04:08:17] Production.INFO: ProcessCDR(1,14207026,1,1,2) [2025-01-09 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207026', 'tblTempUsageDetail_20' ) start [2025-01-09 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207026', 'tblTempUsageDetail_20' ) end [2025-01-09 04:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:08:20] Production.INFO: ==19448== Releasing lock... [2025-01-09 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:08:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:09:04 [end_date_ymd] => 2025-01-09 04:09:04 [RateCDR] => 1 ) [2025-01-09 04:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:09:04' and `end` < '2025-01-09 04:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:09:18] Production.INFO: count ==124 [2025-01-09 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:09:04 - End Time 2025-01-09 04:09:04 [2025-01-09 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207031', 'tblTempUsageDetail_20' ) start [2025-01-09 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207031', 'tblTempUsageDetail_20' ) end [2025-01-09 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207031', 'tblTempVendorCDR_20' ) start [2025-01-09 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207031', 'tblTempVendorCDR_20' ) end [2025-01-09 04:09:18] Production.INFO: ProcessCDR(1,14207031,1,1,2) [2025-01-09 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207031', 'tblTempUsageDetail_20' ) start [2025-01-09 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207031', 'tblTempUsageDetail_20' ) end [2025-01-09 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:09:21] Production.INFO: ==19523== Releasing lock... [2025-01-09 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:09:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:10:07 [end_date_ymd] => 2025-01-09 04:10:07 [RateCDR] => 1 ) [2025-01-09 04:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:10:07' and `end` < '2025-01-09 04:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:10:19] Production.INFO: count ==115 [2025-01-09 04:10:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:10:07 - End Time 2025-01-09 04:10:07 [2025-01-09 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207037', 'tblTempUsageDetail_20' ) start [2025-01-09 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207037', 'tblTempUsageDetail_20' ) end [2025-01-09 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207037', 'tblTempVendorCDR_20' ) start [2025-01-09 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207037', 'tblTempVendorCDR_20' ) end [2025-01-09 04:10:19] Production.INFO: ProcessCDR(1,14207037,1,1,2) [2025-01-09 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207037', 'tblTempUsageDetail_20' ) start [2025-01-09 04:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207037', 'tblTempUsageDetail_20' ) end [2025-01-09 04:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:10:23] Production.INFO: ==19600== Releasing lock... [2025-01-09 04:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:10:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:11:05 [end_date_ymd] => 2025-01-09 04:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:11:05' and `end` < '2025-01-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-01-09 04:11:19] Production.INFO: count ==108 [2025-01-09 04:11:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:11:05 - End Time 2025-01-09 04:11:05 [2025-01-09 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207042', 'tblTempUsageDetail_20' ) start [2025-01-09 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207042', 'tblTempUsageDetail_20' ) end [2025-01-09 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207042', 'tblTempVendorCDR_20' ) start [2025-01-09 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207042', 'tblTempVendorCDR_20' ) end [2025-01-09 04:11:19] Production.INFO: ProcessCDR(1,14207042,1,1,2) [2025-01-09 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207042', 'tblTempUsageDetail_20' ) start [2025-01-09 04:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207042', 'tblTempUsageDetail_20' ) end [2025-01-09 04:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:11:22] Production.INFO: ==19671== Releasing lock... [2025-01-09 04:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:12:05 [end_date_ymd] => 2025-01-09 04:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:12:05' and `end` < '2025-01-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-01-09 04:12:18] Production.INFO: count ==108 [2025-01-09 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:12:05 - End Time 2025-01-09 04:12:05 [2025-01-09 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207047', 'tblTempUsageDetail_20' ) start [2025-01-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207047', 'tblTempUsageDetail_20' ) end [2025-01-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207047', 'tblTempVendorCDR_20' ) start [2025-01-09 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207047', 'tblTempVendorCDR_20' ) end [2025-01-09 04:12:18] Production.INFO: ProcessCDR(1,14207047,1,1,2) [2025-01-09 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207047', 'tblTempUsageDetail_20' ) start [2025-01-09 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207047', 'tblTempUsageDetail_20' ) end [2025-01-09 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:12:21] Production.INFO: ==19747== Releasing lock... [2025-01-09 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:13:05 [end_date_ymd] => 2025-01-09 04:13:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:13:05' and `end` < '2025-01-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-01-09 04:13:19] Production.INFO: count ==108 [2025-01-09 04:13:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:13:05 - End Time 2025-01-09 04:13:05 [2025-01-09 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207052', 'tblTempUsageDetail_20' ) start [2025-01-09 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207052', 'tblTempUsageDetail_20' ) end [2025-01-09 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207052', 'tblTempVendorCDR_20' ) start [2025-01-09 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207052', 'tblTempVendorCDR_20' ) end [2025-01-09 04:13:19] Production.INFO: ProcessCDR(1,14207052,1,1,2) [2025-01-09 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207052', 'tblTempUsageDetail_20' ) start [2025-01-09 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207052', 'tblTempUsageDetail_20' ) end [2025-01-09 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:13:22] Production.INFO: ==19856== Releasing lock... [2025-01-09 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:13:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:14:05 [end_date_ymd] => 2025-01-09 04:14:05 [RateCDR] => 1 ) [2025-01-09 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:14:05' and `end` < '2025-01-09 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:14:19] Production.INFO: count ==108 [2025-01-09 04:14:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:14:05 - End Time 2025-01-09 04:14:05 [2025-01-09 04:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207057', 'tblTempUsageDetail_20' ) start [2025-01-09 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207057', 'tblTempUsageDetail_20' ) end [2025-01-09 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207057', 'tblTempVendorCDR_20' ) start [2025-01-09 04:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207057', 'tblTempVendorCDR_20' ) end [2025-01-09 04:14:19] Production.INFO: ProcessCDR(1,14207057,1,1,2) [2025-01-09 04:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207057', 'tblTempUsageDetail_20' ) start [2025-01-09 04:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207057', 'tblTempUsageDetail_20' ) end [2025-01-09 04:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:14:22] Production.INFO: ==19927== Releasing lock... [2025-01-09 04:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:15:05 [end_date_ymd] => 2025-01-09 04:15:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:15:05' and `end` < '2025-01-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-01-09 04:15:17] Production.INFO: count ==108 [2025-01-09 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:15:05 - End Time 2025-01-09 04:15:05 [2025-01-09 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207062', 'tblTempUsageDetail_20' ) start [2025-01-09 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207062', 'tblTempUsageDetail_20' ) end [2025-01-09 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207062', 'tblTempVendorCDR_20' ) start [2025-01-09 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207062', 'tblTempVendorCDR_20' ) end [2025-01-09 04:15:18] Production.INFO: ProcessCDR(1,14207062,1,1,2) [2025-01-09 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207062', 'tblTempUsageDetail_20' ) start [2025-01-09 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207062', 'tblTempUsageDetail_20' ) end [2025-01-09 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:15:21] Production.INFO: ==19996== Releasing lock... [2025-01-09 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:15:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:16:05 [end_date_ymd] => 2025-01-09 04:16:05 [RateCDR] => 1 ) [2025-01-09 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:16:05' and `end` < '2025-01-09 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:16:18] Production.INFO: count ==108 [2025-01-09 04:16:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:16:05 - End Time 2025-01-09 04:16:05 [2025-01-09 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207067', 'tblTempUsageDetail_20' ) start [2025-01-09 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207067', 'tblTempUsageDetail_20' ) end [2025-01-09 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207067', 'tblTempVendorCDR_20' ) start [2025-01-09 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207067', 'tblTempVendorCDR_20' ) end [2025-01-09 04:16:18] Production.INFO: ProcessCDR(1,14207067,1,1,2) [2025-01-09 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207067', 'tblTempUsageDetail_20' ) start [2025-01-09 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207067', 'tblTempUsageDetail_20' ) end [2025-01-09 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:16:21] Production.INFO: ==20067== Releasing lock... [2025-01-09 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:17:04 [end_date_ymd] => 2025-01-09 04:17:04 [RateCDR] => 1 ) [2025-01-09 04:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:17:04' and `end` < '2025-01-09 04:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:17:17] Production.INFO: count ==108 [2025-01-09 04:17:17] Production.ERROR: pbx CDR StartTime 2025-01-09 01:17:04 - End Time 2025-01-09 04:17:04 [2025-01-09 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207072', 'tblTempUsageDetail_20' ) start [2025-01-09 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207072', 'tblTempUsageDetail_20' ) end [2025-01-09 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207072', 'tblTempVendorCDR_20' ) start [2025-01-09 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207072', 'tblTempVendorCDR_20' ) end [2025-01-09 04:17:17] Production.INFO: ProcessCDR(1,14207072,1,1,2) [2025-01-09 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207072', 'tblTempUsageDetail_20' ) start [2025-01-09 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207072', 'tblTempUsageDetail_20' ) end [2025-01-09 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:17:21] Production.INFO: ==20136== Releasing lock... [2025-01-09 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:17:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:18:05 [end_date_ymd] => 2025-01-09 04:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:18:05' and `end` < '2025-01-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-01-09 04:18:18] Production.INFO: count ==108 [2025-01-09 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:18:05 - End Time 2025-01-09 04:18:05 [2025-01-09 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207077', 'tblTempUsageDetail_20' ) start [2025-01-09 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207077', 'tblTempUsageDetail_20' ) end [2025-01-09 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207077', 'tblTempVendorCDR_20' ) start [2025-01-09 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207077', 'tblTempVendorCDR_20' ) end [2025-01-09 04:18:18] Production.INFO: ProcessCDR(1,14207077,1,1,2) [2025-01-09 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207077', 'tblTempUsageDetail_20' ) start [2025-01-09 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207077', 'tblTempUsageDetail_20' ) end [2025-01-09 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:18:21] Production.INFO: ==20217== Releasing lock... [2025-01-09 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:19:05 [end_date_ymd] => 2025-01-09 04:19:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:19:05' and `end` < '2025-01-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-01-09 04:19:18] Production.INFO: count ==108 [2025-01-09 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:19:05 - End Time 2025-01-09 04:19:05 [2025-01-09 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207082', 'tblTempUsageDetail_20' ) start [2025-01-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207082', 'tblTempUsageDetail_20' ) end [2025-01-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207082', 'tblTempVendorCDR_20' ) start [2025-01-09 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207082', 'tblTempVendorCDR_20' ) end [2025-01-09 04:19:18] Production.INFO: ProcessCDR(1,14207082,1,1,2) [2025-01-09 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207082', 'tblTempUsageDetail_20' ) start [2025-01-09 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207082', 'tblTempUsageDetail_20' ) end [2025-01-09 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:19:22] Production.INFO: ==20288== Releasing lock... [2025-01-09 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:19:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:20:07 [end_date_ymd] => 2025-01-09 04:20:07 [RateCDR] => 1 ) [2025-01-09 04:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:20:07' and `end` < '2025-01-09 04:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:20:20] Production.INFO: count ==114 [2025-01-09 04:20:20] Production.ERROR: pbx CDR StartTime 2025-01-09 01:20:07 - End Time 2025-01-09 04:20:07 [2025-01-09 04:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207087', 'tblTempUsageDetail_20' ) start [2025-01-09 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207087', 'tblTempUsageDetail_20' ) end [2025-01-09 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207087', 'tblTempVendorCDR_20' ) start [2025-01-09 04:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207087', 'tblTempVendorCDR_20' ) end [2025-01-09 04:20:20] Production.INFO: ProcessCDR(1,14207087,1,1,2) [2025-01-09 04:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207087', 'tblTempUsageDetail_20' ) start [2025-01-09 04:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207087', 'tblTempUsageDetail_20' ) end [2025-01-09 04:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:20:23] Production.INFO: ==20362== Releasing lock... [2025-01-09 04:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:20:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:21:05 [end_date_ymd] => 2025-01-09 04:21:05 [RateCDR] => 1 ) [2025-01-09 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:21:05' and `end` < '2025-01-09 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:21:19] Production.INFO: count ==114 [2025-01-09 04:21:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:21:05 - End Time 2025-01-09 04:21:05 [2025-01-09 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207093', 'tblTempUsageDetail_20' ) start [2025-01-09 04:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207093', 'tblTempUsageDetail_20' ) end [2025-01-09 04:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207093', 'tblTempVendorCDR_20' ) start [2025-01-09 04:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207093', 'tblTempVendorCDR_20' ) end [2025-01-09 04:21:20] Production.INFO: ProcessCDR(1,14207093,1,1,2) [2025-01-09 04:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207093', 'tblTempUsageDetail_20' ) start [2025-01-09 04:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207093', 'tblTempUsageDetail_20' ) end [2025-01-09 04:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:21:23] Production.INFO: ==20434== Releasing lock... [2025-01-09 04:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:21:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:22:05 [end_date_ymd] => 2025-01-09 04:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:22:05' and `end` < '2025-01-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-01-09 04:22:18] Production.INFO: count ==114 [2025-01-09 04:22:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:22:05 - End Time 2025-01-09 04:22:05 [2025-01-09 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207098', 'tblTempUsageDetail_20' ) start [2025-01-09 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207098', 'tblTempUsageDetail_20' ) end [2025-01-09 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207098', 'tblTempVendorCDR_20' ) start [2025-01-09 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207098', 'tblTempVendorCDR_20' ) end [2025-01-09 04:22:18] Production.INFO: ProcessCDR(1,14207098,1,1,2) [2025-01-09 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207098', 'tblTempUsageDetail_20' ) start [2025-01-09 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207098', 'tblTempUsageDetail_20' ) end [2025-01-09 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:22:21] Production.INFO: ==20508== Releasing lock... [2025-01-09 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:23:04 [end_date_ymd] => 2025-01-09 04:23:04 [RateCDR] => 1 ) [2025-01-09 04:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:23:04' and `end` < '2025-01-09 04:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:23:17] Production.INFO: count ==114 [2025-01-09 04:23:17] Production.ERROR: pbx CDR StartTime 2025-01-09 01:23:04 - End Time 2025-01-09 04:23:04 [2025-01-09 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207103', 'tblTempUsageDetail_20' ) start [2025-01-09 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207103', 'tblTempUsageDetail_20' ) end [2025-01-09 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207103', 'tblTempVendorCDR_20' ) start [2025-01-09 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207103', 'tblTempVendorCDR_20' ) end [2025-01-09 04:23:17] Production.INFO: ProcessCDR(1,14207103,1,1,2) [2025-01-09 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207103', 'tblTempUsageDetail_20' ) start [2025-01-09 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207103', 'tblTempUsageDetail_20' ) end [2025-01-09 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:23:20] Production.INFO: ==20582== Releasing lock... [2025-01-09 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:23:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:24:05 [end_date_ymd] => 2025-01-09 04:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:24:05' and `end` < '2025-01-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-01-09 04:24:19] Production.INFO: count ==114 [2025-01-09 04:24:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:24:05 - End Time 2025-01-09 04:24:05 [2025-01-09 04:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207108', 'tblTempUsageDetail_20' ) start [2025-01-09 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207108', 'tblTempUsageDetail_20' ) end [2025-01-09 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207108', 'tblTempVendorCDR_20' ) start [2025-01-09 04:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207108', 'tblTempVendorCDR_20' ) end [2025-01-09 04:24:19] Production.INFO: ProcessCDR(1,14207108,1,1,2) [2025-01-09 04:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207108', 'tblTempUsageDetail_20' ) start [2025-01-09 04:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207108', 'tblTempUsageDetail_20' ) end [2025-01-09 04:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:24:23] Production.INFO: ==20654== Releasing lock... [2025-01-09 04:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:24:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:25:05 [end_date_ymd] => 2025-01-09 04:25:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:25:05' and `end` < '2025-01-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-01-09 04:25:18] Production.INFO: count ==114 [2025-01-09 04:25:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:25:05 - End Time 2025-01-09 04:25:05 [2025-01-09 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207113', 'tblTempUsageDetail_20' ) start [2025-01-09 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207113', 'tblTempUsageDetail_20' ) end [2025-01-09 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207113', 'tblTempVendorCDR_20' ) start [2025-01-09 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207113', 'tblTempVendorCDR_20' ) end [2025-01-09 04:25:18] Production.INFO: ProcessCDR(1,14207113,1,1,2) [2025-01-09 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207113', 'tblTempUsageDetail_20' ) start [2025-01-09 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207113', 'tblTempUsageDetail_20' ) end [2025-01-09 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:25:21] Production.INFO: ==20726== Releasing lock... [2025-01-09 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:26:05 [end_date_ymd] => 2025-01-09 04:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:26:05' and `end` < '2025-01-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-01-09 04:26:19] Production.INFO: count ==114 [2025-01-09 04:26:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:26:05 - End Time 2025-01-09 04:26:05 [2025-01-09 04:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207118', 'tblTempUsageDetail_20' ) start [2025-01-09 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207118', 'tblTempUsageDetail_20' ) end [2025-01-09 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207118', 'tblTempVendorCDR_20' ) start [2025-01-09 04:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207118', 'tblTempVendorCDR_20' ) end [2025-01-09 04:26:19] Production.INFO: ProcessCDR(1,14207118,1,1,2) [2025-01-09 04:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207118', 'tblTempUsageDetail_20' ) start [2025-01-09 04:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207118', 'tblTempUsageDetail_20' ) end [2025-01-09 04:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:26:22] Production.INFO: ==20798== Releasing lock... [2025-01-09 04:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:26:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:27:04 [end_date_ymd] => 2025-01-09 04:27:04 [RateCDR] => 1 ) [2025-01-09 04:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:27:04' and `end` < '2025-01-09 04:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:27:18] Production.INFO: count ==114 [2025-01-09 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:27:04 - End Time 2025-01-09 04:27:04 [2025-01-09 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207123', 'tblTempUsageDetail_20' ) start [2025-01-09 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207123', 'tblTempUsageDetail_20' ) end [2025-01-09 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207123', 'tblTempVendorCDR_20' ) start [2025-01-09 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207123', 'tblTempVendorCDR_20' ) end [2025-01-09 04:27:18] Production.INFO: ProcessCDR(1,14207123,1,1,2) [2025-01-09 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207123', 'tblTempUsageDetail_20' ) start [2025-01-09 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207123', 'tblTempUsageDetail_20' ) end [2025-01-09 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:27:21] Production.INFO: ==20867== Releasing lock... [2025-01-09 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:27:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:28:05 [end_date_ymd] => 2025-01-09 04:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:28:05' and `end` < '2025-01-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-01-09 04:28:18] Production.INFO: count ==114 [2025-01-09 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:28:05 - End Time 2025-01-09 04:28:05 [2025-01-09 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207128', 'tblTempUsageDetail_20' ) start [2025-01-09 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207128', 'tblTempUsageDetail_20' ) end [2025-01-09 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207128', 'tblTempVendorCDR_20' ) start [2025-01-09 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207128', 'tblTempVendorCDR_20' ) end [2025-01-09 04:28:18] Production.INFO: ProcessCDR(1,14207128,1,1,2) [2025-01-09 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207128', 'tblTempUsageDetail_20' ) start [2025-01-09 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207128', 'tblTempUsageDetail_20' ) end [2025-01-09 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:28:21] Production.INFO: ==20937== Releasing lock... [2025-01-09 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:29:05 [end_date_ymd] => 2025-01-09 04:29:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:29:05' and `end` < '2025-01-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-01-09 04:29:18] Production.INFO: count ==114 [2025-01-09 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:29:05 - End Time 2025-01-09 04:29:05 [2025-01-09 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207133', 'tblTempUsageDetail_20' ) start [2025-01-09 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207133', 'tblTempUsageDetail_20' ) end [2025-01-09 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207133', 'tblTempVendorCDR_20' ) start [2025-01-09 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207133', 'tblTempVendorCDR_20' ) end [2025-01-09 04:29:18] Production.INFO: ProcessCDR(1,14207133,1,1,2) [2025-01-09 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207133', 'tblTempUsageDetail_20' ) start [2025-01-09 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207133', 'tblTempUsageDetail_20' ) end [2025-01-09 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:29:21] Production.INFO: ==21048== Releasing lock... [2025-01-09 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:29:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:30:06 [end_date_ymd] => 2025-01-09 04:30:06 [RateCDR] => 1 ) [2025-01-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-01-09 01:30:06' and `end` < '2025-01-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-01-09 04:30:18] Production.INFO: count ==115 [2025-01-09 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:30:06 - End Time 2025-01-09 04:30:06 [2025-01-09 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207140', 'tblTempUsageDetail_20' ) start [2025-01-09 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207140', 'tblTempUsageDetail_20' ) end [2025-01-09 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207140', 'tblTempVendorCDR_20' ) start [2025-01-09 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207140', 'tblTempVendorCDR_20' ) end [2025-01-09 04:30:19] Production.INFO: ProcessCDR(1,14207140,1,1,2) [2025-01-09 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207140', 'tblTempUsageDetail_20' ) start [2025-01-09 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207140', 'tblTempUsageDetail_20' ) end [2025-01-09 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:30:22] Production.INFO: ==21122== Releasing lock... [2025-01-09 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:31:05 [end_date_ymd] => 2025-01-09 04:31:05 [RateCDR] => 1 ) [2025-01-09 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:31:05' and `end` < '2025-01-09 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:31:18] Production.INFO: count ==115 [2025-01-09 04:31:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:31:05 - End Time 2025-01-09 04:31:05 [2025-01-09 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207145', 'tblTempUsageDetail_20' ) start [2025-01-09 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207145', 'tblTempUsageDetail_20' ) end [2025-01-09 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207145', 'tblTempVendorCDR_20' ) start [2025-01-09 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207145', 'tblTempVendorCDR_20' ) end [2025-01-09 04:31:18] Production.INFO: ProcessCDR(1,14207145,1,1,2) [2025-01-09 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207145', 'tblTempUsageDetail_20' ) start [2025-01-09 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207145', 'tblTempUsageDetail_20' ) end [2025-01-09 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:31:21] Production.INFO: ==21211== Releasing lock... [2025-01-09 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:32:04 [end_date_ymd] => 2025-01-09 04:32:04 [RateCDR] => 1 ) [2025-01-09 04:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:32:04' and `end` < '2025-01-09 04:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:32:17] Production.INFO: count ==115 [2025-01-09 04:32:17] Production.ERROR: pbx CDR StartTime 2025-01-09 01:32:04 - End Time 2025-01-09 04:32:04 [2025-01-09 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207150', 'tblTempUsageDetail_20' ) start [2025-01-09 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207150', 'tblTempUsageDetail_20' ) end [2025-01-09 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207150', 'tblTempVendorCDR_20' ) start [2025-01-09 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207150', 'tblTempVendorCDR_20' ) end [2025-01-09 04:32:17] Production.INFO: ProcessCDR(1,14207150,1,1,2) [2025-01-09 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207150', 'tblTempUsageDetail_20' ) start [2025-01-09 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207150', 'tblTempUsageDetail_20' ) end [2025-01-09 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:32:20] Production.INFO: ==21282== Releasing lock... [2025-01-09 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:32:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:33:05 [end_date_ymd] => 2025-01-09 04:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:33:05' and `end` < '2025-01-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-01-09 04:33:19] Production.INFO: count ==115 [2025-01-09 04:33:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:33:05 - End Time 2025-01-09 04:33:05 [2025-01-09 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207155', 'tblTempUsageDetail_20' ) start [2025-01-09 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207155', 'tblTempUsageDetail_20' ) end [2025-01-09 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207155', 'tblTempVendorCDR_20' ) start [2025-01-09 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207155', 'tblTempVendorCDR_20' ) end [2025-01-09 04:33:19] Production.INFO: ProcessCDR(1,14207155,1,1,2) [2025-01-09 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207155', 'tblTempUsageDetail_20' ) start [2025-01-09 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207155', 'tblTempUsageDetail_20' ) end [2025-01-09 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:33:22] Production.INFO: ==21353== Releasing lock... [2025-01-09 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:34:05 [end_date_ymd] => 2025-01-09 04:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:34:05' and `end` < '2025-01-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-01-09 04:34:18] Production.INFO: count ==115 [2025-01-09 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:34:05 - End Time 2025-01-09 04:34:05 [2025-01-09 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207160', 'tblTempUsageDetail_20' ) start [2025-01-09 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207160', 'tblTempUsageDetail_20' ) end [2025-01-09 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207160', 'tblTempVendorCDR_20' ) start [2025-01-09 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207160', 'tblTempVendorCDR_20' ) end [2025-01-09 04:34:18] Production.INFO: ProcessCDR(1,14207160,1,1,2) [2025-01-09 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207160', 'tblTempUsageDetail_20' ) start [2025-01-09 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207160', 'tblTempUsageDetail_20' ) end [2025-01-09 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:34:21] Production.INFO: ==21425== Releasing lock... [2025-01-09 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:35:05 [end_date_ymd] => 2025-01-09 04:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:35:05' and `end` < '2025-01-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-01-09 04:35:18] Production.INFO: count ==115 [2025-01-09 04:35:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:35:05 - End Time 2025-01-09 04:35:05 [2025-01-09 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207165', 'tblTempUsageDetail_20' ) start [2025-01-09 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207165', 'tblTempUsageDetail_20' ) end [2025-01-09 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207165', 'tblTempVendorCDR_20' ) start [2025-01-09 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207165', 'tblTempVendorCDR_20' ) end [2025-01-09 04:35:18] Production.INFO: ProcessCDR(1,14207165,1,1,2) [2025-01-09 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207165', 'tblTempUsageDetail_20' ) start [2025-01-09 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207165', 'tblTempUsageDetail_20' ) end [2025-01-09 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:35:21] Production.INFO: ==21499== Releasing lock... [2025-01-09 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:36:05 [end_date_ymd] => 2025-01-09 04:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:36:05' and `end` < '2025-01-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-01-09 04:36:18] Production.INFO: count ==115 [2025-01-09 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:36:05 - End Time 2025-01-09 04:36:05 [2025-01-09 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207170', 'tblTempUsageDetail_20' ) start [2025-01-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207170', 'tblTempUsageDetail_20' ) end [2025-01-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207170', 'tblTempVendorCDR_20' ) start [2025-01-09 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207170', 'tblTempVendorCDR_20' ) end [2025-01-09 04:36:18] Production.INFO: ProcessCDR(1,14207170,1,1,2) [2025-01-09 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207170', 'tblTempUsageDetail_20' ) start [2025-01-09 04:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207170', 'tblTempUsageDetail_20' ) end [2025-01-09 04:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:36:22] Production.INFO: ==21572== Releasing lock... [2025-01-09 04:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:37:05 [end_date_ymd] => 2025-01-09 04:37:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:37:05' and `end` < '2025-01-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-01-09 04:37:18] Production.INFO: count ==113 [2025-01-09 04:37:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:37:05 - End Time 2025-01-09 04:37:05 [2025-01-09 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207175', 'tblTempUsageDetail_20' ) start [2025-01-09 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207175', 'tblTempUsageDetail_20' ) end [2025-01-09 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207175', 'tblTempVendorCDR_20' ) start [2025-01-09 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207175', 'tblTempVendorCDR_20' ) end [2025-01-09 04:37:18] Production.INFO: ProcessCDR(1,14207175,1,1,2) [2025-01-09 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207175', 'tblTempUsageDetail_20' ) start [2025-01-09 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207175', 'tblTempUsageDetail_20' ) end [2025-01-09 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:37:21] Production.INFO: ==21648== Releasing lock... [2025-01-09 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:38:05 [end_date_ymd] => 2025-01-09 04:38:05 [RateCDR] => 1 ) [2025-01-09 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:38:05' and `end` < '2025-01-09 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:38:19] Production.INFO: count ==112 [2025-01-09 04:38:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:38:05 - End Time 2025-01-09 04:38:05 [2025-01-09 04:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207180', 'tblTempUsageDetail_20' ) start [2025-01-09 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207180', 'tblTempUsageDetail_20' ) end [2025-01-09 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207180', 'tblTempVendorCDR_20' ) start [2025-01-09 04:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207180', 'tblTempVendorCDR_20' ) end [2025-01-09 04:38:19] Production.INFO: ProcessCDR(1,14207180,1,1,2) [2025-01-09 04:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207180', 'tblTempUsageDetail_20' ) start [2025-01-09 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207180', 'tblTempUsageDetail_20' ) end [2025-01-09 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:38:22] Production.INFO: ==21723== Releasing lock... [2025-01-09 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:39:05 [end_date_ymd] => 2025-01-09 04:39:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:39:05' and `end` < '2025-01-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-01-09 04:39:19] Production.INFO: count ==112 [2025-01-09 04:39:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:39:05 - End Time 2025-01-09 04:39:05 [2025-01-09 04:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207185', 'tblTempUsageDetail_20' ) start [2025-01-09 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207185', 'tblTempUsageDetail_20' ) end [2025-01-09 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207185', 'tblTempVendorCDR_20' ) start [2025-01-09 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207185', 'tblTempVendorCDR_20' ) end [2025-01-09 04:39:19] Production.INFO: ProcessCDR(1,14207185,1,1,2) [2025-01-09 04:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207185', 'tblTempUsageDetail_20' ) start [2025-01-09 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207185', 'tblTempUsageDetail_20' ) end [2025-01-09 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:39:22] Production.INFO: ==21793== Releasing lock... [2025-01-09 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:40:05 [end_date_ymd] => 2025-01-09 04:40:05 [RateCDR] => 1 ) [2025-01-09 04:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:40:05' and `end` < '2025-01-09 04:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:40:18] Production.INFO: count ==110 [2025-01-09 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:40:05 - End Time 2025-01-09 04:40:05 [2025-01-09 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207191', 'tblTempUsageDetail_20' ) start [2025-01-09 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207191', 'tblTempUsageDetail_20' ) end [2025-01-09 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207191', 'tblTempVendorCDR_20' ) start [2025-01-09 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207191', 'tblTempVendorCDR_20' ) end [2025-01-09 04:40:18] Production.INFO: ProcessCDR(1,14207191,1,1,2) [2025-01-09 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207191', 'tblTempUsageDetail_20' ) start [2025-01-09 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207191', 'tblTempUsageDetail_20' ) end [2025-01-09 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:40:21] Production.INFO: ==21865== Releasing lock... [2025-01-09 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:41:05 [end_date_ymd] => 2025-01-09 04:41:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:41:05' and `end` < '2025-01-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-01-09 04:41:19] Production.INFO: count ==109 [2025-01-09 04:41:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:41:05 - End Time 2025-01-09 04:41:05 [2025-01-09 04:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207196', 'tblTempUsageDetail_20' ) start [2025-01-09 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207196', 'tblTempUsageDetail_20' ) end [2025-01-09 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207196', 'tblTempVendorCDR_20' ) start [2025-01-09 04:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207196', 'tblTempVendorCDR_20' ) end [2025-01-09 04:41:19] Production.INFO: ProcessCDR(1,14207196,1,1,2) [2025-01-09 04:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207196', 'tblTempUsageDetail_20' ) start [2025-01-09 04:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207196', 'tblTempUsageDetail_20' ) end [2025-01-09 04:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:41:22] Production.INFO: ==21937== Releasing lock... [2025-01-09 04:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:41:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:42:05 [end_date_ymd] => 2025-01-09 04:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:42:05' and `end` < '2025-01-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-01-09 04:42:18] Production.INFO: count ==109 [2025-01-09 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:42:05 - End Time 2025-01-09 04:42:05 [2025-01-09 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207201', 'tblTempUsageDetail_20' ) start [2025-01-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207201', 'tblTempUsageDetail_20' ) end [2025-01-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207201', 'tblTempVendorCDR_20' ) start [2025-01-09 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207201', 'tblTempVendorCDR_20' ) end [2025-01-09 04:42:18] Production.INFO: ProcessCDR(1,14207201,1,1,2) [2025-01-09 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207201', 'tblTempUsageDetail_20' ) start [2025-01-09 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207201', 'tblTempUsageDetail_20' ) end [2025-01-09 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:42:21] Production.INFO: ==22007== Releasing lock... [2025-01-09 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:43:04 [end_date_ymd] => 2025-01-09 04:43:04 [RateCDR] => 1 ) [2025-01-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-01-09 01:43:04' and `end` < '2025-01-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-01-09 04:43:18] Production.INFO: count ==109 [2025-01-09 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:43:04 - End Time 2025-01-09 04:43:04 [2025-01-09 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207206', 'tblTempUsageDetail_20' ) start [2025-01-09 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207206', 'tblTempUsageDetail_20' ) end [2025-01-09 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207206', 'tblTempVendorCDR_20' ) start [2025-01-09 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207206', 'tblTempVendorCDR_20' ) end [2025-01-09 04:43:18] Production.INFO: ProcessCDR(1,14207206,1,1,2) [2025-01-09 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207206', 'tblTempUsageDetail_20' ) start [2025-01-09 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207206', 'tblTempUsageDetail_20' ) end [2025-01-09 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:43:21] Production.INFO: ==22077== Releasing lock... [2025-01-09 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:43:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:44:05 [end_date_ymd] => 2025-01-09 04:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:44:05' and `end` < '2025-01-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-01-09 04:44:17] Production.INFO: count ==109 [2025-01-09 04:44:17] Production.ERROR: pbx CDR StartTime 2025-01-09 01:44:05 - End Time 2025-01-09 04:44:05 [2025-01-09 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207211', 'tblTempUsageDetail_20' ) start [2025-01-09 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207211', 'tblTempUsageDetail_20' ) end [2025-01-09 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207211', 'tblTempVendorCDR_20' ) start [2025-01-09 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207211', 'tblTempVendorCDR_20' ) end [2025-01-09 04:44:17] Production.INFO: ProcessCDR(1,14207211,1,1,2) [2025-01-09 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207211', 'tblTempUsageDetail_20' ) start [2025-01-09 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207211', 'tblTempUsageDetail_20' ) end [2025-01-09 04:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:44:20] Production.INFO: ==22187== Releasing lock... [2025-01-09 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:45:05 [end_date_ymd] => 2025-01-09 04:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:45:05' and `end` < '2025-01-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-01-09 04:45:18] Production.INFO: count ==109 [2025-01-09 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-09 01:45:05 - End Time 2025-01-09 04:45:05 [2025-01-09 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207216', 'tblTempUsageDetail_20' ) start [2025-01-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207216', 'tblTempUsageDetail_20' ) end [2025-01-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207216', 'tblTempVendorCDR_20' ) start [2025-01-09 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207216', 'tblTempVendorCDR_20' ) end [2025-01-09 04:45:18] Production.INFO: ProcessCDR(1,14207216,1,1,2) [2025-01-09 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207216', 'tblTempUsageDetail_20' ) start [2025-01-09 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207216', 'tblTempUsageDetail_20' ) end [2025-01-09 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:45:22] Production.INFO: ==22257== Releasing lock... [2025-01-09 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:45:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:46:05 [end_date_ymd] => 2025-01-09 04:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:46:05' and `end` < '2025-01-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-01-09 04:46:25] Production.INFO: count ==109 [2025-01-09 04:46:25] Production.ERROR: pbx CDR StartTime 2025-01-09 01:46:05 - End Time 2025-01-09 04:46:05 [2025-01-09 04:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207221', 'tblTempUsageDetail_20' ) start [2025-01-09 04:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207221', 'tblTempUsageDetail_20' ) end [2025-01-09 04:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207221', 'tblTempVendorCDR_20' ) start [2025-01-09 04:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207221', 'tblTempVendorCDR_20' ) end [2025-01-09 04:46:25] Production.INFO: ProcessCDR(1,14207221,1,1,2) [2025-01-09 04:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207221', 'tblTempUsageDetail_20' ) start [2025-01-09 04:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207221', 'tblTempUsageDetail_20' ) end [2025-01-09 04:46:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:46:28] Production.INFO: ==22329== Releasing lock... [2025-01-09 04:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:46:28] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:47:05 [end_date_ymd] => 2025-01-09 04:47:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:47:05' and `end` < '2025-01-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-01-09 04:47:22] Production.INFO: count ==109 [2025-01-09 04:47:22] Production.ERROR: pbx CDR StartTime 2025-01-09 01:47:05 - End Time 2025-01-09 04:47:05 [2025-01-09 04:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207226', 'tblTempUsageDetail_20' ) start [2025-01-09 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207226', 'tblTempUsageDetail_20' ) end [2025-01-09 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207226', 'tblTempVendorCDR_20' ) start [2025-01-09 04:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207226', 'tblTempVendorCDR_20' ) end [2025-01-09 04:47:22] Production.INFO: ProcessCDR(1,14207226,1,1,2) [2025-01-09 04:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207226', 'tblTempUsageDetail_20' ) start [2025-01-09 04:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207226', 'tblTempUsageDetail_20' ) end [2025-01-09 04:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:47:25] Production.INFO: ==22403== Releasing lock... [2025-01-09 04:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:47:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:48:05 [end_date_ymd] => 2025-01-09 04:48:05 [RateCDR] => 1 ) [2025-01-09 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:48:05' and `end` < '2025-01-09 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:48:21] Production.INFO: count ==109 [2025-01-09 04:48:21] Production.ERROR: pbx CDR StartTime 2025-01-09 01:48:05 - End Time 2025-01-09 04:48:05 [2025-01-09 04:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207231', 'tblTempUsageDetail_20' ) start [2025-01-09 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207231', 'tblTempUsageDetail_20' ) end [2025-01-09 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207231', 'tblTempVendorCDR_20' ) start [2025-01-09 04:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207231', 'tblTempVendorCDR_20' ) end [2025-01-09 04:48:21] Production.INFO: ProcessCDR(1,14207231,1,1,2) [2025-01-09 04:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207231', 'tblTempUsageDetail_20' ) start [2025-01-09 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207231', 'tblTempUsageDetail_20' ) end [2025-01-09 04:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:48:24] Production.INFO: ==22472== Releasing lock... [2025-01-09 04:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:48:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:49:04 [end_date_ymd] => 2025-01-09 04:49:04 [RateCDR] => 1 ) [2025-01-09 04:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:49:04' and `end` < '2025-01-09 04:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:49:20] Production.INFO: count ==109 [2025-01-09 04:49:20] Production.ERROR: pbx CDR StartTime 2025-01-09 01:49:04 - End Time 2025-01-09 04:49:04 [2025-01-09 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207236', 'tblTempUsageDetail_20' ) start [2025-01-09 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207236', 'tblTempUsageDetail_20' ) end [2025-01-09 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207236', 'tblTempVendorCDR_20' ) start [2025-01-09 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207236', 'tblTempVendorCDR_20' ) end [2025-01-09 04:49:20] Production.INFO: ProcessCDR(1,14207236,1,1,2) [2025-01-09 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207236', 'tblTempUsageDetail_20' ) start [2025-01-09 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207236', 'tblTempUsageDetail_20' ) end [2025-01-09 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:49:23] Production.INFO: ==22542== Releasing lock... [2025-01-09 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:49:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:50:05 [end_date_ymd] => 2025-01-09 04:50:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:50:05' and `end` < '2025-01-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-01-09 04:50:21] Production.INFO: count ==111 [2025-01-09 04:50:21] Production.ERROR: pbx CDR StartTime 2025-01-09 01:50:05 - End Time 2025-01-09 04:50:05 [2025-01-09 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207241', 'tblTempUsageDetail_20' ) start [2025-01-09 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207241', 'tblTempUsageDetail_20' ) end [2025-01-09 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207241', 'tblTempVendorCDR_20' ) start [2025-01-09 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207241', 'tblTempVendorCDR_20' ) end [2025-01-09 04:50:21] Production.INFO: ProcessCDR(1,14207241,1,1,2) [2025-01-09 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207241', 'tblTempUsageDetail_20' ) start [2025-01-09 04:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207241', 'tblTempUsageDetail_20' ) end [2025-01-09 04:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:50:24] Production.INFO: ==22615== Releasing lock... [2025-01-09 04:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:50:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:51:04 [end_date_ymd] => 2025-01-09 04:51:04 [RateCDR] => 1 ) [2025-01-09 04:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:51:04' and `end` < '2025-01-09 04:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:51:19] Production.INFO: count ==111 [2025-01-09 04:51:19] Production.ERROR: pbx CDR StartTime 2025-01-09 01:51:04 - End Time 2025-01-09 04:51:04 [2025-01-09 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207247', 'tblTempUsageDetail_20' ) start [2025-01-09 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207247', 'tblTempUsageDetail_20' ) end [2025-01-09 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207247', 'tblTempVendorCDR_20' ) start [2025-01-09 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207247', 'tblTempVendorCDR_20' ) end [2025-01-09 04:51:19] Production.INFO: ProcessCDR(1,14207247,1,1,2) [2025-01-09 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207247', 'tblTempUsageDetail_20' ) start [2025-01-09 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207247', 'tblTempUsageDetail_20' ) end [2025-01-09 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:51:22] Production.INFO: ==22695== Releasing lock... [2025-01-09 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:52:06 [end_date_ymd] => 2025-01-09 04:52:06 [RateCDR] => 1 ) [2025-01-09 04:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:52:06' and `end` < '2025-01-09 04:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:52:22] Production.INFO: count ==111 [2025-01-09 04:52:22] Production.ERROR: pbx CDR StartTime 2025-01-09 01:52:06 - End Time 2025-01-09 04:52:06 [2025-01-09 04:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207252', 'tblTempUsageDetail_20' ) start [2025-01-09 04:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207252', 'tblTempUsageDetail_20' ) end [2025-01-09 04:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207252', 'tblTempVendorCDR_20' ) start [2025-01-09 04:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207252', 'tblTempVendorCDR_20' ) end [2025-01-09 04:52:22] Production.INFO: ProcessCDR(1,14207252,1,1,2) [2025-01-09 04:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207252', 'tblTempUsageDetail_20' ) start [2025-01-09 04:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207252', 'tblTempUsageDetail_20' ) end [2025-01-09 04:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:52:25] Production.INFO: ==22767== Releasing lock... [2025-01-09 04:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:52:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:53:05 [end_date_ymd] => 2025-01-09 04:53:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:53:05' and `end` < '2025-01-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-01-09 04:53:21] Production.INFO: count ==111 [2025-01-09 04:53:21] Production.ERROR: pbx CDR StartTime 2025-01-09 01:53:05 - End Time 2025-01-09 04:53:05 [2025-01-09 04:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207257', 'tblTempUsageDetail_20' ) start [2025-01-09 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207257', 'tblTempUsageDetail_20' ) end [2025-01-09 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207257', 'tblTempVendorCDR_20' ) start [2025-01-09 04:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207257', 'tblTempVendorCDR_20' ) end [2025-01-09 04:53:21] Production.INFO: ProcessCDR(1,14207257,1,1,2) [2025-01-09 04:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207257', 'tblTempUsageDetail_20' ) start [2025-01-09 04:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207257', 'tblTempUsageDetail_20' ) end [2025-01-09 04:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:53:24] Production.INFO: ==22838== Releasing lock... [2025-01-09 04:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:53:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:54:05 [end_date_ymd] => 2025-01-09 04:54:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:54:05' and `end` < '2025-01-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-01-09 04:54:21] Production.INFO: count ==111 [2025-01-09 04:54:21] Production.ERROR: pbx CDR StartTime 2025-01-09 01:54:05 - End Time 2025-01-09 04:54:05 [2025-01-09 04:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207262', 'tblTempUsageDetail_20' ) start [2025-01-09 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207262', 'tblTempUsageDetail_20' ) end [2025-01-09 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207262', 'tblTempVendorCDR_20' ) start [2025-01-09 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207262', 'tblTempVendorCDR_20' ) end [2025-01-09 04:54:21] Production.INFO: ProcessCDR(1,14207262,1,1,2) [2025-01-09 04:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207262', 'tblTempUsageDetail_20' ) start [2025-01-09 04:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207262', 'tblTempUsageDetail_20' ) end [2025-01-09 04:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:54:25] Production.INFO: ==22909== Releasing lock... [2025-01-09 04:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:54:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:55:04 [end_date_ymd] => 2025-01-09 04:55:04 [RateCDR] => 1 ) [2025-01-09 04:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:55:04' and `end` < '2025-01-09 04:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:55:20] Production.INFO: count ==111 [2025-01-09 04:55:20] Production.ERROR: pbx CDR StartTime 2025-01-09 01:55:04 - End Time 2025-01-09 04:55:04 [2025-01-09 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207267', 'tblTempUsageDetail_20' ) start [2025-01-09 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207267', 'tblTempUsageDetail_20' ) end [2025-01-09 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207267', 'tblTempVendorCDR_20' ) start [2025-01-09 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207267', 'tblTempVendorCDR_20' ) end [2025-01-09 04:55:20] Production.INFO: ProcessCDR(1,14207267,1,1,2) [2025-01-09 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207267', 'tblTempUsageDetail_20' ) start [2025-01-09 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207267', 'tblTempUsageDetail_20' ) end [2025-01-09 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:55:23] Production.INFO: ==22989== Releasing lock... [2025-01-09 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:55:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:56:04 [end_date_ymd] => 2025-01-09 04:56:04 [RateCDR] => 1 ) [2025-01-09 04:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 01:56:04' and `end` < '2025-01-09 04:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 04:56:21] Production.INFO: count ==111 [2025-01-09 04:56:21] Production.ERROR: pbx CDR StartTime 2025-01-09 01:56:04 - End Time 2025-01-09 04:56:04 [2025-01-09 04:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207272', 'tblTempUsageDetail_20' ) start [2025-01-09 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207272', 'tblTempUsageDetail_20' ) end [2025-01-09 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207272', 'tblTempVendorCDR_20' ) start [2025-01-09 04:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207272', 'tblTempVendorCDR_20' ) end [2025-01-09 04:56:21] Production.INFO: ProcessCDR(1,14207272,1,1,2) [2025-01-09 04:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207272', 'tblTempUsageDetail_20' ) start [2025-01-09 04:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207272', 'tblTempUsageDetail_20' ) end [2025-01-09 04:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:56:24] Production.INFO: ==23092== Releasing lock... [2025-01-09 04:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:56:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:57:05 [end_date_ymd] => 2025-01-09 04:57:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:57:05' and `end` < '2025-01-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-01-09 04:57:21] Production.INFO: count ==111 [2025-01-09 04:57:21] Production.ERROR: pbx CDR StartTime 2025-01-09 01:57:05 - End Time 2025-01-09 04:57:05 [2025-01-09 04:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207277', 'tblTempUsageDetail_20' ) start [2025-01-09 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207277', 'tblTempUsageDetail_20' ) end [2025-01-09 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207277', 'tblTempVendorCDR_20' ) start [2025-01-09 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207277', 'tblTempVendorCDR_20' ) end [2025-01-09 04:57:21] Production.INFO: ProcessCDR(1,14207277,1,1,2) [2025-01-09 04:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207277', 'tblTempUsageDetail_20' ) start [2025-01-09 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207277', 'tblTempUsageDetail_20' ) end [2025-01-09 04:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:57:24] Production.INFO: ==23193== Releasing lock... [2025-01-09 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:57:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:58:05 [end_date_ymd] => 2025-01-09 04:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:58:05' and `end` < '2025-01-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-01-09 04:58:20] Production.INFO: count ==111 [2025-01-09 04:58:20] Production.ERROR: pbx CDR StartTime 2025-01-09 01:58:05 - End Time 2025-01-09 04:58:05 [2025-01-09 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207282', 'tblTempUsageDetail_20' ) start [2025-01-09 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207282', 'tblTempUsageDetail_20' ) end [2025-01-09 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207282', 'tblTempVendorCDR_20' ) start [2025-01-09 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207282', 'tblTempVendorCDR_20' ) end [2025-01-09 04:58:20] Production.INFO: ProcessCDR(1,14207282,1,1,2) [2025-01-09 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207282', 'tblTempUsageDetail_20' ) start [2025-01-09 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207282', 'tblTempUsageDetail_20' ) end [2025-01-09 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:58:23] Production.INFO: ==23299== Releasing lock... [2025-01-09 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:58:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 01:59:05 [end_date_ymd] => 2025-01-09 04:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 01:59:05' and `end` < '2025-01-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-01-09 04:59:20] Production.INFO: count ==111 [2025-01-09 04:59:20] Production.ERROR: pbx CDR StartTime 2025-01-09 01:59:05 - End Time 2025-01-09 04:59:05 [2025-01-09 04:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207287', 'tblTempUsageDetail_20' ) start [2025-01-09 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207287', 'tblTempUsageDetail_20' ) end [2025-01-09 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207287', 'tblTempVendorCDR_20' ) start [2025-01-09 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207287', 'tblTempVendorCDR_20' ) end [2025-01-09 04:59:20] Production.INFO: ProcessCDR(1,14207287,1,1,2) [2025-01-09 04:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 04:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207287', 'tblTempUsageDetail_20' ) start [2025-01-09 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207287', 'tblTempUsageDetail_20' ) end [2025-01-09 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 04:59:23] Production.INFO: ==23402== Releasing lock... [2025-01-09 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 04:59:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:00:05 [end_date_ymd] => 2025-01-09 05:00:05 [RateCDR] => 1 ) [2025-01-09 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:00:05' and `end` < '2025-01-09 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:00:21] Production.INFO: count ==108 [2025-01-09 05:00:21] Production.ERROR: pbx CDR StartTime 2025-01-09 02:00:05 - End Time 2025-01-09 05:00:05 [2025-01-09 05:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207292', 'tblTempUsageDetail_20' ) start [2025-01-09 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207292', 'tblTempUsageDetail_20' ) end [2025-01-09 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207292', 'tblTempVendorCDR_20' ) start [2025-01-09 05:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207292', 'tblTempVendorCDR_20' ) end [2025-01-09 05:00:21] Production.INFO: ProcessCDR(1,14207292,1,1,2) [2025-01-09 05:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207292', 'tblTempUsageDetail_20' ) start [2025-01-09 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207292', 'tblTempUsageDetail_20' ) end [2025-01-09 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:00:24] Production.INFO: ==23541== Releasing lock... [2025-01-09 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:00:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:01:05 [end_date_ymd] => 2025-01-09 05:01:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:01:05' and `end` < '2025-01-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-01-09 05:01:20] Production.INFO: count ==108 [2025-01-09 05:01:20] Production.ERROR: pbx CDR StartTime 2025-01-09 02:01:05 - End Time 2025-01-09 05:01:05 [2025-01-09 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207298', 'tblTempUsageDetail_20' ) start [2025-01-09 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207298', 'tblTempUsageDetail_20' ) end [2025-01-09 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207298', 'tblTempVendorCDR_20' ) start [2025-01-09 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207298', 'tblTempVendorCDR_20' ) end [2025-01-09 05:01:20] Production.INFO: ProcessCDR(1,14207298,1,1,2) [2025-01-09 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207298', 'tblTempUsageDetail_20' ) start [2025-01-09 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207298', 'tblTempUsageDetail_20' ) end [2025-01-09 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:01:23] Production.INFO: ==23645== Releasing lock... [2025-01-09 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:01:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:02:06 [end_date_ymd] => 2025-01-09 05:02:06 [RateCDR] => 1 ) [2025-01-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-01-09 02:02:06' and `end` < '2025-01-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-01-09 05:02:21] Production.INFO: count ==108 [2025-01-09 05:02:21] Production.ERROR: pbx CDR StartTime 2025-01-09 02:02:06 - End Time 2025-01-09 05:02:06 [2025-01-09 05:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207303', 'tblTempUsageDetail_20' ) start [2025-01-09 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207303', 'tblTempUsageDetail_20' ) end [2025-01-09 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207303', 'tblTempVendorCDR_20' ) start [2025-01-09 05:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207303', 'tblTempVendorCDR_20' ) end [2025-01-09 05:02:21] Production.INFO: ProcessCDR(1,14207303,1,1,2) [2025-01-09 05:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207303', 'tblTempUsageDetail_20' ) start [2025-01-09 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207303', 'tblTempUsageDetail_20' ) end [2025-01-09 05:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:02:24] Production.INFO: ==23737== Releasing lock... [2025-01-09 05:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:02:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:03:05 [end_date_ymd] => 2025-01-09 05:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:03:05' and `end` < '2025-01-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-01-09 05:03:20] Production.INFO: count ==108 [2025-01-09 05:03:20] Production.ERROR: pbx CDR StartTime 2025-01-09 02:03:05 - End Time 2025-01-09 05:03:05 [2025-01-09 05:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207308', 'tblTempUsageDetail_20' ) start [2025-01-09 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207308', 'tblTempUsageDetail_20' ) end [2025-01-09 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207308', 'tblTempVendorCDR_20' ) start [2025-01-09 05:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207308', 'tblTempVendorCDR_20' ) end [2025-01-09 05:03:20] Production.INFO: ProcessCDR(1,14207308,1,1,2) [2025-01-09 05:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207308', 'tblTempUsageDetail_20' ) start [2025-01-09 05:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207308', 'tblTempUsageDetail_20' ) end [2025-01-09 05:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:03:23] Production.INFO: ==23828== Releasing lock... [2025-01-09 05:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:03:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:04:05 [end_date_ymd] => 2025-01-09 05:04:05 [RateCDR] => 1 ) [2025-01-09 05:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:04:05' and `end` < '2025-01-09 05:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:04:19] Production.INFO: count ==108 [2025-01-09 05:04:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:04:05 - End Time 2025-01-09 05:04:05 [2025-01-09 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207313', 'tblTempUsageDetail_20' ) start [2025-01-09 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207313', 'tblTempUsageDetail_20' ) end [2025-01-09 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207313', 'tblTempVendorCDR_20' ) start [2025-01-09 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207313', 'tblTempVendorCDR_20' ) end [2025-01-09 05:04:19] Production.INFO: ProcessCDR(1,14207313,1,1,2) [2025-01-09 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207313', 'tblTempUsageDetail_20' ) start [2025-01-09 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207313', 'tblTempUsageDetail_20' ) end [2025-01-09 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:04:22] Production.INFO: ==23923== Releasing lock... [2025-01-09 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:04:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:05:05 [end_date_ymd] => 2025-01-09 05:05:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:05:05' and `end` < '2025-01-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-01-09 05:05:17] Production.INFO: count ==108 [2025-01-09 05:05:17] Production.ERROR: pbx CDR StartTime 2025-01-09 02:05:05 - End Time 2025-01-09 05:05:05 [2025-01-09 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207318', 'tblTempUsageDetail_20' ) start [2025-01-09 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207318', 'tblTempUsageDetail_20' ) end [2025-01-09 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207318', 'tblTempVendorCDR_20' ) start [2025-01-09 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207318', 'tblTempVendorCDR_20' ) end [2025-01-09 05:05:17] Production.INFO: ProcessCDR(1,14207318,1,1,2) [2025-01-09 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207318', 'tblTempUsageDetail_20' ) start [2025-01-09 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207318', 'tblTempUsageDetail_20' ) end [2025-01-09 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:05:21] Production.INFO: ==24017== Releasing lock... [2025-01-09 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:05:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:06:05 [end_date_ymd] => 2025-01-09 05:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:06:05' and `end` < '2025-01-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-01-09 05:06:19] Production.INFO: count ==108 [2025-01-09 05:06:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:06:05 - End Time 2025-01-09 05:06:05 [2025-01-09 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207323', 'tblTempUsageDetail_20' ) start [2025-01-09 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207323', 'tblTempUsageDetail_20' ) end [2025-01-09 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207323', 'tblTempVendorCDR_20' ) start [2025-01-09 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207323', 'tblTempVendorCDR_20' ) end [2025-01-09 05:06:19] Production.INFO: ProcessCDR(1,14207323,1,1,2) [2025-01-09 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207323', 'tblTempUsageDetail_20' ) start [2025-01-09 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207323', 'tblTempUsageDetail_20' ) end [2025-01-09 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:06:22] Production.INFO: ==24115== Releasing lock... [2025-01-09 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:07:05 [end_date_ymd] => 2025-01-09 05:07:05 [RateCDR] => 1 ) [2025-01-09 05:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:07:05' and `end` < '2025-01-09 05:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:07:47] Production.INFO: count ==107 [2025-01-09 05:07:47] Production.ERROR: pbx CDR StartTime 2025-01-09 02:07:05 - End Time 2025-01-09 05:07:05 [2025-01-09 05:07:47] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:07:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207328', 'tblTempUsageDetail_20' ) start [2025-01-09 05:07:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207328', 'tblTempUsageDetail_20' ) end [2025-01-09 05:07:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207328', 'tblTempVendorCDR_20' ) start [2025-01-09 05:07:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207328', 'tblTempVendorCDR_20' ) end [2025-01-09 05:07:47] Production.INFO: ProcessCDR(1,14207328,1,1,2) [2025-01-09 05:07:47] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:07:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:07:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:07:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:07:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207328', 'tblTempUsageDetail_20' ) start [2025-01-09 05:07:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207328', 'tblTempUsageDetail_20' ) end [2025-01-09 05:07:51] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:07:51] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:07:51] Production.INFO: ==24208== Releasing lock... [2025-01-09 05:07:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:07:51] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:08:05 [end_date_ymd] => 2025-01-09 05:08:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:08:05' and `end` < '2025-01-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-01-09 05:08:19] Production.INFO: count ==106 [2025-01-09 05:08:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:08:05 - End Time 2025-01-09 05:08:05 [2025-01-09 05:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207333', 'tblTempUsageDetail_20' ) start [2025-01-09 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207333', 'tblTempUsageDetail_20' ) end [2025-01-09 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207333', 'tblTempVendorCDR_20' ) start [2025-01-09 05:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207333', 'tblTempVendorCDR_20' ) end [2025-01-09 05:08:19] Production.INFO: ProcessCDR(1,14207333,1,1,2) [2025-01-09 05:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207333', 'tblTempUsageDetail_20' ) start [2025-01-09 05:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207333', 'tblTempUsageDetail_20' ) end [2025-01-09 05:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:08:23] Production.INFO: ==24299== Releasing lock... [2025-01-09 05:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:08:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:09:04 [end_date_ymd] => 2025-01-09 05:09:04 [RateCDR] => 1 ) [2025-01-09 05:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:09:04' and `end` < '2025-01-09 05:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:09:19] Production.INFO: count ==106 [2025-01-09 05:09:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:09:04 - End Time 2025-01-09 05:09:04 [2025-01-09 05:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207338', 'tblTempUsageDetail_20' ) start [2025-01-09 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207338', 'tblTempUsageDetail_20' ) end [2025-01-09 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207338', 'tblTempVendorCDR_20' ) start [2025-01-09 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207338', 'tblTempVendorCDR_20' ) end [2025-01-09 05:09:19] Production.INFO: ProcessCDR(1,14207338,1,1,2) [2025-01-09 05:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207338', 'tblTempUsageDetail_20' ) start [2025-01-09 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207338', 'tblTempUsageDetail_20' ) end [2025-01-09 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:09:22] Production.INFO: ==24389== Releasing lock... [2025-01-09 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:09:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:10:06 [end_date_ymd] => 2025-01-09 05:10:06 [RateCDR] => 1 ) [2025-01-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-01-09 02:10:06' and `end` < '2025-01-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-01-09 05:10:19] Production.INFO: count ==106 [2025-01-09 05:10:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:10:06 - End Time 2025-01-09 05:10:06 [2025-01-09 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207344', 'tblTempUsageDetail_20' ) start [2025-01-09 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207344', 'tblTempUsageDetail_20' ) end [2025-01-09 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207344', 'tblTempVendorCDR_20' ) start [2025-01-09 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207344', 'tblTempVendorCDR_20' ) end [2025-01-09 05:10:19] Production.INFO: ProcessCDR(1,14207344,1,1,2) [2025-01-09 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207344', 'tblTempUsageDetail_20' ) start [2025-01-09 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207344', 'tblTempUsageDetail_20' ) end [2025-01-09 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:10:22] Production.INFO: ==24483== Releasing lock... [2025-01-09 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:10:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:11:05 [end_date_ymd] => 2025-01-09 05:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:11:05' and `end` < '2025-01-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-01-09 05:11:18] Production.INFO: count ==106 [2025-01-09 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:11:05 - End Time 2025-01-09 05:11:05 [2025-01-09 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207349', 'tblTempUsageDetail_20' ) start [2025-01-09 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207349', 'tblTempUsageDetail_20' ) end [2025-01-09 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207349', 'tblTempVendorCDR_20' ) start [2025-01-09 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207349', 'tblTempVendorCDR_20' ) end [2025-01-09 05:11:18] Production.INFO: ProcessCDR(1,14207349,1,1,2) [2025-01-09 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207349', 'tblTempUsageDetail_20' ) start [2025-01-09 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207349', 'tblTempUsageDetail_20' ) end [2025-01-09 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:11:21] Production.INFO: ==24574== Releasing lock... [2025-01-09 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:11:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:12:05 [end_date_ymd] => 2025-01-09 05:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:12:05' and `end` < '2025-01-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-01-09 05:12:18] Production.INFO: count ==106 [2025-01-09 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:12:05 - End Time 2025-01-09 05:12:05 [2025-01-09 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207354', 'tblTempUsageDetail_20' ) start [2025-01-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207354', 'tblTempUsageDetail_20' ) end [2025-01-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207354', 'tblTempVendorCDR_20' ) start [2025-01-09 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207354', 'tblTempVendorCDR_20' ) end [2025-01-09 05:12:18] Production.INFO: ProcessCDR(1,14207354,1,1,2) [2025-01-09 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207354', 'tblTempUsageDetail_20' ) start [2025-01-09 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207354', 'tblTempUsageDetail_20' ) end [2025-01-09 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:12:21] Production.INFO: ==24665== Releasing lock... [2025-01-09 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:12:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:13:05 [end_date_ymd] => 2025-01-09 05:13:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:13:05' and `end` < '2025-01-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-01-09 05:13:20] Production.INFO: count ==106 [2025-01-09 05:13:20] Production.ERROR: pbx CDR StartTime 2025-01-09 02:13:05 - End Time 2025-01-09 05:13:05 [2025-01-09 05:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207359', 'tblTempUsageDetail_20' ) start [2025-01-09 05:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207359', 'tblTempUsageDetail_20' ) end [2025-01-09 05:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207359', 'tblTempVendorCDR_20' ) start [2025-01-09 05:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207359', 'tblTempVendorCDR_20' ) end [2025-01-09 05:13:20] Production.INFO: ProcessCDR(1,14207359,1,1,2) [2025-01-09 05:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207359', 'tblTempUsageDetail_20' ) start [2025-01-09 05:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207359', 'tblTempUsageDetail_20' ) end [2025-01-09 05:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:13:23] Production.INFO: ==24754== Releasing lock... [2025-01-09 05:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:13:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:14:05 [end_date_ymd] => 2025-01-09 05:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:14:05' and `end` < '2025-01-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-01-09 05:14:18] Production.INFO: count ==106 [2025-01-09 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:14:05 - End Time 2025-01-09 05:14:05 [2025-01-09 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207364', 'tblTempUsageDetail_20' ) start [2025-01-09 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207364', 'tblTempUsageDetail_20' ) end [2025-01-09 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207364', 'tblTempVendorCDR_20' ) start [2025-01-09 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207364', 'tblTempVendorCDR_20' ) end [2025-01-09 05:14:18] Production.INFO: ProcessCDR(1,14207364,1,1,2) [2025-01-09 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207364', 'tblTempUsageDetail_20' ) start [2025-01-09 05:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207364', 'tblTempUsageDetail_20' ) end [2025-01-09 05:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:14:22] Production.INFO: ==24843== Releasing lock... [2025-01-09 05:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:15:06 [end_date_ymd] => 2025-01-09 05:15:06 [RateCDR] => 1 ) [2025-01-09 05:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:15:06' and `end` < '2025-01-09 05:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:15:19] Production.INFO: count ==106 [2025-01-09 05:15:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:15:06 - End Time 2025-01-09 05:15:06 [2025-01-09 05:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207369', 'tblTempUsageDetail_20' ) start [2025-01-09 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207369', 'tblTempUsageDetail_20' ) end [2025-01-09 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207369', 'tblTempVendorCDR_20' ) start [2025-01-09 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207369', 'tblTempVendorCDR_20' ) end [2025-01-09 05:15:19] Production.INFO: ProcessCDR(1,14207369,1,1,2) [2025-01-09 05:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207369', 'tblTempUsageDetail_20' ) start [2025-01-09 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207369', 'tblTempUsageDetail_20' ) end [2025-01-09 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:15:22] Production.INFO: ==24933== Releasing lock... [2025-01-09 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:15:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:16:05 [end_date_ymd] => 2025-01-09 05:16:05 [RateCDR] => 1 ) [2025-01-09 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:16:05' and `end` < '2025-01-09 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:16:18] Production.INFO: count ==106 [2025-01-09 05:16:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:16:05 - End Time 2025-01-09 05:16:05 [2025-01-09 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207374', 'tblTempUsageDetail_20' ) start [2025-01-09 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207374', 'tblTempUsageDetail_20' ) end [2025-01-09 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207374', 'tblTempVendorCDR_20' ) start [2025-01-09 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207374', 'tblTempVendorCDR_20' ) end [2025-01-09 05:16:18] Production.INFO: ProcessCDR(1,14207374,1,1,2) [2025-01-09 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207374', 'tblTempUsageDetail_20' ) start [2025-01-09 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207374', 'tblTempUsageDetail_20' ) end [2025-01-09 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:16:21] Production.INFO: ==25058== Releasing lock... [2025-01-09 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:17:05 [end_date_ymd] => 2025-01-09 05:17:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:17:05' and `end` < '2025-01-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-01-09 05:17:19] Production.INFO: count ==106 [2025-01-09 05:17:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:17:05 - End Time 2025-01-09 05:17:05 [2025-01-09 05:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207379', 'tblTempUsageDetail_20' ) start [2025-01-09 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207379', 'tblTempUsageDetail_20' ) end [2025-01-09 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207379', 'tblTempVendorCDR_20' ) start [2025-01-09 05:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207379', 'tblTempVendorCDR_20' ) end [2025-01-09 05:17:19] Production.INFO: ProcessCDR(1,14207379,1,1,2) [2025-01-09 05:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207379', 'tblTempUsageDetail_20' ) start [2025-01-09 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207379', 'tblTempUsageDetail_20' ) end [2025-01-09 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:17:22] Production.INFO: ==25154== Releasing lock... [2025-01-09 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:18:05 [end_date_ymd] => 2025-01-09 05:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:18:05' and `end` < '2025-01-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-01-09 05:18:18] Production.INFO: count ==106 [2025-01-09 05:18:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:18:05 - End Time 2025-01-09 05:18:05 [2025-01-09 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207384', 'tblTempUsageDetail_20' ) start [2025-01-09 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207384', 'tblTempUsageDetail_20' ) end [2025-01-09 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207384', 'tblTempVendorCDR_20' ) start [2025-01-09 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207384', 'tblTempVendorCDR_20' ) end [2025-01-09 05:18:18] Production.INFO: ProcessCDR(1,14207384,1,1,2) [2025-01-09 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207384', 'tblTempUsageDetail_20' ) start [2025-01-09 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207384', 'tblTempUsageDetail_20' ) end [2025-01-09 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:18:21] Production.INFO: ==25229== Releasing lock... [2025-01-09 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:18:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:19:06 [end_date_ymd] => 2025-01-09 05:19:06 [RateCDR] => 1 ) [2025-01-09 05:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:19:06' and `end` < '2025-01-09 05:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:19:20] Production.INFO: count ==106 [2025-01-09 05:19:20] Production.ERROR: pbx CDR StartTime 2025-01-09 02:19:06 - End Time 2025-01-09 05:19:06 [2025-01-09 05:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207389', 'tblTempUsageDetail_20' ) start [2025-01-09 05:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207389', 'tblTempUsageDetail_20' ) end [2025-01-09 05:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207389', 'tblTempVendorCDR_20' ) start [2025-01-09 05:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207389', 'tblTempVendorCDR_20' ) end [2025-01-09 05:19:20] Production.INFO: ProcessCDR(1,14207389,1,1,2) [2025-01-09 05:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207389', 'tblTempUsageDetail_20' ) start [2025-01-09 05:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207389', 'tblTempUsageDetail_20' ) end [2025-01-09 05:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:19:23] Production.INFO: ==25300== Releasing lock... [2025-01-09 05:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:19:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:20:06 [end_date_ymd] => 2025-01-09 05:20:06 [RateCDR] => 1 ) [2025-01-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-01-09 02:20:06' and `end` < '2025-01-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-01-09 05:20:19] Production.INFO: count ==106 [2025-01-09 05:20:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:20:06 - End Time 2025-01-09 05:20:06 [2025-01-09 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207395', 'tblTempUsageDetail_20' ) start [2025-01-09 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207395', 'tblTempUsageDetail_20' ) end [2025-01-09 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207395', 'tblTempVendorCDR_20' ) start [2025-01-09 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207395', 'tblTempVendorCDR_20' ) end [2025-01-09 05:20:19] Production.INFO: ProcessCDR(1,14207395,1,1,2) [2025-01-09 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207395', 'tblTempUsageDetail_20' ) start [2025-01-09 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207395', 'tblTempUsageDetail_20' ) end [2025-01-09 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:20:22] Production.INFO: ==25373== Releasing lock... [2025-01-09 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:21:05 [end_date_ymd] => 2025-01-09 05:21:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:21:05' and `end` < '2025-01-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-01-09 05:21:18] Production.INFO: count ==106 [2025-01-09 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:21:05 - End Time 2025-01-09 05:21:05 [2025-01-09 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207400', 'tblTempUsageDetail_20' ) start [2025-01-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207400', 'tblTempUsageDetail_20' ) end [2025-01-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207400', 'tblTempVendorCDR_20' ) start [2025-01-09 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207400', 'tblTempVendorCDR_20' ) end [2025-01-09 05:21:18] Production.INFO: ProcessCDR(1,14207400,1,1,2) [2025-01-09 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207400', 'tblTempUsageDetail_20' ) start [2025-01-09 05:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207400', 'tblTempUsageDetail_20' ) end [2025-01-09 05:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:21:22] Production.INFO: ==25451== Releasing lock... [2025-01-09 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:21:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:22:05 [end_date_ymd] => 2025-01-09 05:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:22:05' and `end` < '2025-01-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-01-09 05:22:18] Production.INFO: count ==106 [2025-01-09 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:22:05 - End Time 2025-01-09 05:22:05 [2025-01-09 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207405', 'tblTempUsageDetail_20' ) start [2025-01-09 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207405', 'tblTempUsageDetail_20' ) end [2025-01-09 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207405', 'tblTempVendorCDR_20' ) start [2025-01-09 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207405', 'tblTempVendorCDR_20' ) end [2025-01-09 05:22:18] Production.INFO: ProcessCDR(1,14207405,1,1,2) [2025-01-09 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207405', 'tblTempUsageDetail_20' ) start [2025-01-09 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207405', 'tblTempUsageDetail_20' ) end [2025-01-09 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:22:21] Production.INFO: ==25544== Releasing lock... [2025-01-09 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:22:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:23:05 [end_date_ymd] => 2025-01-09 05:23:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:23:05' and `end` < '2025-01-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-01-09 05:23:19] Production.INFO: count ==106 [2025-01-09 05:23:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:23:05 - End Time 2025-01-09 05:23:05 [2025-01-09 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207410', 'tblTempUsageDetail_20' ) start [2025-01-09 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207410', 'tblTempUsageDetail_20' ) end [2025-01-09 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207410', 'tblTempVendorCDR_20' ) start [2025-01-09 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207410', 'tblTempVendorCDR_20' ) end [2025-01-09 05:23:19] Production.INFO: ProcessCDR(1,14207410,1,1,2) [2025-01-09 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207410', 'tblTempUsageDetail_20' ) start [2025-01-09 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207410', 'tblTempUsageDetail_20' ) end [2025-01-09 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:23:22] Production.INFO: ==25617== Releasing lock... [2025-01-09 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:23:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:24:05 [end_date_ymd] => 2025-01-09 05:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:24:05' and `end` < '2025-01-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-01-09 05:24:18] Production.INFO: count ==106 [2025-01-09 05:24:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:24:05 - End Time 2025-01-09 05:24:05 [2025-01-09 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207415', 'tblTempUsageDetail_20' ) start [2025-01-09 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207415', 'tblTempUsageDetail_20' ) end [2025-01-09 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207415', 'tblTempVendorCDR_20' ) start [2025-01-09 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207415', 'tblTempVendorCDR_20' ) end [2025-01-09 05:24:18] Production.INFO: ProcessCDR(1,14207415,1,1,2) [2025-01-09 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207415', 'tblTempUsageDetail_20' ) start [2025-01-09 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207415', 'tblTempUsageDetail_20' ) end [2025-01-09 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:24:21] Production.INFO: ==25688== Releasing lock... [2025-01-09 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:24:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:25:05 [end_date_ymd] => 2025-01-09 05:25:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:25:05' and `end` < '2025-01-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-01-09 05:25:18] Production.INFO: count ==106 [2025-01-09 05:25:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:25:05 - End Time 2025-01-09 05:25:05 [2025-01-09 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207420', 'tblTempUsageDetail_20' ) start [2025-01-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207420', 'tblTempUsageDetail_20' ) end [2025-01-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207420', 'tblTempVendorCDR_20' ) start [2025-01-09 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207420', 'tblTempVendorCDR_20' ) end [2025-01-09 05:25:18] Production.INFO: ProcessCDR(1,14207420,1,1,2) [2025-01-09 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207420', 'tblTempUsageDetail_20' ) start [2025-01-09 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207420', 'tblTempUsageDetail_20' ) end [2025-01-09 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:25:21] Production.INFO: ==25759== Releasing lock... [2025-01-09 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:26:05 [end_date_ymd] => 2025-01-09 05:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:26:05' and `end` < '2025-01-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-01-09 05:26:18] Production.INFO: count ==106 [2025-01-09 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:26:05 - End Time 2025-01-09 05:26:05 [2025-01-09 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207425', 'tblTempUsageDetail_20' ) start [2025-01-09 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207425', 'tblTempUsageDetail_20' ) end [2025-01-09 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207425', 'tblTempVendorCDR_20' ) start [2025-01-09 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207425', 'tblTempVendorCDR_20' ) end [2025-01-09 05:26:18] Production.INFO: ProcessCDR(1,14207425,1,1,2) [2025-01-09 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207425', 'tblTempUsageDetail_20' ) start [2025-01-09 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207425', 'tblTempUsageDetail_20' ) end [2025-01-09 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:26:21] Production.INFO: ==25829== Releasing lock... [2025-01-09 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:27:05 [end_date_ymd] => 2025-01-09 05:27:05 [RateCDR] => 1 ) [2025-01-09 05:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:27:05' and `end` < '2025-01-09 05:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:27:19] Production.INFO: count ==106 [2025-01-09 05:27:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:27:05 - End Time 2025-01-09 05:27:05 [2025-01-09 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207430', 'tblTempUsageDetail_20' ) start [2025-01-09 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207430', 'tblTempUsageDetail_20' ) end [2025-01-09 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207430', 'tblTempVendorCDR_20' ) start [2025-01-09 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207430', 'tblTempVendorCDR_20' ) end [2025-01-09 05:27:19] Production.INFO: ProcessCDR(1,14207430,1,1,2) [2025-01-09 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207430', 'tblTempUsageDetail_20' ) start [2025-01-09 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207430', 'tblTempUsageDetail_20' ) end [2025-01-09 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:27:22] Production.INFO: ==25900== Releasing lock... [2025-01-09 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:27:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:28:05 [end_date_ymd] => 2025-01-09 05:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:28:05' and `end` < '2025-01-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-01-09 05:28:18] Production.INFO: count ==106 [2025-01-09 05:28:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:28:05 - End Time 2025-01-09 05:28:05 [2025-01-09 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207435', 'tblTempUsageDetail_20' ) start [2025-01-09 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207435', 'tblTempUsageDetail_20' ) end [2025-01-09 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207435', 'tblTempVendorCDR_20' ) start [2025-01-09 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207435', 'tblTempVendorCDR_20' ) end [2025-01-09 05:28:18] Production.INFO: ProcessCDR(1,14207435,1,1,2) [2025-01-09 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207435', 'tblTempUsageDetail_20' ) start [2025-01-09 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207435', 'tblTempUsageDetail_20' ) end [2025-01-09 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:28:21] Production.INFO: ==25970== Releasing lock... [2025-01-09 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:29:05 [end_date_ymd] => 2025-01-09 05:29:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:29:05' and `end` < '2025-01-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-01-09 05:29:19] Production.INFO: count ==106 [2025-01-09 05:29:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:29:05 - End Time 2025-01-09 05:29:05 [2025-01-09 05:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207440', 'tblTempUsageDetail_20' ) start [2025-01-09 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207440', 'tblTempUsageDetail_20' ) end [2025-01-09 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207440', 'tblTempVendorCDR_20' ) start [2025-01-09 05:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207440', 'tblTempVendorCDR_20' ) end [2025-01-09 05:29:19] Production.INFO: ProcessCDR(1,14207440,1,1,2) [2025-01-09 05:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207440', 'tblTempUsageDetail_20' ) start [2025-01-09 05:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207440', 'tblTempUsageDetail_20' ) end [2025-01-09 05:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:29:22] Production.INFO: ==26044== Releasing lock... [2025-01-09 05:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:29:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:30:05 [end_date_ymd] => 2025-01-09 05:30:05 [RateCDR] => 1 ) [2025-01-09 05:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:30:05' and `end` < '2025-01-09 05:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:30:18] Production.INFO: count ==104 [2025-01-09 05:30:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:30:05 - End Time 2025-01-09 05:30:05 [2025-01-09 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207446', 'tblTempUsageDetail_20' ) start [2025-01-09 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207446', 'tblTempUsageDetail_20' ) end [2025-01-09 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207446', 'tblTempVendorCDR_20' ) start [2025-01-09 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207446', 'tblTempVendorCDR_20' ) end [2025-01-09 05:30:18] Production.INFO: ProcessCDR(1,14207446,1,1,2) [2025-01-09 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207446', 'tblTempUsageDetail_20' ) start [2025-01-09 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207446', 'tblTempUsageDetail_20' ) end [2025-01-09 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:30:21] Production.INFO: ==26115== Releasing lock... [2025-01-09 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:30:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:31:05 [end_date_ymd] => 2025-01-09 05:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:31:05' and `end` < '2025-01-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-01-09 05:31:18] Production.INFO: count ==104 [2025-01-09 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:31:05 - End Time 2025-01-09 05:31:05 [2025-01-09 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207451', 'tblTempUsageDetail_20' ) start [2025-01-09 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207451', 'tblTempUsageDetail_20' ) end [2025-01-09 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207451', 'tblTempVendorCDR_20' ) start [2025-01-09 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207451', 'tblTempVendorCDR_20' ) end [2025-01-09 05:31:18] Production.INFO: ProcessCDR(1,14207451,1,1,2) [2025-01-09 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207451', 'tblTempUsageDetail_20' ) start [2025-01-09 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207451', 'tblTempUsageDetail_20' ) end [2025-01-09 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:31:21] Production.INFO: ==26227== Releasing lock... [2025-01-09 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:31:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:32:05 [end_date_ymd] => 2025-01-09 05:32:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:32:05' and `end` < '2025-01-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-01-09 05:32:18] Production.INFO: count ==104 [2025-01-09 05:32:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:32:05 - End Time 2025-01-09 05:32:05 [2025-01-09 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207456', 'tblTempUsageDetail_20' ) start [2025-01-09 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207456', 'tblTempUsageDetail_20' ) end [2025-01-09 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207456', 'tblTempVendorCDR_20' ) start [2025-01-09 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207456', 'tblTempVendorCDR_20' ) end [2025-01-09 05:32:18] Production.INFO: ProcessCDR(1,14207456,1,1,2) [2025-01-09 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207456', 'tblTempUsageDetail_20' ) start [2025-01-09 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207456', 'tblTempUsageDetail_20' ) end [2025-01-09 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:32:21] Production.INFO: ==26299== Releasing lock... [2025-01-09 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:33:05 [end_date_ymd] => 2025-01-09 05:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:33:05' and `end` < '2025-01-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-01-09 05:33:18] Production.INFO: count ==104 [2025-01-09 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:33:05 - End Time 2025-01-09 05:33:05 [2025-01-09 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207461', 'tblTempUsageDetail_20' ) start [2025-01-09 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207461', 'tblTempUsageDetail_20' ) end [2025-01-09 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207461', 'tblTempVendorCDR_20' ) start [2025-01-09 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207461', 'tblTempVendorCDR_20' ) end [2025-01-09 05:33:18] Production.INFO: ProcessCDR(1,14207461,1,1,2) [2025-01-09 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207461', 'tblTempUsageDetail_20' ) start [2025-01-09 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207461', 'tblTempUsageDetail_20' ) end [2025-01-09 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:33:21] Production.INFO: ==26368== Releasing lock... [2025-01-09 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:34:05 [end_date_ymd] => 2025-01-09 05:34:05 [RateCDR] => 1 ) [2025-01-09 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:34:05' and `end` < '2025-01-09 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:34:18] Production.INFO: count ==104 [2025-01-09 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:34:05 - End Time 2025-01-09 05:34:05 [2025-01-09 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207466', 'tblTempUsageDetail_20' ) start [2025-01-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207466', 'tblTempUsageDetail_20' ) end [2025-01-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207466', 'tblTempVendorCDR_20' ) start [2025-01-09 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207466', 'tblTempVendorCDR_20' ) end [2025-01-09 05:34:18] Production.INFO: ProcessCDR(1,14207466,1,1,2) [2025-01-09 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207466', 'tblTempUsageDetail_20' ) start [2025-01-09 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207466', 'tblTempUsageDetail_20' ) end [2025-01-09 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:34:21] Production.INFO: ==26440== Releasing lock... [2025-01-09 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:34:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:35:05 [end_date_ymd] => 2025-01-09 05:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:35:05' and `end` < '2025-01-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-01-09 05:35:17] Production.INFO: count ==104 [2025-01-09 05:35:17] Production.ERROR: pbx CDR StartTime 2025-01-09 02:35:05 - End Time 2025-01-09 05:35:05 [2025-01-09 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207471', 'tblTempUsageDetail_20' ) start [2025-01-09 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207471', 'tblTempUsageDetail_20' ) end [2025-01-09 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207471', 'tblTempVendorCDR_20' ) start [2025-01-09 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207471', 'tblTempVendorCDR_20' ) end [2025-01-09 05:35:17] Production.INFO: ProcessCDR(1,14207471,1,1,2) [2025-01-09 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207471', 'tblTempUsageDetail_20' ) start [2025-01-09 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207471', 'tblTempUsageDetail_20' ) end [2025-01-09 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:35:21] Production.INFO: ==26515== Releasing lock... [2025-01-09 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:36:05 [end_date_ymd] => 2025-01-09 05:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:36:05' and `end` < '2025-01-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-01-09 05:36:18] Production.INFO: count ==104 [2025-01-09 05:36:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:36:05 - End Time 2025-01-09 05:36:05 [2025-01-09 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207476', 'tblTempUsageDetail_20' ) start [2025-01-09 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207476', 'tblTempUsageDetail_20' ) end [2025-01-09 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207476', 'tblTempVendorCDR_20' ) start [2025-01-09 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207476', 'tblTempVendorCDR_20' ) end [2025-01-09 05:36:18] Production.INFO: ProcessCDR(1,14207476,1,1,2) [2025-01-09 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207476', 'tblTempUsageDetail_20' ) start [2025-01-09 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207476', 'tblTempUsageDetail_20' ) end [2025-01-09 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:36:21] Production.INFO: ==26586== Releasing lock... [2025-01-09 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:36:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:37:05 [end_date_ymd] => 2025-01-09 05:37:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:37:05' and `end` < '2025-01-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-01-09 05:37:19] Production.INFO: count ==104 [2025-01-09 05:37:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:37:05 - End Time 2025-01-09 05:37:05 [2025-01-09 05:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207481', 'tblTempUsageDetail_20' ) start [2025-01-09 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207481', 'tblTempUsageDetail_20' ) end [2025-01-09 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207481', 'tblTempVendorCDR_20' ) start [2025-01-09 05:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207481', 'tblTempVendorCDR_20' ) end [2025-01-09 05:37:19] Production.INFO: ProcessCDR(1,14207481,1,1,2) [2025-01-09 05:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207481', 'tblTempUsageDetail_20' ) start [2025-01-09 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207481', 'tblTempUsageDetail_20' ) end [2025-01-09 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:37:22] Production.INFO: ==26658== Releasing lock... [2025-01-09 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:37:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:38:05 [end_date_ymd] => 2025-01-09 05:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:38:05' and `end` < '2025-01-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-01-09 05:38:18] Production.INFO: count ==105 [2025-01-09 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:38:05 - End Time 2025-01-09 05:38:05 [2025-01-09 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207486', 'tblTempUsageDetail_20' ) start [2025-01-09 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207486', 'tblTempUsageDetail_20' ) end [2025-01-09 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207486', 'tblTempVendorCDR_20' ) start [2025-01-09 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207486', 'tblTempVendorCDR_20' ) end [2025-01-09 05:38:18] Production.INFO: ProcessCDR(1,14207486,1,1,2) [2025-01-09 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207486', 'tblTempUsageDetail_20' ) start [2025-01-09 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207486', 'tblTempUsageDetail_20' ) end [2025-01-09 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:38:22] Production.INFO: ==26730== Releasing lock... [2025-01-09 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:38:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:39:04 [end_date_ymd] => 2025-01-09 05:39:04 [RateCDR] => 1 ) [2025-01-09 05:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:39:04' and `end` < '2025-01-09 05:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:39:17] Production.INFO: count ==105 [2025-01-09 05:39:17] Production.ERROR: pbx CDR StartTime 2025-01-09 02:39:04 - End Time 2025-01-09 05:39:04 [2025-01-09 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207491', 'tblTempUsageDetail_20' ) start [2025-01-09 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207491', 'tblTempUsageDetail_20' ) end [2025-01-09 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207491', 'tblTempVendorCDR_20' ) start [2025-01-09 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207491', 'tblTempVendorCDR_20' ) end [2025-01-09 05:39:17] Production.INFO: ProcessCDR(1,14207491,1,1,2) [2025-01-09 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207491', 'tblTempUsageDetail_20' ) start [2025-01-09 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207491', 'tblTempUsageDetail_20' ) end [2025-01-09 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:39:20] Production.INFO: ==26801== Releasing lock... [2025-01-09 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:40:05 [end_date_ymd] => 2025-01-09 05:40:05 [RateCDR] => 1 ) [2025-01-09 05:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:40:05' and `end` < '2025-01-09 05:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:40:18] Production.INFO: count ==103 [2025-01-09 05:40:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:40:05 - End Time 2025-01-09 05:40:05 [2025-01-09 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207497', 'tblTempUsageDetail_20' ) start [2025-01-09 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207497', 'tblTempUsageDetail_20' ) end [2025-01-09 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207497', 'tblTempVendorCDR_20' ) start [2025-01-09 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207497', 'tblTempVendorCDR_20' ) end [2025-01-09 05:40:18] Production.INFO: ProcessCDR(1,14207497,1,1,2) [2025-01-09 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207497', 'tblTempUsageDetail_20' ) start [2025-01-09 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207497', 'tblTempUsageDetail_20' ) end [2025-01-09 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:40:21] Production.INFO: ==26874== Releasing lock... [2025-01-09 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:41:04 [end_date_ymd] => 2025-01-09 05:41:04 [RateCDR] => 1 ) [2025-01-09 05:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:41:04' and `end` < '2025-01-09 05:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:41:17] Production.INFO: count ==103 [2025-01-09 05:41:17] Production.ERROR: pbx CDR StartTime 2025-01-09 02:41:04 - End Time 2025-01-09 05:41:04 [2025-01-09 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207502', 'tblTempUsageDetail_20' ) start [2025-01-09 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207502', 'tblTempUsageDetail_20' ) end [2025-01-09 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207502', 'tblTempVendorCDR_20' ) start [2025-01-09 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207502', 'tblTempVendorCDR_20' ) end [2025-01-09 05:41:17] Production.INFO: ProcessCDR(1,14207502,1,1,2) [2025-01-09 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207502', 'tblTempUsageDetail_20' ) start [2025-01-09 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207502', 'tblTempUsageDetail_20' ) end [2025-01-09 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:41:21] Production.INFO: ==26947== Releasing lock... [2025-01-09 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:42:05 [end_date_ymd] => 2025-01-09 05:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:42:05' and `end` < '2025-01-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-01-09 05:42:18] Production.INFO: count ==103 [2025-01-09 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:42:05 - End Time 2025-01-09 05:42:05 [2025-01-09 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207507', 'tblTempUsageDetail_20' ) start [2025-01-09 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207507', 'tblTempUsageDetail_20' ) end [2025-01-09 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207507', 'tblTempVendorCDR_20' ) start [2025-01-09 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207507', 'tblTempVendorCDR_20' ) end [2025-01-09 05:42:18] Production.INFO: ProcessCDR(1,14207507,1,1,2) [2025-01-09 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207507', 'tblTempUsageDetail_20' ) start [2025-01-09 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207507', 'tblTempUsageDetail_20' ) end [2025-01-09 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:42:21] Production.INFO: ==27023== Releasing lock... [2025-01-09 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:43:04 [end_date_ymd] => 2025-01-09 05:43:04 [RateCDR] => 1 ) [2025-01-09 05:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:43:04' and `end` < '2025-01-09 05:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:43:18] Production.INFO: count ==97 [2025-01-09 05:43:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:43:04 - End Time 2025-01-09 05:43:04 [2025-01-09 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207512', 'tblTempUsageDetail_20' ) start [2025-01-09 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207512', 'tblTempUsageDetail_20' ) end [2025-01-09 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207512', 'tblTempVendorCDR_20' ) start [2025-01-09 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207512', 'tblTempVendorCDR_20' ) end [2025-01-09 05:43:18] Production.INFO: ProcessCDR(1,14207512,1,1,2) [2025-01-09 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207512', 'tblTempUsageDetail_20' ) start [2025-01-09 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207512', 'tblTempUsageDetail_20' ) end [2025-01-09 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:43:21] Production.INFO: ==27093== Releasing lock... [2025-01-09 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:44:05 [end_date_ymd] => 2025-01-09 05:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:44:05' and `end` < '2025-01-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-01-09 05:44:18] Production.INFO: count ==97 [2025-01-09 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:44:05 - End Time 2025-01-09 05:44:05 [2025-01-09 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207517', 'tblTempUsageDetail_20' ) start [2025-01-09 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207517', 'tblTempUsageDetail_20' ) end [2025-01-09 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207517', 'tblTempVendorCDR_20' ) start [2025-01-09 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207517', 'tblTempVendorCDR_20' ) end [2025-01-09 05:44:18] Production.INFO: ProcessCDR(1,14207517,1,1,2) [2025-01-09 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207517', 'tblTempUsageDetail_20' ) start [2025-01-09 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207517', 'tblTempUsageDetail_20' ) end [2025-01-09 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:44:21] Production.INFO: ==27167== Releasing lock... [2025-01-09 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:45:05 [end_date_ymd] => 2025-01-09 05:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:45:05' and `end` < '2025-01-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-01-09 05:45:18] Production.INFO: count ==96 [2025-01-09 05:45:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:45:05 - End Time 2025-01-09 05:45:05 [2025-01-09 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207522', 'tblTempUsageDetail_20' ) start [2025-01-09 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207522', 'tblTempUsageDetail_20' ) end [2025-01-09 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207522', 'tblTempVendorCDR_20' ) start [2025-01-09 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207522', 'tblTempVendorCDR_20' ) end [2025-01-09 05:45:18] Production.INFO: ProcessCDR(1,14207522,1,1,2) [2025-01-09 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207522', 'tblTempUsageDetail_20' ) start [2025-01-09 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207522', 'tblTempUsageDetail_20' ) end [2025-01-09 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:45:21] Production.INFO: ==27239== Releasing lock... [2025-01-09 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:45:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:46:05 [end_date_ymd] => 2025-01-09 05:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:46:05' and `end` < '2025-01-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-01-09 05:46:18] Production.INFO: count ==96 [2025-01-09 05:46:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:46:05 - End Time 2025-01-09 05:46:05 [2025-01-09 05:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207527', 'tblTempUsageDetail_20' ) start [2025-01-09 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207527', 'tblTempUsageDetail_20' ) end [2025-01-09 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207527', 'tblTempVendorCDR_20' ) start [2025-01-09 05:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207527', 'tblTempVendorCDR_20' ) end [2025-01-09 05:46:18] Production.INFO: ProcessCDR(1,14207527,1,1,2) [2025-01-09 05:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207527', 'tblTempUsageDetail_20' ) start [2025-01-09 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207527', 'tblTempUsageDetail_20' ) end [2025-01-09 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:46:21] Production.INFO: ==27309== Releasing lock... [2025-01-09 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:47:05 [end_date_ymd] => 2025-01-09 05:47:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:47:05' and `end` < '2025-01-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-01-09 05:47:19] Production.INFO: count ==96 [2025-01-09 05:47:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:47:05 - End Time 2025-01-09 05:47:05 [2025-01-09 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207532', 'tblTempUsageDetail_20' ) start [2025-01-09 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207532', 'tblTempUsageDetail_20' ) end [2025-01-09 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207532', 'tblTempVendorCDR_20' ) start [2025-01-09 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207532', 'tblTempVendorCDR_20' ) end [2025-01-09 05:47:19] Production.INFO: ProcessCDR(1,14207532,1,1,2) [2025-01-09 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207532', 'tblTempUsageDetail_20' ) start [2025-01-09 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207532', 'tblTempUsageDetail_20' ) end [2025-01-09 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:47:22] Production.INFO: ==27421== Releasing lock... [2025-01-09 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:47:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:48:05 [end_date_ymd] => 2025-01-09 05:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:48:05' and `end` < '2025-01-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-01-09 05:48:18] Production.INFO: count ==96 [2025-01-09 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:48:05 - End Time 2025-01-09 05:48:05 [2025-01-09 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207537', 'tblTempUsageDetail_20' ) start [2025-01-09 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207537', 'tblTempUsageDetail_20' ) end [2025-01-09 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207537', 'tblTempVendorCDR_20' ) start [2025-01-09 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207537', 'tblTempVendorCDR_20' ) end [2025-01-09 05:48:18] Production.INFO: ProcessCDR(1,14207537,1,1,2) [2025-01-09 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207537', 'tblTempUsageDetail_20' ) start [2025-01-09 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207537', 'tblTempUsageDetail_20' ) end [2025-01-09 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:48:21] Production.INFO: ==27492== Releasing lock... [2025-01-09 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:49:05 [end_date_ymd] => 2025-01-09 05:49:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:49:05' and `end` < '2025-01-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-01-09 05:49:19] Production.INFO: count ==96 [2025-01-09 05:49:19] Production.ERROR: pbx CDR StartTime 2025-01-09 02:49:05 - End Time 2025-01-09 05:49:05 [2025-01-09 05:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207542', 'tblTempUsageDetail_20' ) start [2025-01-09 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207542', 'tblTempUsageDetail_20' ) end [2025-01-09 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207542', 'tblTempVendorCDR_20' ) start [2025-01-09 05:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207542', 'tblTempVendorCDR_20' ) end [2025-01-09 05:49:19] Production.INFO: ProcessCDR(1,14207542,1,1,2) [2025-01-09 05:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207542', 'tblTempUsageDetail_20' ) start [2025-01-09 05:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207542', 'tblTempUsageDetail_20' ) end [2025-01-09 05:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:49:22] Production.INFO: ==27569== Releasing lock... [2025-01-09 05:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:49:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:50:05 [end_date_ymd] => 2025-01-09 05:50:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:50:05' and `end` < '2025-01-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-01-09 05:50:18] Production.INFO: count ==90 [2025-01-09 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:50:05 - End Time 2025-01-09 05:50:05 [2025-01-09 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207548', 'tblTempUsageDetail_20' ) start [2025-01-09 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207548', 'tblTempUsageDetail_20' ) end [2025-01-09 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207548', 'tblTempVendorCDR_20' ) start [2025-01-09 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207548', 'tblTempVendorCDR_20' ) end [2025-01-09 05:50:18] Production.INFO: ProcessCDR(1,14207548,1,1,2) [2025-01-09 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207548', 'tblTempUsageDetail_20' ) start [2025-01-09 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207548', 'tblTempUsageDetail_20' ) end [2025-01-09 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:50:21] Production.INFO: ==27643== Releasing lock... [2025-01-09 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:51:05 [end_date_ymd] => 2025-01-09 05:51:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:51:05' and `end` < '2025-01-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-01-09 05:51:18] Production.INFO: count ==84 [2025-01-09 05:51:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:51:05 - End Time 2025-01-09 05:51:05 [2025-01-09 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207553', 'tblTempUsageDetail_20' ) start [2025-01-09 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207553', 'tblTempUsageDetail_20' ) end [2025-01-09 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207553', 'tblTempVendorCDR_20' ) start [2025-01-09 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207553', 'tblTempVendorCDR_20' ) end [2025-01-09 05:51:18] Production.INFO: ProcessCDR(1,14207553,1,1,2) [2025-01-09 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207553', 'tblTempUsageDetail_20' ) start [2025-01-09 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207553', 'tblTempUsageDetail_20' ) end [2025-01-09 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:51:21] Production.INFO: ==27715== Releasing lock... [2025-01-09 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:51:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:52:05 [end_date_ymd] => 2025-01-09 05:52:05 [RateCDR] => 1 ) [2025-01-09 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:52:05' and `end` < '2025-01-09 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:52:18] Production.INFO: count ==84 [2025-01-09 05:52:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:52:05 - End Time 2025-01-09 05:52:05 [2025-01-09 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207558', 'tblTempUsageDetail_20' ) start [2025-01-09 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207558', 'tblTempUsageDetail_20' ) end [2025-01-09 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207558', 'tblTempVendorCDR_20' ) start [2025-01-09 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207558', 'tblTempVendorCDR_20' ) end [2025-01-09 05:52:18] Production.INFO: ProcessCDR(1,14207558,1,1,2) [2025-01-09 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207558', 'tblTempUsageDetail_20' ) start [2025-01-09 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207558', 'tblTempUsageDetail_20' ) end [2025-01-09 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:52:21] Production.INFO: ==27786== Releasing lock... [2025-01-09 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:52:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:53:05 [end_date_ymd] => 2025-01-09 05:53:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:53:05' and `end` < '2025-01-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-01-09 05:53:18] Production.INFO: count ==84 [2025-01-09 05:53:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:53:05 - End Time 2025-01-09 05:53:05 [2025-01-09 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207563', 'tblTempUsageDetail_20' ) start [2025-01-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207563', 'tblTempUsageDetail_20' ) end [2025-01-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207563', 'tblTempVendorCDR_20' ) start [2025-01-09 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207563', 'tblTempVendorCDR_20' ) end [2025-01-09 05:53:18] Production.INFO: ProcessCDR(1,14207563,1,1,2) [2025-01-09 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207563', 'tblTempUsageDetail_20' ) start [2025-01-09 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207563', 'tblTempUsageDetail_20' ) end [2025-01-09 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:53:21] Production.INFO: ==27856== Releasing lock... [2025-01-09 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:54:04 [end_date_ymd] => 2025-01-09 05:54:04 [RateCDR] => 1 ) [2025-01-09 05:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:54:04' and `end` < '2025-01-09 05:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:54:17] Production.INFO: count ==84 [2025-01-09 05:54:17] Production.ERROR: pbx CDR StartTime 2025-01-09 02:54:04 - End Time 2025-01-09 05:54:04 [2025-01-09 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207568', 'tblTempUsageDetail_20' ) start [2025-01-09 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207568', 'tblTempUsageDetail_20' ) end [2025-01-09 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207568', 'tblTempVendorCDR_20' ) start [2025-01-09 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207568', 'tblTempVendorCDR_20' ) end [2025-01-09 05:54:17] Production.INFO: ProcessCDR(1,14207568,1,1,2) [2025-01-09 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207568', 'tblTempUsageDetail_20' ) start [2025-01-09 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207568', 'tblTempUsageDetail_20' ) end [2025-01-09 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:54:20] Production.INFO: ==27926== Releasing lock... [2025-01-09 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:54:20] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:55:05 [end_date_ymd] => 2025-01-09 05:55:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:55:05' and `end` < '2025-01-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-01-09 05:55:18] Production.INFO: count ==84 [2025-01-09 05:55:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:55:05 - End Time 2025-01-09 05:55:05 [2025-01-09 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207573', 'tblTempUsageDetail_20' ) start [2025-01-09 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207573', 'tblTempUsageDetail_20' ) end [2025-01-09 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207573', 'tblTempVendorCDR_20' ) start [2025-01-09 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207573', 'tblTempVendorCDR_20' ) end [2025-01-09 05:55:18] Production.INFO: ProcessCDR(1,14207573,1,1,2) [2025-01-09 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207573', 'tblTempUsageDetail_20' ) start [2025-01-09 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207573', 'tblTempUsageDetail_20' ) end [2025-01-09 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:55:21] Production.INFO: ==27999== Releasing lock... [2025-01-09 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:55:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:56:06 [end_date_ymd] => 2025-01-09 05:56:06 [RateCDR] => 1 ) [2025-01-09 05:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:56:06' and `end` < '2025-01-09 05:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:56:18] Production.INFO: count ==84 [2025-01-09 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:56:06 - End Time 2025-01-09 05:56:06 [2025-01-09 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207578', 'tblTempUsageDetail_20' ) start [2025-01-09 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207578', 'tblTempUsageDetail_20' ) end [2025-01-09 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207578', 'tblTempVendorCDR_20' ) start [2025-01-09 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207578', 'tblTempVendorCDR_20' ) end [2025-01-09 05:56:18] Production.INFO: ProcessCDR(1,14207578,1,1,2) [2025-01-09 05:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207578', 'tblTempUsageDetail_20' ) start [2025-01-09 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207578', 'tblTempUsageDetail_20' ) end [2025-01-09 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:56:22] Production.INFO: ==28073== Releasing lock... [2025-01-09 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:56:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:57:04 [end_date_ymd] => 2025-01-09 05:57:04 [RateCDR] => 1 ) [2025-01-09 05:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 02:57:04' and `end` < '2025-01-09 05:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 05:57:18] Production.INFO: count ==84 [2025-01-09 05:57:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:57:04 - End Time 2025-01-09 05:57:04 [2025-01-09 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207583', 'tblTempUsageDetail_20' ) start [2025-01-09 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207583', 'tblTempUsageDetail_20' ) end [2025-01-09 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207583', 'tblTempVendorCDR_20' ) start [2025-01-09 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207583', 'tblTempVendorCDR_20' ) end [2025-01-09 05:57:18] Production.INFO: ProcessCDR(1,14207583,1,1,2) [2025-01-09 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207583', 'tblTempUsageDetail_20' ) start [2025-01-09 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207583', 'tblTempUsageDetail_20' ) end [2025-01-09 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:57:21] Production.INFO: ==28142== Releasing lock... [2025-01-09 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:57:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:58:05 [end_date_ymd] => 2025-01-09 05:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 02:58:05' and `end` < '2025-01-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-01-09 05:58:18] Production.INFO: count ==84 [2025-01-09 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-09 02:58:05 - End Time 2025-01-09 05:58:05 [2025-01-09 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207588', 'tblTempUsageDetail_20' ) start [2025-01-09 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207588', 'tblTempUsageDetail_20' ) end [2025-01-09 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207588', 'tblTempVendorCDR_20' ) start [2025-01-09 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207588', 'tblTempVendorCDR_20' ) end [2025-01-09 05:58:18] Production.INFO: ProcessCDR(1,14207588,1,1,2) [2025-01-09 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207588', 'tblTempUsageDetail_20' ) start [2025-01-09 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207588', 'tblTempUsageDetail_20' ) end [2025-01-09 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:58:22] Production.INFO: ==28211== Releasing lock... [2025-01-09 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:58:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 05:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 02:59:04 [end_date_ymd] => 2025-01-09 05:59:04 [RateCDR] => 1 ) [2025-01-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-01-09 02:59:04' and `end` < '2025-01-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-01-09 05:59:17] Production.INFO: count ==84 [2025-01-09 05:59:17] Production.ERROR: pbx CDR StartTime 2025-01-09 02:59:04 - End Time 2025-01-09 05:59:04 [2025-01-09 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207593', 'tblTempUsageDetail_20' ) start [2025-01-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207593', 'tblTempUsageDetail_20' ) end [2025-01-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207593', 'tblTempVendorCDR_20' ) start [2025-01-09 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207593', 'tblTempVendorCDR_20' ) end [2025-01-09 05:59:17] Production.INFO: ProcessCDR(1,14207593,1,1,2) [2025-01-09 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207593', 'tblTempUsageDetail_20' ) start [2025-01-09 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207593', 'tblTempUsageDetail_20' ) end [2025-01-09 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 05:59:21] Production.INFO: ==28283== Releasing lock... [2025-01-09 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 05:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:00:05 [end_date_ymd] => 2025-01-09 06:00:05 [RateCDR] => 1 ) [2025-01-09 06:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:00:05' and `end` < '2025-01-09 06:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:00:18] Production.INFO: count ==79 [2025-01-09 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:00:05 - End Time 2025-01-09 06:00:05 [2025-01-09 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207599', 'tblTempUsageDetail_20' ) start [2025-01-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207599', 'tblTempUsageDetail_20' ) end [2025-01-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207599', 'tblTempVendorCDR_20' ) start [2025-01-09 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207599', 'tblTempVendorCDR_20' ) end [2025-01-09 06:00:18] Production.INFO: ProcessCDR(1,14207599,1,1,2) [2025-01-09 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207599', 'tblTempUsageDetail_20' ) start [2025-01-09 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207599', 'tblTempUsageDetail_20' ) end [2025-01-09 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:00:21] Production.INFO: ==28354== Releasing lock... [2025-01-09 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:00:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:01:04 [end_date_ymd] => 2025-01-09 06:01:04 [RateCDR] => 1 ) [2025-01-09 06:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:01:04' and `end` < '2025-01-09 06:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:01:18] Production.INFO: count ==74 [2025-01-09 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:01:04 - End Time 2025-01-09 06:01:04 [2025-01-09 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207604', 'tblTempUsageDetail_20' ) start [2025-01-09 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207604', 'tblTempUsageDetail_20' ) end [2025-01-09 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207604', 'tblTempVendorCDR_20' ) start [2025-01-09 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207604', 'tblTempVendorCDR_20' ) end [2025-01-09 06:01:18] Production.INFO: ProcessCDR(1,14207604,1,1,2) [2025-01-09 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207604', 'tblTempUsageDetail_20' ) start [2025-01-09 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207604', 'tblTempUsageDetail_20' ) end [2025-01-09 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:01:21] Production.INFO: ==28439== Releasing lock... [2025-01-09 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:01:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:02:05 [end_date_ymd] => 2025-01-09 06:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:02:05' and `end` < '2025-01-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-01-09 06:02:19] Production.INFO: count ==74 [2025-01-09 06:02:19] Production.ERROR: pbx CDR StartTime 2025-01-09 03:02:05 - End Time 2025-01-09 06:02:05 [2025-01-09 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207609', 'tblTempUsageDetail_20' ) start [2025-01-09 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207609', 'tblTempUsageDetail_20' ) end [2025-01-09 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207609', 'tblTempVendorCDR_20' ) start [2025-01-09 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207609', 'tblTempVendorCDR_20' ) end [2025-01-09 06:02:19] Production.INFO: ProcessCDR(1,14207609,1,1,2) [2025-01-09 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207609', 'tblTempUsageDetail_20' ) start [2025-01-09 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207609', 'tblTempUsageDetail_20' ) end [2025-01-09 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:02:22] Production.INFO: ==28510== Releasing lock... [2025-01-09 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:02:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:03:05 [end_date_ymd] => 2025-01-09 06:03:05 [RateCDR] => 1 ) [2025-01-09 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:03:05' and `end` < '2025-01-09 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:03:18] Production.INFO: count ==74 [2025-01-09 06:03:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:03:05 - End Time 2025-01-09 06:03:05 [2025-01-09 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207614', 'tblTempUsageDetail_20' ) start [2025-01-09 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207614', 'tblTempUsageDetail_20' ) end [2025-01-09 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207614', 'tblTempVendorCDR_20' ) start [2025-01-09 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207614', 'tblTempVendorCDR_20' ) end [2025-01-09 06:03:18] Production.INFO: ProcessCDR(1,14207614,1,1,2) [2025-01-09 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207614', 'tblTempUsageDetail_20' ) start [2025-01-09 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207614', 'tblTempUsageDetail_20' ) end [2025-01-09 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:03:22] Production.INFO: ==28624== Releasing lock... [2025-01-09 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:03:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:04:05 [end_date_ymd] => 2025-01-09 06:04:05 [RateCDR] => 1 ) [2025-01-09 06:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:04:05' and `end` < '2025-01-09 06:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:04:18] Production.INFO: count ==74 [2025-01-09 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:04:05 - End Time 2025-01-09 06:04:05 [2025-01-09 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207619', 'tblTempUsageDetail_20' ) start [2025-01-09 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207619', 'tblTempUsageDetail_20' ) end [2025-01-09 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207619', 'tblTempVendorCDR_20' ) start [2025-01-09 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207619', 'tblTempVendorCDR_20' ) end [2025-01-09 06:04:18] Production.INFO: ProcessCDR(1,14207619,1,1,2) [2025-01-09 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207619', 'tblTempUsageDetail_20' ) start [2025-01-09 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207619', 'tblTempUsageDetail_20' ) end [2025-01-09 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:04:21] Production.INFO: ==28694== Releasing lock... [2025-01-09 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:04:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:05:04 [end_date_ymd] => 2025-01-09 06:05:04 [RateCDR] => 1 ) [2025-01-09 06:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:05:04' and `end` < '2025-01-09 06:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:05:17] Production.INFO: count ==74 [2025-01-09 06:05:17] Production.ERROR: pbx CDR StartTime 2025-01-09 03:05:04 - End Time 2025-01-09 06:05:04 [2025-01-09 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207624', 'tblTempUsageDetail_20' ) start [2025-01-09 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207624', 'tblTempUsageDetail_20' ) end [2025-01-09 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207624', 'tblTempVendorCDR_20' ) start [2025-01-09 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207624', 'tblTempVendorCDR_20' ) end [2025-01-09 06:05:17] Production.INFO: ProcessCDR(1,14207624,1,1,2) [2025-01-09 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207624', 'tblTempUsageDetail_20' ) start [2025-01-09 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207624', 'tblTempUsageDetail_20' ) end [2025-01-09 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:05:20] Production.INFO: ==28765== Releasing lock... [2025-01-09 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:05:20] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:06:05 [end_date_ymd] => 2025-01-09 06:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:06:05' and `end` < '2025-01-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-01-09 06:06:18] Production.INFO: count ==74 [2025-01-09 06:06:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:06:05 - End Time 2025-01-09 06:06:05 [2025-01-09 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207629', 'tblTempUsageDetail_20' ) start [2025-01-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207629', 'tblTempUsageDetail_20' ) end [2025-01-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207629', 'tblTempVendorCDR_20' ) start [2025-01-09 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207629', 'tblTempVendorCDR_20' ) end [2025-01-09 06:06:18] Production.INFO: ProcessCDR(1,14207629,1,1,2) [2025-01-09 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207629', 'tblTempUsageDetail_20' ) start [2025-01-09 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207629', 'tblTempUsageDetail_20' ) end [2025-01-09 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:06:21] Production.INFO: ==28837== Releasing lock... [2025-01-09 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:06:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:07:05 [end_date_ymd] => 2025-01-09 06:07:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:07:05' and `end` < '2025-01-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-01-09 06:07:18] Production.INFO: count ==74 [2025-01-09 06:07:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:07:05 - End Time 2025-01-09 06:07:05 [2025-01-09 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207634', 'tblTempUsageDetail_20' ) start [2025-01-09 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207634', 'tblTempUsageDetail_20' ) end [2025-01-09 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207634', 'tblTempVendorCDR_20' ) start [2025-01-09 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207634', 'tblTempVendorCDR_20' ) end [2025-01-09 06:07:18] Production.INFO: ProcessCDR(1,14207634,1,1,2) [2025-01-09 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207634', 'tblTempUsageDetail_20' ) start [2025-01-09 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207634', 'tblTempUsageDetail_20' ) end [2025-01-09 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:07:21] Production.INFO: ==28912== Releasing lock... [2025-01-09 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:08:05 [end_date_ymd] => 2025-01-09 06:08:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:08:05' and `end` < '2025-01-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-01-09 06:08:18] Production.INFO: count ==74 [2025-01-09 06:08:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:08:05 - End Time 2025-01-09 06:08:05 [2025-01-09 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207639', 'tblTempUsageDetail_20' ) start [2025-01-09 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207639', 'tblTempUsageDetail_20' ) end [2025-01-09 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207639', 'tblTempVendorCDR_20' ) start [2025-01-09 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207639', 'tblTempVendorCDR_20' ) end [2025-01-09 06:08:18] Production.INFO: ProcessCDR(1,14207639,1,1,2) [2025-01-09 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207639', 'tblTempUsageDetail_20' ) start [2025-01-09 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207639', 'tblTempUsageDetail_20' ) end [2025-01-09 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:08:21] Production.INFO: ==28982== Releasing lock... [2025-01-09 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:08:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:09:05 [end_date_ymd] => 2025-01-09 06:09:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:09:05' and `end` < '2025-01-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-01-09 06:09:20] Production.INFO: count ==74 [2025-01-09 06:09:20] Production.ERROR: pbx CDR StartTime 2025-01-09 03:09:05 - End Time 2025-01-09 06:09:05 [2025-01-09 06:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207644', 'tblTempUsageDetail_20' ) start [2025-01-09 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207644', 'tblTempUsageDetail_20' ) end [2025-01-09 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207644', 'tblTempVendorCDR_20' ) start [2025-01-09 06:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207644', 'tblTempVendorCDR_20' ) end [2025-01-09 06:09:20] Production.INFO: ProcessCDR(1,14207644,1,1,2) [2025-01-09 06:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207644', 'tblTempUsageDetail_20' ) start [2025-01-09 06:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207644', 'tblTempUsageDetail_20' ) end [2025-01-09 06:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:09:23] Production.INFO: ==29052== Releasing lock... [2025-01-09 06:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:09:23] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:10:05 [end_date_ymd] => 2025-01-09 06:10:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:10:05' and `end` < '2025-01-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-01-09 06:10:18] Production.INFO: count ==70 [2025-01-09 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:10:05 - End Time 2025-01-09 06:10:05 [2025-01-09 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207649', 'tblTempUsageDetail_20' ) start [2025-01-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207649', 'tblTempUsageDetail_20' ) end [2025-01-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207649', 'tblTempVendorCDR_20' ) start [2025-01-09 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207649', 'tblTempVendorCDR_20' ) end [2025-01-09 06:10:18] Production.INFO: ProcessCDR(1,14207649,1,1,2) [2025-01-09 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207649', 'tblTempUsageDetail_20' ) start [2025-01-09 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207649', 'tblTempUsageDetail_20' ) end [2025-01-09 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:10:21] Production.INFO: ==29123== Releasing lock... [2025-01-09 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:10:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:11:05 [end_date_ymd] => 2025-01-09 06:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:11:05' and `end` < '2025-01-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-01-09 06:11:18] Production.INFO: count ==60 [2025-01-09 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:11:05 - End Time 2025-01-09 06:11:05 [2025-01-09 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207655', 'tblTempUsageDetail_20' ) start [2025-01-09 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207655', 'tblTempUsageDetail_20' ) end [2025-01-09 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207655', 'tblTempVendorCDR_20' ) start [2025-01-09 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207655', 'tblTempVendorCDR_20' ) end [2025-01-09 06:11:18] Production.INFO: ProcessCDR(1,14207655,1,1,2) [2025-01-09 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207655', 'tblTempUsageDetail_20' ) start [2025-01-09 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207655', 'tblTempUsageDetail_20' ) end [2025-01-09 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:11:21] Production.INFO: ==29196== Releasing lock... [2025-01-09 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:12:05 [end_date_ymd] => 2025-01-09 06:12:05 [RateCDR] => 1 ) [2025-01-09 06:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:12:05' and `end` < '2025-01-09 06:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:12:18] Production.INFO: count ==60 [2025-01-09 06:12:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:12:05 - End Time 2025-01-09 06:12:05 [2025-01-09 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207660', 'tblTempUsageDetail_20' ) start [2025-01-09 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207660', 'tblTempUsageDetail_20' ) end [2025-01-09 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207660', 'tblTempVendorCDR_20' ) start [2025-01-09 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207660', 'tblTempVendorCDR_20' ) end [2025-01-09 06:12:18] Production.INFO: ProcessCDR(1,14207660,1,1,2) [2025-01-09 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207660', 'tblTempUsageDetail_20' ) start [2025-01-09 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207660', 'tblTempUsageDetail_20' ) end [2025-01-09 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:12:21] Production.INFO: ==29265== Releasing lock... [2025-01-09 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:12:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:13:05 [end_date_ymd] => 2025-01-09 06:13:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:13:05' and `end` < '2025-01-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-01-09 06:13:19] Production.INFO: count ==59 [2025-01-09 06:13:19] Production.ERROR: pbx CDR StartTime 2025-01-09 03:13:05 - End Time 2025-01-09 06:13:05 [2025-01-09 06:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207665', 'tblTempUsageDetail_20' ) start [2025-01-09 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207665', 'tblTempUsageDetail_20' ) end [2025-01-09 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207665', 'tblTempVendorCDR_20' ) start [2025-01-09 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207665', 'tblTempVendorCDR_20' ) end [2025-01-09 06:13:19] Production.INFO: ProcessCDR(1,14207665,1,1,2) [2025-01-09 06:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207665', 'tblTempUsageDetail_20' ) start [2025-01-09 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207665', 'tblTempUsageDetail_20' ) end [2025-01-09 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:13:22] Production.INFO: ==29337== Releasing lock... [2025-01-09 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:13:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:14:05 [end_date_ymd] => 2025-01-09 06:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:14:05' and `end` < '2025-01-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-01-09 06:14:18] Production.INFO: count ==59 [2025-01-09 06:14:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:14:05 - End Time 2025-01-09 06:14:05 [2025-01-09 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207670', 'tblTempUsageDetail_20' ) start [2025-01-09 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207670', 'tblTempUsageDetail_20' ) end [2025-01-09 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207670', 'tblTempVendorCDR_20' ) start [2025-01-09 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207670', 'tblTempVendorCDR_20' ) end [2025-01-09 06:14:18] Production.INFO: ProcessCDR(1,14207670,1,1,2) [2025-01-09 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207670', 'tblTempUsageDetail_20' ) start [2025-01-09 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207670', 'tblTempUsageDetail_20' ) end [2025-01-09 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:14:21] Production.INFO: ==29409== Releasing lock... [2025-01-09 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:14:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:15:05 [end_date_ymd] => 2025-01-09 06:15:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:15:05' and `end` < '2025-01-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-01-09 06:15:18] Production.INFO: count ==59 [2025-01-09 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:15:05 - End Time 2025-01-09 06:15:05 [2025-01-09 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207675', 'tblTempUsageDetail_20' ) start [2025-01-09 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207675', 'tblTempUsageDetail_20' ) end [2025-01-09 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207675', 'tblTempVendorCDR_20' ) start [2025-01-09 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207675', 'tblTempVendorCDR_20' ) end [2025-01-09 06:15:18] Production.INFO: ProcessCDR(1,14207675,1,1,2) [2025-01-09 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207675', 'tblTempUsageDetail_20' ) start [2025-01-09 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207675', 'tblTempUsageDetail_20' ) end [2025-01-09 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:15:21] Production.INFO: ==29484== Releasing lock... [2025-01-09 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:16:05 [end_date_ymd] => 2025-01-09 06:16:05 [RateCDR] => 1 ) [2025-01-09 06:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:16:05' and `end` < '2025-01-09 06:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:16:18] Production.INFO: count ==59 [2025-01-09 06:16:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:16:05 - End Time 2025-01-09 06:16:05 [2025-01-09 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207680', 'tblTempUsageDetail_20' ) start [2025-01-09 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207680', 'tblTempUsageDetail_20' ) end [2025-01-09 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207680', 'tblTempVendorCDR_20' ) start [2025-01-09 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207680', 'tblTempVendorCDR_20' ) end [2025-01-09 06:16:18] Production.INFO: ProcessCDR(1,14207680,1,1,2) [2025-01-09 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207680', 'tblTempUsageDetail_20' ) start [2025-01-09 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207680', 'tblTempUsageDetail_20' ) end [2025-01-09 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:16:21] Production.INFO: ==29555== Releasing lock... [2025-01-09 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:16:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:17:05 [end_date_ymd] => 2025-01-09 06:17:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:17:05' and `end` < '2025-01-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-01-09 06:17:17] Production.INFO: count ==59 [2025-01-09 06:17:17] Production.ERROR: pbx CDR StartTime 2025-01-09 03:17:05 - End Time 2025-01-09 06:17:05 [2025-01-09 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207685', 'tblTempUsageDetail_20' ) start [2025-01-09 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207685', 'tblTempUsageDetail_20' ) end [2025-01-09 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207685', 'tblTempVendorCDR_20' ) start [2025-01-09 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207685', 'tblTempVendorCDR_20' ) end [2025-01-09 06:17:17] Production.INFO: ProcessCDR(1,14207685,1,1,2) [2025-01-09 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207685', 'tblTempUsageDetail_20' ) start [2025-01-09 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207685', 'tblTempUsageDetail_20' ) end [2025-01-09 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:17:21] Production.INFO: ==29627== Releasing lock... [2025-01-09 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:17:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:18:05 [end_date_ymd] => 2025-01-09 06:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:18:05' and `end` < '2025-01-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-01-09 06:18:18] Production.INFO: count ==59 [2025-01-09 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:18:05 - End Time 2025-01-09 06:18:05 [2025-01-09 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207690', 'tblTempUsageDetail_20' ) start [2025-01-09 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207690', 'tblTempUsageDetail_20' ) end [2025-01-09 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207690', 'tblTempVendorCDR_20' ) start [2025-01-09 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207690', 'tblTempVendorCDR_20' ) end [2025-01-09 06:18:18] Production.INFO: ProcessCDR(1,14207690,1,1,2) [2025-01-09 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207690', 'tblTempUsageDetail_20' ) start [2025-01-09 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207690', 'tblTempUsageDetail_20' ) end [2025-01-09 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:18:21] Production.INFO: ==29743== Releasing lock... [2025-01-09 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:18:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:19:05 [end_date_ymd] => 2025-01-09 06:19:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:19:05' and `end` < '2025-01-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-01-09 06:19:18] Production.INFO: count ==59 [2025-01-09 06:19:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:19:05 - End Time 2025-01-09 06:19:05 [2025-01-09 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207695', 'tblTempUsageDetail_20' ) start [2025-01-09 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207695', 'tblTempUsageDetail_20' ) end [2025-01-09 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207695', 'tblTempVendorCDR_20' ) start [2025-01-09 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207695', 'tblTempVendorCDR_20' ) end [2025-01-09 06:19:18] Production.INFO: ProcessCDR(1,14207695,1,1,2) [2025-01-09 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207695', 'tblTempUsageDetail_20' ) start [2025-01-09 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207695', 'tblTempUsageDetail_20' ) end [2025-01-09 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:19:22] Production.INFO: ==29813== Releasing lock... [2025-01-09 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:19:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:20:06 [end_date_ymd] => 2025-01-09 06:20:06 [RateCDR] => 1 ) [2025-01-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-01-09 03:20:06' and `end` < '2025-01-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-01-09 06:20:18] Production.INFO: count ==59 [2025-01-09 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:20:06 - End Time 2025-01-09 06:20:06 [2025-01-09 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207701', 'tblTempUsageDetail_20' ) start [2025-01-09 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207701', 'tblTempUsageDetail_20' ) end [2025-01-09 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207701', 'tblTempVendorCDR_20' ) start [2025-01-09 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207701', 'tblTempVendorCDR_20' ) end [2025-01-09 06:20:18] Production.INFO: ProcessCDR(1,14207701,1,1,2) [2025-01-09 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207701', 'tblTempUsageDetail_20' ) start [2025-01-09 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207701', 'tblTempUsageDetail_20' ) end [2025-01-09 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:20:22] Production.INFO: ==29885== Releasing lock... [2025-01-09 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:21:04 [end_date_ymd] => 2025-01-09 06:21:04 [RateCDR] => 1 ) [2025-01-09 06:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:21:04' and `end` < '2025-01-09 06:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:21:18] Production.INFO: count ==59 [2025-01-09 06:21:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:21:04 - End Time 2025-01-09 06:21:04 [2025-01-09 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207706', 'tblTempUsageDetail_20' ) start [2025-01-09 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207706', 'tblTempUsageDetail_20' ) end [2025-01-09 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207706', 'tblTempVendorCDR_20' ) start [2025-01-09 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207706', 'tblTempVendorCDR_20' ) end [2025-01-09 06:21:18] Production.INFO: ProcessCDR(1,14207706,1,1,2) [2025-01-09 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207706', 'tblTempUsageDetail_20' ) start [2025-01-09 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207706', 'tblTempUsageDetail_20' ) end [2025-01-09 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:21:21] Production.INFO: ==29957== Releasing lock... [2025-01-09 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:21:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:22:05 [end_date_ymd] => 2025-01-09 06:22:05 [RateCDR] => 1 ) [2025-01-09 06:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:22:05' and `end` < '2025-01-09 06:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:22:18] Production.INFO: count ==59 [2025-01-09 06:22:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:22:05 - End Time 2025-01-09 06:22:05 [2025-01-09 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207711', 'tblTempUsageDetail_20' ) start [2025-01-09 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207711', 'tblTempUsageDetail_20' ) end [2025-01-09 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207711', 'tblTempVendorCDR_20' ) start [2025-01-09 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207711', 'tblTempVendorCDR_20' ) end [2025-01-09 06:22:18] Production.INFO: ProcessCDR(1,14207711,1,1,2) [2025-01-09 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207711', 'tblTempUsageDetail_20' ) start [2025-01-09 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207711', 'tblTempUsageDetail_20' ) end [2025-01-09 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:22:21] Production.INFO: ==30027== Releasing lock... [2025-01-09 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:22:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:23:05 [end_date_ymd] => 2025-01-09 06:23:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:23:05' and `end` < '2025-01-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-01-09 06:23:19] Production.INFO: count ==59 [2025-01-09 06:23:19] Production.ERROR: pbx CDR StartTime 2025-01-09 03:23:05 - End Time 2025-01-09 06:23:05 [2025-01-09 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207716', 'tblTempUsageDetail_20' ) start [2025-01-09 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207716', 'tblTempUsageDetail_20' ) end [2025-01-09 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207716', 'tblTempVendorCDR_20' ) start [2025-01-09 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207716', 'tblTempVendorCDR_20' ) end [2025-01-09 06:23:19] Production.INFO: ProcessCDR(1,14207716,1,1,2) [2025-01-09 06:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207716', 'tblTempUsageDetail_20' ) start [2025-01-09 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207716', 'tblTempUsageDetail_20' ) end [2025-01-09 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:23:22] Production.INFO: ==30098== Releasing lock... [2025-01-09 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:23:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:24:05 [end_date_ymd] => 2025-01-09 06:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:24:05' and `end` < '2025-01-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-01-09 06:24:18] Production.INFO: count ==59 [2025-01-09 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:24:05 - End Time 2025-01-09 06:24:05 [2025-01-09 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207721', 'tblTempUsageDetail_20' ) start [2025-01-09 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207721', 'tblTempUsageDetail_20' ) end [2025-01-09 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207721', 'tblTempVendorCDR_20' ) start [2025-01-09 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207721', 'tblTempVendorCDR_20' ) end [2025-01-09 06:24:18] Production.INFO: ProcessCDR(1,14207721,1,1,2) [2025-01-09 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207721', 'tblTempUsageDetail_20' ) start [2025-01-09 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207721', 'tblTempUsageDetail_20' ) end [2025-01-09 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:24:21] Production.INFO: ==30168== Releasing lock... [2025-01-09 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:25:05 [end_date_ymd] => 2025-01-09 06:25:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:25:05' and `end` < '2025-01-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-01-09 06:25:18] Production.INFO: count ==59 [2025-01-09 06:25:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:25:05 - End Time 2025-01-09 06:25:05 [2025-01-09 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207726', 'tblTempUsageDetail_20' ) start [2025-01-09 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207726', 'tblTempUsageDetail_20' ) end [2025-01-09 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207726', 'tblTempVendorCDR_20' ) start [2025-01-09 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207726', 'tblTempVendorCDR_20' ) end [2025-01-09 06:25:18] Production.INFO: ProcessCDR(1,14207726,1,1,2) [2025-01-09 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207726', 'tblTempUsageDetail_20' ) start [2025-01-09 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207726', 'tblTempUsageDetail_20' ) end [2025-01-09 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:25:21] Production.INFO: ==30238== Releasing lock... [2025-01-09 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:26:04 [end_date_ymd] => 2025-01-09 06:26:04 [RateCDR] => 1 ) [2025-01-09 06:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:26:04' and `end` < '2025-01-09 06:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:26:17] Production.INFO: count ==59 [2025-01-09 06:26:17] Production.ERROR: pbx CDR StartTime 2025-01-09 03:26:04 - End Time 2025-01-09 06:26:04 [2025-01-09 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207731', 'tblTempUsageDetail_20' ) start [2025-01-09 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207731', 'tblTempUsageDetail_20' ) end [2025-01-09 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207731', 'tblTempVendorCDR_20' ) start [2025-01-09 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207731', 'tblTempVendorCDR_20' ) end [2025-01-09 06:26:17] Production.INFO: ProcessCDR(1,14207731,1,1,2) [2025-01-09 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207731', 'tblTempUsageDetail_20' ) start [2025-01-09 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207731', 'tblTempUsageDetail_20' ) end [2025-01-09 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:26:20] Production.INFO: ==30308== Releasing lock... [2025-01-09 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:26:20] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:27:05 [end_date_ymd] => 2025-01-09 06:27:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:27:05' and `end` < '2025-01-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-01-09 06:27:19] Production.INFO: count ==59 [2025-01-09 06:27:19] Production.ERROR: pbx CDR StartTime 2025-01-09 03:27:05 - End Time 2025-01-09 06:27:05 [2025-01-09 06:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207736', 'tblTempUsageDetail_20' ) start [2025-01-09 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207736', 'tblTempUsageDetail_20' ) end [2025-01-09 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207736', 'tblTempVendorCDR_20' ) start [2025-01-09 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207736', 'tblTempVendorCDR_20' ) end [2025-01-09 06:27:19] Production.INFO: ProcessCDR(1,14207736,1,1,2) [2025-01-09 06:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207736', 'tblTempUsageDetail_20' ) start [2025-01-09 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207736', 'tblTempUsageDetail_20' ) end [2025-01-09 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:27:22] Production.INFO: ==30379== Releasing lock... [2025-01-09 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:28:05 [end_date_ymd] => 2025-01-09 06:28:05 [RateCDR] => 1 ) [2025-01-09 06:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:28:05' and `end` < '2025-01-09 06:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:28:18] Production.INFO: count ==59 [2025-01-09 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:28:05 - End Time 2025-01-09 06:28:05 [2025-01-09 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207741', 'tblTempUsageDetail_20' ) start [2025-01-09 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207741', 'tblTempUsageDetail_20' ) end [2025-01-09 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207741', 'tblTempVendorCDR_20' ) start [2025-01-09 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207741', 'tblTempVendorCDR_20' ) end [2025-01-09 06:28:18] Production.INFO: ProcessCDR(1,14207741,1,1,2) [2025-01-09 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207741', 'tblTempUsageDetail_20' ) start [2025-01-09 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207741', 'tblTempUsageDetail_20' ) end [2025-01-09 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:28:21] Production.INFO: ==30452== Releasing lock... [2025-01-09 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:28:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:29:05 [end_date_ymd] => 2025-01-09 06:29:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:29:05' and `end` < '2025-01-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-01-09 06:29:19] Production.INFO: count ==59 [2025-01-09 06:29:19] Production.ERROR: pbx CDR StartTime 2025-01-09 03:29:05 - End Time 2025-01-09 06:29:05 [2025-01-09 06:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207746', 'tblTempUsageDetail_20' ) start [2025-01-09 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207746', 'tblTempUsageDetail_20' ) end [2025-01-09 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207746', 'tblTempVendorCDR_20' ) start [2025-01-09 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207746', 'tblTempVendorCDR_20' ) end [2025-01-09 06:29:19] Production.INFO: ProcessCDR(1,14207746,1,1,2) [2025-01-09 06:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207746', 'tblTempUsageDetail_20' ) start [2025-01-09 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207746', 'tblTempUsageDetail_20' ) end [2025-01-09 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:29:22] Production.INFO: ==30522== Releasing lock... [2025-01-09 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:29:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:30:05 [end_date_ymd] => 2025-01-09 06:30:05 [RateCDR] => 1 ) [2025-01-09 06:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:30:05' and `end` < '2025-01-09 06:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:30:18] Production.INFO: count ==61 [2025-01-09 06:30:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:30:05 - End Time 2025-01-09 06:30:05 [2025-01-09 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207750', 'tblTempUsageDetail_20' ) start [2025-01-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207750', 'tblTempUsageDetail_20' ) end [2025-01-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207750', 'tblTempVendorCDR_20' ) start [2025-01-09 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207750', 'tblTempVendorCDR_20' ) end [2025-01-09 06:30:18] Production.INFO: ProcessCDR(1,14207750,1,1,2) [2025-01-09 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207750', 'tblTempUsageDetail_20' ) start [2025-01-09 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207750', 'tblTempUsageDetail_20' ) end [2025-01-09 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:30:21] Production.INFO: ==30595== Releasing lock... [2025-01-09 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:31:05 [end_date_ymd] => 2025-01-09 06:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:31:05' and `end` < '2025-01-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-01-09 06:31:19] Production.INFO: count ==61 [2025-01-09 06:31:19] Production.ERROR: pbx CDR StartTime 2025-01-09 03:31:05 - End Time 2025-01-09 06:31:05 [2025-01-09 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207757', 'tblTempUsageDetail_20' ) start [2025-01-09 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207757', 'tblTempUsageDetail_20' ) end [2025-01-09 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207757', 'tblTempVendorCDR_20' ) start [2025-01-09 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207757', 'tblTempVendorCDR_20' ) end [2025-01-09 06:31:19] Production.INFO: ProcessCDR(1,14207757,1,1,2) [2025-01-09 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207757', 'tblTempUsageDetail_20' ) start [2025-01-09 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207757', 'tblTempUsageDetail_20' ) end [2025-01-09 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:31:22] Production.INFO: ==30668== Releasing lock... [2025-01-09 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:31:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:32:05 [end_date_ymd] => 2025-01-09 06:32:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:32:05' and `end` < '2025-01-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-01-09 06:32:19] Production.INFO: count ==61 [2025-01-09 06:32:19] Production.ERROR: pbx CDR StartTime 2025-01-09 03:32:05 - End Time 2025-01-09 06:32:05 [2025-01-09 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207762', 'tblTempUsageDetail_20' ) start [2025-01-09 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207762', 'tblTempUsageDetail_20' ) end [2025-01-09 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207762', 'tblTempVendorCDR_20' ) start [2025-01-09 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207762', 'tblTempVendorCDR_20' ) end [2025-01-09 06:32:19] Production.INFO: ProcessCDR(1,14207762,1,1,2) [2025-01-09 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207762', 'tblTempUsageDetail_20' ) start [2025-01-09 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207762', 'tblTempUsageDetail_20' ) end [2025-01-09 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:32:22] Production.INFO: ==30743== Releasing lock... [2025-01-09 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:32:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:33:04 [end_date_ymd] => 2025-01-09 06:33:04 [RateCDR] => 1 ) [2025-01-09 06:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:33:04' and `end` < '2025-01-09 06:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:33:17] Production.INFO: count ==61 [2025-01-09 06:33:17] Production.ERROR: pbx CDR StartTime 2025-01-09 03:33:04 - End Time 2025-01-09 06:33:04 [2025-01-09 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207767', 'tblTempUsageDetail_20' ) start [2025-01-09 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207767', 'tblTempUsageDetail_20' ) end [2025-01-09 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207767', 'tblTempVendorCDR_20' ) start [2025-01-09 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207767', 'tblTempVendorCDR_20' ) end [2025-01-09 06:33:17] Production.INFO: ProcessCDR(1,14207767,1,1,2) [2025-01-09 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207767', 'tblTempUsageDetail_20' ) start [2025-01-09 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207767', 'tblTempUsageDetail_20' ) end [2025-01-09 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:33:21] Production.INFO: ==30817== Releasing lock... [2025-01-09 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:34:05 [end_date_ymd] => 2025-01-09 06:34:05 [RateCDR] => 1 ) [2025-01-09 06:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:34:05' and `end` < '2025-01-09 06:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:34:18] Production.INFO: count ==61 [2025-01-09 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:34:05 - End Time 2025-01-09 06:34:05 [2025-01-09 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207772', 'tblTempUsageDetail_20' ) start [2025-01-09 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207772', 'tblTempUsageDetail_20' ) end [2025-01-09 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207772', 'tblTempVendorCDR_20' ) start [2025-01-09 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207772', 'tblTempVendorCDR_20' ) end [2025-01-09 06:34:18] Production.INFO: ProcessCDR(1,14207772,1,1,2) [2025-01-09 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207772', 'tblTempUsageDetail_20' ) start [2025-01-09 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207772', 'tblTempUsageDetail_20' ) end [2025-01-09 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:34:22] Production.INFO: ==30927== Releasing lock... [2025-01-09 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:34:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:35:05 [end_date_ymd] => 2025-01-09 06:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:35:05' and `end` < '2025-01-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-01-09 06:35:17] Production.INFO: count ==61 [2025-01-09 06:35:17] Production.ERROR: pbx CDR StartTime 2025-01-09 03:35:05 - End Time 2025-01-09 06:35:05 [2025-01-09 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207777', 'tblTempUsageDetail_20' ) start [2025-01-09 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207777', 'tblTempUsageDetail_20' ) end [2025-01-09 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207777', 'tblTempVendorCDR_20' ) start [2025-01-09 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207777', 'tblTempVendorCDR_20' ) end [2025-01-09 06:35:17] Production.INFO: ProcessCDR(1,14207777,1,1,2) [2025-01-09 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207777', 'tblTempUsageDetail_20' ) start [2025-01-09 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207777', 'tblTempUsageDetail_20' ) end [2025-01-09 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:35:20] Production.INFO: ==30996== Releasing lock... [2025-01-09 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:35:20] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:36:05 [end_date_ymd] => 2025-01-09 06:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:36:05' and `end` < '2025-01-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-01-09 06:36:18] Production.INFO: count ==61 [2025-01-09 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:36:05 - End Time 2025-01-09 06:36:05 [2025-01-09 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207782', 'tblTempUsageDetail_20' ) start [2025-01-09 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207782', 'tblTempUsageDetail_20' ) end [2025-01-09 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207782', 'tblTempVendorCDR_20' ) start [2025-01-09 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207782', 'tblTempVendorCDR_20' ) end [2025-01-09 06:36:18] Production.INFO: ProcessCDR(1,14207782,1,1,2) [2025-01-09 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207782', 'tblTempUsageDetail_20' ) start [2025-01-09 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207782', 'tblTempUsageDetail_20' ) end [2025-01-09 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:36:21] Production.INFO: ==31067== Releasing lock... [2025-01-09 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:37:04 [end_date_ymd] => 2025-01-09 06:37:04 [RateCDR] => 1 ) [2025-01-09 06:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:37:04' and `end` < '2025-01-09 06:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:37:17] Production.INFO: count ==61 [2025-01-09 06:37:17] Production.ERROR: pbx CDR StartTime 2025-01-09 03:37:04 - End Time 2025-01-09 06:37:04 [2025-01-09 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207787', 'tblTempUsageDetail_20' ) start [2025-01-09 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207787', 'tblTempUsageDetail_20' ) end [2025-01-09 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207787', 'tblTempVendorCDR_20' ) start [2025-01-09 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207787', 'tblTempVendorCDR_20' ) end [2025-01-09 06:37:17] Production.INFO: ProcessCDR(1,14207787,1,1,2) [2025-01-09 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207787', 'tblTempUsageDetail_20' ) start [2025-01-09 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207787', 'tblTempUsageDetail_20' ) end [2025-01-09 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:37:20] Production.INFO: ==31136== Releasing lock... [2025-01-09 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:37:20] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:38:05 [end_date_ymd] => 2025-01-09 06:38:05 [RateCDR] => 1 ) [2025-01-09 06:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:38:05' and `end` < '2025-01-09 06:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:38:18] Production.INFO: count ==61 [2025-01-09 06:38:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:38:05 - End Time 2025-01-09 06:38:05 [2025-01-09 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207792', 'tblTempUsageDetail_20' ) start [2025-01-09 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207792', 'tblTempUsageDetail_20' ) end [2025-01-09 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207792', 'tblTempVendorCDR_20' ) start [2025-01-09 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207792', 'tblTempVendorCDR_20' ) end [2025-01-09 06:38:18] Production.INFO: ProcessCDR(1,14207792,1,1,2) [2025-01-09 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207792', 'tblTempUsageDetail_20' ) start [2025-01-09 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207792', 'tblTempUsageDetail_20' ) end [2025-01-09 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:38:21] Production.INFO: ==31207== Releasing lock... [2025-01-09 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:39:06 [end_date_ymd] => 2025-01-09 06:39:06 [RateCDR] => 1 ) [2025-01-09 06:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:39:06' and `end` < '2025-01-09 06:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:39:20] Production.INFO: count ==61 [2025-01-09 06:39:20] Production.ERROR: pbx CDR StartTime 2025-01-09 03:39:06 - End Time 2025-01-09 06:39:06 [2025-01-09 06:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207797', 'tblTempUsageDetail_20' ) start [2025-01-09 06:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207797', 'tblTempUsageDetail_20' ) end [2025-01-09 06:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207797', 'tblTempVendorCDR_20' ) start [2025-01-09 06:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207797', 'tblTempVendorCDR_20' ) end [2025-01-09 06:39:20] Production.INFO: ProcessCDR(1,14207797,1,1,2) [2025-01-09 06:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207797', 'tblTempUsageDetail_20' ) start [2025-01-09 06:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207797', 'tblTempUsageDetail_20' ) end [2025-01-09 06:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:39:23] Production.INFO: ==31279== Releasing lock... [2025-01-09 06:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:39:23] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:40:06 [end_date_ymd] => 2025-01-09 06:40:06 [RateCDR] => 1 ) [2025-01-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-01-09 03:40:06' and `end` < '2025-01-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-01-09 06:40:18] Production.INFO: count ==61 [2025-01-09 06:40:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:40:06 - End Time 2025-01-09 06:40:06 [2025-01-09 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207803', 'tblTempUsageDetail_20' ) start [2025-01-09 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207803', 'tblTempUsageDetail_20' ) end [2025-01-09 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207803', 'tblTempVendorCDR_20' ) start [2025-01-09 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207803', 'tblTempVendorCDR_20' ) end [2025-01-09 06:40:18] Production.INFO: ProcessCDR(1,14207803,1,1,2) [2025-01-09 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207803', 'tblTempUsageDetail_20' ) start [2025-01-09 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207803', 'tblTempUsageDetail_20' ) end [2025-01-09 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:40:21] Production.INFO: ==31351== Releasing lock... [2025-01-09 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:40:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:41:04 [end_date_ymd] => 2025-01-09 06:41:04 [RateCDR] => 1 ) [2025-01-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-01-09 03:41:04' and `end` < '2025-01-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-01-09 06:41:18] Production.INFO: count ==61 [2025-01-09 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:41:04 - End Time 2025-01-09 06:41:04 [2025-01-09 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207808', 'tblTempUsageDetail_20' ) start [2025-01-09 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207808', 'tblTempUsageDetail_20' ) end [2025-01-09 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207808', 'tblTempVendorCDR_20' ) start [2025-01-09 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207808', 'tblTempVendorCDR_20' ) end [2025-01-09 06:41:18] Production.INFO: ProcessCDR(1,14207808,1,1,2) [2025-01-09 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207808', 'tblTempUsageDetail_20' ) start [2025-01-09 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207808', 'tblTempUsageDetail_20' ) end [2025-01-09 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:41:21] Production.INFO: ==31426== Releasing lock... [2025-01-09 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:42:05 [end_date_ymd] => 2025-01-09 06:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:42:05' and `end` < '2025-01-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-01-09 06:42:18] Production.INFO: count ==61 [2025-01-09 06:42:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:42:05 - End Time 2025-01-09 06:42:05 [2025-01-09 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207813', 'tblTempUsageDetail_20' ) start [2025-01-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207813', 'tblTempUsageDetail_20' ) end [2025-01-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207813', 'tblTempVendorCDR_20' ) start [2025-01-09 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207813', 'tblTempVendorCDR_20' ) end [2025-01-09 06:42:18] Production.INFO: ProcessCDR(1,14207813,1,1,2) [2025-01-09 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207813', 'tblTempUsageDetail_20' ) start [2025-01-09 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207813', 'tblTempUsageDetail_20' ) end [2025-01-09 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:42:21] Production.INFO: ==31497== Releasing lock... [2025-01-09 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:42:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:43:05 [end_date_ymd] => 2025-01-09 06:43:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:43:05' and `end` < '2025-01-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-01-09 06:43:19] Production.INFO: count ==61 [2025-01-09 06:43:19] Production.ERROR: pbx CDR StartTime 2025-01-09 03:43:05 - End Time 2025-01-09 06:43:05 [2025-01-09 06:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207818', 'tblTempUsageDetail_20' ) start [2025-01-09 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207818', 'tblTempUsageDetail_20' ) end [2025-01-09 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207818', 'tblTempVendorCDR_20' ) start [2025-01-09 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207818', 'tblTempVendorCDR_20' ) end [2025-01-09 06:43:19] Production.INFO: ProcessCDR(1,14207818,1,1,2) [2025-01-09 06:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207818', 'tblTempUsageDetail_20' ) start [2025-01-09 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207818', 'tblTempUsageDetail_20' ) end [2025-01-09 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:43:22] Production.INFO: ==31570== Releasing lock... [2025-01-09 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:43:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:44:05 [end_date_ymd] => 2025-01-09 06:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:44:05' and `end` < '2025-01-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-01-09 06:44:18] Production.INFO: count ==61 [2025-01-09 06:44:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:44:05 - End Time 2025-01-09 06:44:05 [2025-01-09 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207823', 'tblTempUsageDetail_20' ) start [2025-01-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207823', 'tblTempUsageDetail_20' ) end [2025-01-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207823', 'tblTempVendorCDR_20' ) start [2025-01-09 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207823', 'tblTempVendorCDR_20' ) end [2025-01-09 06:44:18] Production.INFO: ProcessCDR(1,14207823,1,1,2) [2025-01-09 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207823', 'tblTempUsageDetail_20' ) start [2025-01-09 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207823', 'tblTempUsageDetail_20' ) end [2025-01-09 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:44:21] Production.INFO: ==31656== Releasing lock... [2025-01-09 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:45:05 [end_date_ymd] => 2025-01-09 06:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:45:05' and `end` < '2025-01-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-01-09 06:45:17] Production.INFO: count ==61 [2025-01-09 06:45:17] Production.ERROR: pbx CDR StartTime 2025-01-09 03:45:05 - End Time 2025-01-09 06:45:05 [2025-01-09 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207828', 'tblTempUsageDetail_20' ) start [2025-01-09 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207828', 'tblTempUsageDetail_20' ) end [2025-01-09 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207828', 'tblTempVendorCDR_20' ) start [2025-01-09 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207828', 'tblTempVendorCDR_20' ) end [2025-01-09 06:45:17] Production.INFO: ProcessCDR(1,14207828,1,1,2) [2025-01-09 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207828', 'tblTempUsageDetail_20' ) start [2025-01-09 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207828', 'tblTempUsageDetail_20' ) end [2025-01-09 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:45:21] Production.INFO: ==31759== Releasing lock... [2025-01-09 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:45:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:46:04 [end_date_ymd] => 2025-01-09 06:46:04 [RateCDR] => 1 ) [2025-01-09 06:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:46:04' and `end` < '2025-01-09 06:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:46:18] Production.INFO: count ==61 [2025-01-09 06:46:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:46:04 - End Time 2025-01-09 06:46:04 [2025-01-09 06:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207833', 'tblTempUsageDetail_20' ) start [2025-01-09 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207833', 'tblTempUsageDetail_20' ) end [2025-01-09 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207833', 'tblTempVendorCDR_20' ) start [2025-01-09 06:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207833', 'tblTempVendorCDR_20' ) end [2025-01-09 06:46:18] Production.INFO: ProcessCDR(1,14207833,1,1,2) [2025-01-09 06:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207833', 'tblTempUsageDetail_20' ) start [2025-01-09 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207833', 'tblTempUsageDetail_20' ) end [2025-01-09 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:46:21] Production.INFO: ==31866== Releasing lock... [2025-01-09 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:46:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:47:05 [end_date_ymd] => 2025-01-09 06:47:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:47:05' and `end` < '2025-01-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-01-09 06:47:18] Production.INFO: count ==61 [2025-01-09 06:47:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:47:05 - End Time 2025-01-09 06:47:05 [2025-01-09 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207838', 'tblTempUsageDetail_20' ) start [2025-01-09 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207838', 'tblTempUsageDetail_20' ) end [2025-01-09 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207838', 'tblTempVendorCDR_20' ) start [2025-01-09 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207838', 'tblTempVendorCDR_20' ) end [2025-01-09 06:47:18] Production.INFO: ProcessCDR(1,14207838,1,1,2) [2025-01-09 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207838', 'tblTempUsageDetail_20' ) start [2025-01-09 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207838', 'tblTempUsageDetail_20' ) end [2025-01-09 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:47:21] Production.INFO: ==31949== Releasing lock... [2025-01-09 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:47:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:48:04 [end_date_ymd] => 2025-01-09 06:48:04 [RateCDR] => 1 ) [2025-01-09 06:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:48:04' and `end` < '2025-01-09 06:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:48:18] Production.INFO: count ==61 [2025-01-09 06:48:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:48:04 - End Time 2025-01-09 06:48:04 [2025-01-09 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207843', 'tblTempUsageDetail_20' ) start [2025-01-09 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207843', 'tblTempUsageDetail_20' ) end [2025-01-09 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207843', 'tblTempVendorCDR_20' ) start [2025-01-09 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207843', 'tblTempVendorCDR_20' ) end [2025-01-09 06:48:18] Production.INFO: ProcessCDR(1,14207843,1,1,2) [2025-01-09 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207843', 'tblTempUsageDetail_20' ) start [2025-01-09 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207843', 'tblTempUsageDetail_20' ) end [2025-01-09 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:48:21] Production.INFO: ==32018== Releasing lock... [2025-01-09 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:49:05 [end_date_ymd] => 2025-01-09 06:49:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:49:05' and `end` < '2025-01-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-01-09 06:49:18] Production.INFO: count ==61 [2025-01-09 06:49:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:49:05 - End Time 2025-01-09 06:49:05 [2025-01-09 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207848', 'tblTempUsageDetail_20' ) start [2025-01-09 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207848', 'tblTempUsageDetail_20' ) end [2025-01-09 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207848', 'tblTempVendorCDR_20' ) start [2025-01-09 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207848', 'tblTempVendorCDR_20' ) end [2025-01-09 06:49:18] Production.INFO: ProcessCDR(1,14207848,1,1,2) [2025-01-09 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207848', 'tblTempUsageDetail_20' ) start [2025-01-09 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207848', 'tblTempUsageDetail_20' ) end [2025-01-09 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:49:22] Production.INFO: ==32131== Releasing lock... [2025-01-09 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:49:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:50:06 [end_date_ymd] => 2025-01-09 06:50:06 [RateCDR] => 1 ) [2025-01-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-01-09 03:50:06' and `end` < '2025-01-09 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:50:18] Production.INFO: count ==61 [2025-01-09 06:50:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:50:06 - End Time 2025-01-09 06:50:06 [2025-01-09 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207854', 'tblTempUsageDetail_20' ) start [2025-01-09 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207854', 'tblTempUsageDetail_20' ) end [2025-01-09 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207854', 'tblTempVendorCDR_20' ) start [2025-01-09 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207854', 'tblTempVendorCDR_20' ) end [2025-01-09 06:50:18] Production.INFO: ProcessCDR(1,14207854,1,1,2) [2025-01-09 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207854', 'tblTempUsageDetail_20' ) start [2025-01-09 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207854', 'tblTempUsageDetail_20' ) end [2025-01-09 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:50:22] Production.INFO: ==32204== Releasing lock... [2025-01-09 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:50:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:51:05 [end_date_ymd] => 2025-01-09 06:51:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:51:05' and `end` < '2025-01-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-01-09 06:51:19] Production.INFO: count ==61 [2025-01-09 06:51:19] Production.ERROR: pbx CDR StartTime 2025-01-09 03:51:05 - End Time 2025-01-09 06:51:05 [2025-01-09 06:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207859', 'tblTempUsageDetail_20' ) start [2025-01-09 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207859', 'tblTempUsageDetail_20' ) end [2025-01-09 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207859', 'tblTempVendorCDR_20' ) start [2025-01-09 06:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207859', 'tblTempVendorCDR_20' ) end [2025-01-09 06:51:19] Production.INFO: ProcessCDR(1,14207859,1,1,2) [2025-01-09 06:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207859', 'tblTempUsageDetail_20' ) start [2025-01-09 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207859', 'tblTempUsageDetail_20' ) end [2025-01-09 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:51:22] Production.INFO: ==32276== Releasing lock... [2025-01-09 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:51:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:52:06 [end_date_ymd] => 2025-01-09 06:52:06 [RateCDR] => 1 ) [2025-01-09 06:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:52:06' and `end` < '2025-01-09 06:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:52:19] Production.INFO: count ==61 [2025-01-09 06:52:19] Production.ERROR: pbx CDR StartTime 2025-01-09 03:52:06 - End Time 2025-01-09 06:52:06 [2025-01-09 06:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207864', 'tblTempUsageDetail_20' ) start [2025-01-09 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207864', 'tblTempUsageDetail_20' ) end [2025-01-09 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207864', 'tblTempVendorCDR_20' ) start [2025-01-09 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207864', 'tblTempVendorCDR_20' ) end [2025-01-09 06:52:19] Production.INFO: ProcessCDR(1,14207864,1,1,2) [2025-01-09 06:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207864', 'tblTempUsageDetail_20' ) start [2025-01-09 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207864', 'tblTempUsageDetail_20' ) end [2025-01-09 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:52:22] Production.INFO: ==32347== Releasing lock... [2025-01-09 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:52:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:53:04 [end_date_ymd] => 2025-01-09 06:53:04 [RateCDR] => 1 ) [2025-01-09 06:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:53:04' and `end` < '2025-01-09 06:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:53:17] Production.INFO: count ==61 [2025-01-09 06:53:17] Production.ERROR: pbx CDR StartTime 2025-01-09 03:53:04 - End Time 2025-01-09 06:53:04 [2025-01-09 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207869', 'tblTempUsageDetail_20' ) start [2025-01-09 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207869', 'tblTempUsageDetail_20' ) end [2025-01-09 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207869', 'tblTempVendorCDR_20' ) start [2025-01-09 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207869', 'tblTempVendorCDR_20' ) end [2025-01-09 06:53:17] Production.INFO: ProcessCDR(1,14207869,1,1,2) [2025-01-09 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207869', 'tblTempUsageDetail_20' ) start [2025-01-09 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207869', 'tblTempUsageDetail_20' ) end [2025-01-09 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:53:20] Production.INFO: ==32416== Releasing lock... [2025-01-09 06:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:53:20] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:54:05 [end_date_ymd] => 2025-01-09 06:54:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:54:05' and `end` < '2025-01-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-01-09 06:54:18] Production.INFO: count ==61 [2025-01-09 06:54:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:54:05 - End Time 2025-01-09 06:54:05 [2025-01-09 06:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207874', 'tblTempUsageDetail_20' ) start [2025-01-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207874', 'tblTempUsageDetail_20' ) end [2025-01-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207874', 'tblTempVendorCDR_20' ) start [2025-01-09 06:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207874', 'tblTempVendorCDR_20' ) end [2025-01-09 06:54:18] Production.INFO: ProcessCDR(1,14207874,1,1,2) [2025-01-09 06:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207874', 'tblTempUsageDetail_20' ) start [2025-01-09 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207874', 'tblTempUsageDetail_20' ) end [2025-01-09 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:54:21] Production.INFO: ==32492== Releasing lock... [2025-01-09 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:54:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:55:04 [end_date_ymd] => 2025-01-09 06:55:04 [RateCDR] => 1 ) [2025-01-09 06:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:55:04' and `end` < '2025-01-09 06:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:55:17] Production.INFO: count ==62 [2025-01-09 06:55:17] Production.ERROR: pbx CDR StartTime 2025-01-09 03:55:04 - End Time 2025-01-09 06:55:04 [2025-01-09 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207879', 'tblTempUsageDetail_20' ) start [2025-01-09 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207879', 'tblTempUsageDetail_20' ) end [2025-01-09 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207879', 'tblTempVendorCDR_20' ) start [2025-01-09 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207879', 'tblTempVendorCDR_20' ) end [2025-01-09 06:55:17] Production.INFO: ProcessCDR(1,14207879,1,1,2) [2025-01-09 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207879', 'tblTempUsageDetail_20' ) start [2025-01-09 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207879', 'tblTempUsageDetail_20' ) end [2025-01-09 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:55:20] Production.INFO: ==32562== Releasing lock... [2025-01-09 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:55:20] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:56:05 [end_date_ymd] => 2025-01-09 06:56:05 [RateCDR] => 1 ) [2025-01-09 06:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:56:05' and `end` < '2025-01-09 06:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:56:18] Production.INFO: count ==62 [2025-01-09 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:56:05 - End Time 2025-01-09 06:56:05 [2025-01-09 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207884', 'tblTempUsageDetail_20' ) start [2025-01-09 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207884', 'tblTempUsageDetail_20' ) end [2025-01-09 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207884', 'tblTempVendorCDR_20' ) start [2025-01-09 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207884', 'tblTempVendorCDR_20' ) end [2025-01-09 06:56:18] Production.INFO: ProcessCDR(1,14207884,1,1,2) [2025-01-09 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207884', 'tblTempUsageDetail_20' ) start [2025-01-09 06:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207884', 'tblTempUsageDetail_20' ) end [2025-01-09 06:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:56:22] Production.INFO: ==32635== Releasing lock... [2025-01-09 06:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:56:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:57:04 [end_date_ymd] => 2025-01-09 06:57:04 [RateCDR] => 1 ) [2025-01-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-01-09 03:57:04' and `end` < '2025-01-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-01-09 06:57:18] Production.INFO: count ==62 [2025-01-09 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:57:04 - End Time 2025-01-09 06:57:04 [2025-01-09 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207889', 'tblTempUsageDetail_20' ) start [2025-01-09 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207889', 'tblTempUsageDetail_20' ) end [2025-01-09 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207889', 'tblTempVendorCDR_20' ) start [2025-01-09 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207889', 'tblTempVendorCDR_20' ) end [2025-01-09 06:57:18] Production.INFO: ProcessCDR(1,14207889,1,1,2) [2025-01-09 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207889', 'tblTempUsageDetail_20' ) start [2025-01-09 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207889', 'tblTempUsageDetail_20' ) end [2025-01-09 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:57:21] Production.INFO: ==32709== Releasing lock... [2025-01-09 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:57:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:58:05 [end_date_ymd] => 2025-01-09 06:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 03:58:05' and `end` < '2025-01-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-01-09 06:58:18] Production.INFO: count ==62 [2025-01-09 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-09 03:58:05 - End Time 2025-01-09 06:58:05 [2025-01-09 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207894', 'tblTempUsageDetail_20' ) start [2025-01-09 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207894', 'tblTempUsageDetail_20' ) end [2025-01-09 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207894', 'tblTempVendorCDR_20' ) start [2025-01-09 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207894', 'tblTempVendorCDR_20' ) end [2025-01-09 06:58:18] Production.INFO: ProcessCDR(1,14207894,1,1,2) [2025-01-09 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207894', 'tblTempUsageDetail_20' ) start [2025-01-09 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207894', 'tblTempUsageDetail_20' ) end [2025-01-09 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:58:21] Production.INFO: ==320== Releasing lock... [2025-01-09 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:58:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 06:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 03:59:04 [end_date_ymd] => 2025-01-09 06:59:04 [RateCDR] => 1 ) [2025-01-09 06:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 03:59:04' and `end` < '2025-01-09 06:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 06:59:17] Production.INFO: count ==62 [2025-01-09 06:59:17] Production.ERROR: pbx CDR StartTime 2025-01-09 03:59:04 - End Time 2025-01-09 06:59:04 [2025-01-09 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207899', 'tblTempUsageDetail_20' ) start [2025-01-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207899', 'tblTempUsageDetail_20' ) end [2025-01-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207899', 'tblTempVendorCDR_20' ) start [2025-01-09 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207899', 'tblTempVendorCDR_20' ) end [2025-01-09 06:59:17] Production.INFO: ProcessCDR(1,14207899,1,1,2) [2025-01-09 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207899', 'tblTempUsageDetail_20' ) start [2025-01-09 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207899', 'tblTempUsageDetail_20' ) end [2025-01-09 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 06:59:21] Production.INFO: ==402== Releasing lock... [2025-01-09 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:00:06 [end_date_ymd] => 2025-01-09 07:00:06 [RateCDR] => 1 ) [2025-01-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-01-09 04:00:06' and `end` < '2025-01-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-01-09 07:00:19] Production.INFO: count ==62 [2025-01-09 07:00:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:00:06 - End Time 2025-01-09 07:00:06 [2025-01-09 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207905', 'tblTempUsageDetail_20' ) start [2025-01-09 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207905', 'tblTempUsageDetail_20' ) end [2025-01-09 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207905', 'tblTempVendorCDR_20' ) start [2025-01-09 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207905', 'tblTempVendorCDR_20' ) end [2025-01-09 07:00:19] Production.INFO: ProcessCDR(1,14207905,1,1,2) [2025-01-09 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207905', 'tblTempUsageDetail_20' ) start [2025-01-09 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207905', 'tblTempUsageDetail_20' ) end [2025-01-09 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:00:22] Production.INFO: ==477== Releasing lock... [2025-01-09 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:00:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:01:05 [end_date_ymd] => 2025-01-09 07:01:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:01:05' and `end` < '2025-01-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-01-09 07:01:43] Production.INFO: count ==62 [2025-01-09 07:01:43] Production.ERROR: pbx CDR StartTime 2025-01-09 04:01:05 - End Time 2025-01-09 07:01:05 [2025-01-09 07:01:43] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:01:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207910', 'tblTempUsageDetail_20' ) start [2025-01-09 07:01:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207910', 'tblTempUsageDetail_20' ) end [2025-01-09 07:01:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207910', 'tblTempVendorCDR_20' ) start [2025-01-09 07:01:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207910', 'tblTempVendorCDR_20' ) end [2025-01-09 07:01:43] Production.INFO: ProcessCDR(1,14207910,1,1,2) [2025-01-09 07:01:43] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:01:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:01:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:01:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:01:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207910', 'tblTempUsageDetail_20' ) start [2025-01-09 07:01:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207910', 'tblTempUsageDetail_20' ) end [2025-01-09 07:01:46] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:01:46] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:01:46] Production.INFO: ==656== Releasing lock... [2025-01-09 07:01:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:01:46] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:02:05 [end_date_ymd] => 2025-01-09 07:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:02:05' and `end` < '2025-01-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-01-09 07:02:21] Production.INFO: count ==62 [2025-01-09 07:02:21] Production.ERROR: pbx CDR StartTime 2025-01-09 04:02:05 - End Time 2025-01-09 07:02:05 [2025-01-09 07:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207915', 'tblTempUsageDetail_20' ) start [2025-01-09 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207915', 'tblTempUsageDetail_20' ) end [2025-01-09 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207915', 'tblTempVendorCDR_20' ) start [2025-01-09 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207915', 'tblTempVendorCDR_20' ) end [2025-01-09 07:02:21] Production.INFO: ProcessCDR(1,14207915,1,1,2) [2025-01-09 07:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207915', 'tblTempUsageDetail_20' ) start [2025-01-09 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207915', 'tblTempUsageDetail_20' ) end [2025-01-09 07:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:02:24] Production.INFO: ==752== Releasing lock... [2025-01-09 07:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:02:24] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:03:05 [end_date_ymd] => 2025-01-09 07:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:03:05' and `end` < '2025-01-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-01-09 07:03:20] Production.INFO: count ==62 [2025-01-09 07:03:20] Production.ERROR: pbx CDR StartTime 2025-01-09 04:03:05 - End Time 2025-01-09 07:03:05 [2025-01-09 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207920', 'tblTempUsageDetail_20' ) start [2025-01-09 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207920', 'tblTempUsageDetail_20' ) end [2025-01-09 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207920', 'tblTempVendorCDR_20' ) start [2025-01-09 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207920', 'tblTempVendorCDR_20' ) end [2025-01-09 07:03:20] Production.INFO: ProcessCDR(1,14207920,1,1,2) [2025-01-09 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207920', 'tblTempUsageDetail_20' ) start [2025-01-09 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207920', 'tblTempUsageDetail_20' ) end [2025-01-09 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:03:23] Production.INFO: ==823== Releasing lock... [2025-01-09 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:03:23] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:04:05 [end_date_ymd] => 2025-01-09 07:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:04:05' and `end` < '2025-01-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-01-09 07:04:22] Production.INFO: count ==65 [2025-01-09 07:04:22] Production.ERROR: pbx CDR StartTime 2025-01-09 04:04:05 - End Time 2025-01-09 07:04:05 [2025-01-09 07:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207925', 'tblTempUsageDetail_20' ) start [2025-01-09 07:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207925', 'tblTempUsageDetail_20' ) end [2025-01-09 07:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207925', 'tblTempVendorCDR_20' ) start [2025-01-09 07:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207925', 'tblTempVendorCDR_20' ) end [2025-01-09 07:04:22] Production.INFO: ProcessCDR(1,14207925,1,1,2) [2025-01-09 07:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207925', 'tblTempUsageDetail_20' ) start [2025-01-09 07:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207925', 'tblTempUsageDetail_20' ) end [2025-01-09 07:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:04:26] Production.INFO: ==892== Releasing lock... [2025-01-09 07:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:04:26] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:05:05 [end_date_ymd] => 2025-01-09 07:05:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:05:05' and `end` < '2025-01-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-01-09 07:05:19] Production.INFO: count ==65 [2025-01-09 07:05:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:05:05 - End Time 2025-01-09 07:05:05 [2025-01-09 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207930', 'tblTempUsageDetail_20' ) start [2025-01-09 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207930', 'tblTempUsageDetail_20' ) end [2025-01-09 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207930', 'tblTempVendorCDR_20' ) start [2025-01-09 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207930', 'tblTempVendorCDR_20' ) end [2025-01-09 07:05:19] Production.INFO: ProcessCDR(1,14207930,1,1,2) [2025-01-09 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207930', 'tblTempUsageDetail_20' ) start [2025-01-09 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207930', 'tblTempUsageDetail_20' ) end [2025-01-09 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:05:22] Production.INFO: ==1082== Releasing lock... [2025-01-09 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:05:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:06:05 [end_date_ymd] => 2025-01-09 07:06:05 [RateCDR] => 1 ) [2025-01-09 07:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:06:05' and `end` < '2025-01-09 07:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:06:20] Production.INFO: count ==65 [2025-01-09 07:06:20] Production.ERROR: pbx CDR StartTime 2025-01-09 04:06:05 - End Time 2025-01-09 07:06:05 [2025-01-09 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207935', 'tblTempUsageDetail_20' ) start [2025-01-09 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207935', 'tblTempUsageDetail_20' ) end [2025-01-09 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207935', 'tblTempVendorCDR_20' ) start [2025-01-09 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207935', 'tblTempVendorCDR_20' ) end [2025-01-09 07:06:20] Production.INFO: ProcessCDR(1,14207935,1,1,2) [2025-01-09 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207935', 'tblTempUsageDetail_20' ) start [2025-01-09 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207935', 'tblTempUsageDetail_20' ) end [2025-01-09 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:06:23] Production.INFO: ==1158== Releasing lock... [2025-01-09 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:06:23] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:07:05 [end_date_ymd] => 2025-01-09 07:07:05 [RateCDR] => 1 ) [2025-01-09 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:07:05' and `end` < '2025-01-09 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:07:20] Production.INFO: count ==65 [2025-01-09 07:07:20] Production.ERROR: pbx CDR StartTime 2025-01-09 04:07:05 - End Time 2025-01-09 07:07:05 [2025-01-09 07:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207939', 'tblTempUsageDetail_20' ) start [2025-01-09 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207939', 'tblTempUsageDetail_20' ) end [2025-01-09 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207939', 'tblTempVendorCDR_20' ) start [2025-01-09 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207939', 'tblTempVendorCDR_20' ) end [2025-01-09 07:07:20] Production.INFO: ProcessCDR(1,14207939,1,1,2) [2025-01-09 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207939', 'tblTempUsageDetail_20' ) start [2025-01-09 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207939', 'tblTempUsageDetail_20' ) end [2025-01-09 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:07:23] Production.INFO: ==1234== Releasing lock... [2025-01-09 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:07:23] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:08:05 [end_date_ymd] => 2025-01-09 07:08:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:08:05' and `end` < '2025-01-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-01-09 07:08:19] Production.INFO: count ==65 [2025-01-09 07:08:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:08:05 - End Time 2025-01-09 07:08:05 [2025-01-09 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207945', 'tblTempUsageDetail_20' ) start [2025-01-09 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207945', 'tblTempUsageDetail_20' ) end [2025-01-09 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207945', 'tblTempVendorCDR_20' ) start [2025-01-09 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207945', 'tblTempVendorCDR_20' ) end [2025-01-09 07:08:19] Production.INFO: ProcessCDR(1,14207945,1,1,2) [2025-01-09 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207945', 'tblTempUsageDetail_20' ) start [2025-01-09 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207945', 'tblTempUsageDetail_20' ) end [2025-01-09 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:08:23] Production.INFO: ==1393== Releasing lock... [2025-01-09 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:08:23] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:09:05 [end_date_ymd] => 2025-01-09 07:09:05 [RateCDR] => 1 ) [2025-01-09 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:09:05' and `end` < '2025-01-09 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:09:22] Production.INFO: count ==65 [2025-01-09 07:09:22] Production.ERROR: pbx CDR StartTime 2025-01-09 04:09:05 - End Time 2025-01-09 07:09:05 [2025-01-09 07:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207950', 'tblTempUsageDetail_20' ) start [2025-01-09 07:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207950', 'tblTempUsageDetail_20' ) end [2025-01-09 07:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207950', 'tblTempVendorCDR_20' ) start [2025-01-09 07:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207950', 'tblTempVendorCDR_20' ) end [2025-01-09 07:09:22] Production.INFO: ProcessCDR(1,14207950,1,1,2) [2025-01-09 07:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207950', 'tblTempUsageDetail_20' ) start [2025-01-09 07:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207950', 'tblTempUsageDetail_20' ) end [2025-01-09 07:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:09:25] Production.INFO: ==1465== Releasing lock... [2025-01-09 07:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:09:25] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:10:06 [end_date_ymd] => 2025-01-09 07:10:06 [RateCDR] => 1 ) [2025-01-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-01-09 04:10:06' and `end` < '2025-01-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-01-09 07:10:22] Production.INFO: count ==65 [2025-01-09 07:10:22] Production.ERROR: pbx CDR StartTime 2025-01-09 04:10:06 - End Time 2025-01-09 07:10:06 [2025-01-09 07:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207956', 'tblTempUsageDetail_20' ) start [2025-01-09 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207956', 'tblTempUsageDetail_20' ) end [2025-01-09 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207956', 'tblTempVendorCDR_20' ) start [2025-01-09 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207956', 'tblTempVendorCDR_20' ) end [2025-01-09 07:10:22] Production.INFO: ProcessCDR(1,14207956,1,1,2) [2025-01-09 07:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207956', 'tblTempUsageDetail_20' ) start [2025-01-09 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207956', 'tblTempUsageDetail_20' ) end [2025-01-09 07:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:10:25] Production.INFO: ==1575== Releasing lock... [2025-01-09 07:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:10:25] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:11:05 [end_date_ymd] => 2025-01-09 07:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:11:05' and `end` < '2025-01-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-01-09 07:11:19] Production.INFO: count ==65 [2025-01-09 07:11:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:11:05 - End Time 2025-01-09 07:11:05 [2025-01-09 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207961', 'tblTempUsageDetail_20' ) start [2025-01-09 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207961', 'tblTempUsageDetail_20' ) end [2025-01-09 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207961', 'tblTempVendorCDR_20' ) start [2025-01-09 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207961', 'tblTempVendorCDR_20' ) end [2025-01-09 07:11:19] Production.INFO: ProcessCDR(1,14207961,1,1,2) [2025-01-09 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207961', 'tblTempUsageDetail_20' ) start [2025-01-09 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207961', 'tblTempUsageDetail_20' ) end [2025-01-09 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:11:23] Production.INFO: ==1646== Releasing lock... [2025-01-09 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:11:23] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:12:05 [end_date_ymd] => 2025-01-09 07:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:12:05' and `end` < '2025-01-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-01-09 07:12:21] Production.INFO: count ==66 [2025-01-09 07:12:21] Production.ERROR: pbx CDR StartTime 2025-01-09 04:12:05 - End Time 2025-01-09 07:12:05 [2025-01-09 07:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207966', 'tblTempUsageDetail_20' ) start [2025-01-09 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207966', 'tblTempUsageDetail_20' ) end [2025-01-09 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207966', 'tblTempVendorCDR_20' ) start [2025-01-09 07:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207966', 'tblTempVendorCDR_20' ) end [2025-01-09 07:12:21] Production.INFO: ProcessCDR(1,14207966,1,1,2) [2025-01-09 07:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207966', 'tblTempUsageDetail_20' ) start [2025-01-09 07:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207966', 'tblTempUsageDetail_20' ) end [2025-01-09 07:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:12:25] Production.INFO: ==1795== Releasing lock... [2025-01-09 07:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:12:25] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:13:05 [end_date_ymd] => 2025-01-09 07:13:05 [RateCDR] => 1 ) [2025-01-09 07:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:13:05' and `end` < '2025-01-09 07:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:13:20] Production.INFO: count ==66 [2025-01-09 07:13:20] Production.ERROR: pbx CDR StartTime 2025-01-09 04:13:05 - End Time 2025-01-09 07:13:05 [2025-01-09 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207971', 'tblTempUsageDetail_20' ) start [2025-01-09 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207971', 'tblTempUsageDetail_20' ) end [2025-01-09 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207971', 'tblTempVendorCDR_20' ) start [2025-01-09 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207971', 'tblTempVendorCDR_20' ) end [2025-01-09 07:13:20] Production.INFO: ProcessCDR(1,14207971,1,1,2) [2025-01-09 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207971', 'tblTempUsageDetail_20' ) start [2025-01-09 07:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207971', 'tblTempUsageDetail_20' ) end [2025-01-09 07:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:13:23] Production.INFO: ==1875== Releasing lock... [2025-01-09 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:13:23] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:14:06 [end_date_ymd] => 2025-01-09 07:14:06 [RateCDR] => 1 ) [2025-01-09 07:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:14:06' and `end` < '2025-01-09 07:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:14:21] Production.INFO: count ==66 [2025-01-09 07:14:21] Production.ERROR: pbx CDR StartTime 2025-01-09 04:14:06 - End Time 2025-01-09 07:14:06 [2025-01-09 07:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207976', 'tblTempUsageDetail_20' ) start [2025-01-09 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207976', 'tblTempUsageDetail_20' ) end [2025-01-09 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207976', 'tblTempVendorCDR_20' ) start [2025-01-09 07:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207976', 'tblTempVendorCDR_20' ) end [2025-01-09 07:14:21] Production.INFO: ProcessCDR(1,14207976,1,1,2) [2025-01-09 07:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207976', 'tblTempUsageDetail_20' ) start [2025-01-09 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207976', 'tblTempUsageDetail_20' ) end [2025-01-09 07:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:14:24] Production.INFO: ==1949== Releasing lock... [2025-01-09 07:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:14:24] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:15:04 [end_date_ymd] => 2025-01-09 07:15:04 [RateCDR] => 1 ) [2025-01-09 07:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:15:04' and `end` < '2025-01-09 07:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:15:19] Production.INFO: count ==66 [2025-01-09 07:15:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:15:04 - End Time 2025-01-09 07:15:04 [2025-01-09 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207981', 'tblTempUsageDetail_20' ) start [2025-01-09 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207981', 'tblTempUsageDetail_20' ) end [2025-01-09 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207981', 'tblTempVendorCDR_20' ) start [2025-01-09 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207981', 'tblTempVendorCDR_20' ) end [2025-01-09 07:15:19] Production.INFO: ProcessCDR(1,14207981,1,1,2) [2025-01-09 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207981', 'tblTempUsageDetail_20' ) start [2025-01-09 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207981', 'tblTempUsageDetail_20' ) end [2025-01-09 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:15:22] Production.INFO: ==2104== Releasing lock... [2025-01-09 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:15:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:16:05 [end_date_ymd] => 2025-01-09 07:16:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:16:05' and `end` < '2025-01-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-01-09 07:16:20] Production.INFO: count ==66 [2025-01-09 07:16:20] Production.ERROR: pbx CDR StartTime 2025-01-09 04:16:05 - End Time 2025-01-09 07:16:05 [2025-01-09 07:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207986', 'tblTempUsageDetail_20' ) start [2025-01-09 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207986', 'tblTempUsageDetail_20' ) end [2025-01-09 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207986', 'tblTempVendorCDR_20' ) start [2025-01-09 07:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207986', 'tblTempVendorCDR_20' ) end [2025-01-09 07:16:20] Production.INFO: ProcessCDR(1,14207986,1,1,2) [2025-01-09 07:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207986', 'tblTempUsageDetail_20' ) start [2025-01-09 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207986', 'tblTempUsageDetail_20' ) end [2025-01-09 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:16:23] Production.INFO: ==2180== Releasing lock... [2025-01-09 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:16:23] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:17:05 [end_date_ymd] => 2025-01-09 07:17:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:17:05' and `end` < '2025-01-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-01-09 07:17:20] Production.INFO: count ==66 [2025-01-09 07:17:20] Production.ERROR: pbx CDR StartTime 2025-01-09 04:17:05 - End Time 2025-01-09 07:17:05 [2025-01-09 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207991', 'tblTempUsageDetail_20' ) start [2025-01-09 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207991', 'tblTempUsageDetail_20' ) end [2025-01-09 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207991', 'tblTempVendorCDR_20' ) start [2025-01-09 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207991', 'tblTempVendorCDR_20' ) end [2025-01-09 07:17:20] Production.INFO: ProcessCDR(1,14207991,1,1,2) [2025-01-09 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207991', 'tblTempUsageDetail_20' ) start [2025-01-09 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207991', 'tblTempUsageDetail_20' ) end [2025-01-09 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:17:23] Production.INFO: ==2252== Releasing lock... [2025-01-09 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:17:23] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:18:05 [end_date_ymd] => 2025-01-09 07:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:18:05' and `end` < '2025-01-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-01-09 07:18:23] Production.INFO: count ==66 [2025-01-09 07:18:23] Production.ERROR: pbx CDR StartTime 2025-01-09 04:18:05 - End Time 2025-01-09 07:18:05 [2025-01-09 07:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207996', 'tblTempUsageDetail_20' ) start [2025-01-09 07:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14207996', 'tblTempUsageDetail_20' ) end [2025-01-09 07:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207996', 'tblTempVendorCDR_20' ) start [2025-01-09 07:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14207996', 'tblTempVendorCDR_20' ) end [2025-01-09 07:18:23] Production.INFO: ProcessCDR(1,14207996,1,1,2) [2025-01-09 07:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14207996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14207996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14207996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14207996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207996', 'tblTempUsageDetail_20' ) start [2025-01-09 07:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14207996', 'tblTempUsageDetail_20' ) end [2025-01-09 07:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:18:26] Production.INFO: ==2322== Releasing lock... [2025-01-09 07:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:18:26] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:19:05 [end_date_ymd] => 2025-01-09 07:19:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:19:05' and `end` < '2025-01-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-01-09 07:19:18] Production.INFO: count ==66 [2025-01-09 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:19:05 - End Time 2025-01-09 07:19:05 [2025-01-09 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208001', 'tblTempUsageDetail_20' ) start [2025-01-09 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208001', 'tblTempUsageDetail_20' ) end [2025-01-09 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208001', 'tblTempVendorCDR_20' ) start [2025-01-09 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208001', 'tblTempVendorCDR_20' ) end [2025-01-09 07:19:18] Production.INFO: ProcessCDR(1,14208001,1,1,2) [2025-01-09 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208001', 'tblTempUsageDetail_20' ) start [2025-01-09 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208001', 'tblTempUsageDetail_20' ) end [2025-01-09 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:19:21] Production.INFO: ==2396== Releasing lock... [2025-01-09 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:20:06 [end_date_ymd] => 2025-01-09 07:20:06 [RateCDR] => 1 ) [2025-01-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-01-09 04:20:06' and `end` < '2025-01-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-01-09 07:20:19] Production.INFO: count ==60 [2025-01-09 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:20:06 - End Time 2025-01-09 07:20:06 [2025-01-09 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208007', 'tblTempUsageDetail_20' ) start [2025-01-09 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208007', 'tblTempUsageDetail_20' ) end [2025-01-09 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208007', 'tblTempVendorCDR_20' ) start [2025-01-09 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208007', 'tblTempVendorCDR_20' ) end [2025-01-09 07:20:19] Production.INFO: ProcessCDR(1,14208007,1,1,2) [2025-01-09 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208007', 'tblTempUsageDetail_20' ) start [2025-01-09 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208007', 'tblTempUsageDetail_20' ) end [2025-01-09 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:20:22] Production.INFO: ==2468== Releasing lock... [2025-01-09 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:20:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:21:05 [end_date_ymd] => 2025-01-09 07:21:05 [RateCDR] => 1 ) [2025-01-09 07:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:21:05' and `end` < '2025-01-09 07:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:21:18] Production.INFO: count ==58 [2025-01-09 07:21:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:21:05 - End Time 2025-01-09 07:21:05 [2025-01-09 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208012', 'tblTempUsageDetail_20' ) start [2025-01-09 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208012', 'tblTempUsageDetail_20' ) end [2025-01-09 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208012', 'tblTempVendorCDR_20' ) start [2025-01-09 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208012', 'tblTempVendorCDR_20' ) end [2025-01-09 07:21:18] Production.INFO: ProcessCDR(1,14208012,1,1,2) [2025-01-09 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208012', 'tblTempUsageDetail_20' ) start [2025-01-09 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208012', 'tblTempUsageDetail_20' ) end [2025-01-09 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:21:21] Production.INFO: ==2580== Releasing lock... [2025-01-09 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:21:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:22:05 [end_date_ymd] => 2025-01-09 07:22:05 [RateCDR] => 1 ) [2025-01-09 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:22:05' and `end` < '2025-01-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-01-09 07:22:34] Production.INFO: count ==58 [2025-01-09 07:22:34] Production.ERROR: pbx CDR StartTime 2025-01-09 04:22:05 - End Time 2025-01-09 07:22:05 [2025-01-09 07:22:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:22:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208017', 'tblTempUsageDetail_20' ) start [2025-01-09 07:22:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208017', 'tblTempUsageDetail_20' ) end [2025-01-09 07:22:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208017', 'tblTempVendorCDR_20' ) start [2025-01-09 07:22:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208017', 'tblTempVendorCDR_20' ) end [2025-01-09 07:22:34] Production.INFO: ProcessCDR(1,14208017,1,1,2) [2025-01-09 07:22:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:22:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:22:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:22:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:22:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208017', 'tblTempUsageDetail_20' ) start [2025-01-09 07:22:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208017', 'tblTempUsageDetail_20' ) end [2025-01-09 07:22:38] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:22:38] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:22:38] Production.INFO: ==2652== Releasing lock... [2025-01-09 07:22:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:22:38] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:23:04 [end_date_ymd] => 2025-01-09 07:23:04 [RateCDR] => 1 ) [2025-01-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-01-09 04:23:04' and `end` < '2025-01-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-01-09 07:23:19] Production.INFO: count ==58 [2025-01-09 07:23:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:23:04 - End Time 2025-01-09 07:23:04 [2025-01-09 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208022', 'tblTempUsageDetail_20' ) start [2025-01-09 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208022', 'tblTempUsageDetail_20' ) end [2025-01-09 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208022', 'tblTempVendorCDR_20' ) start [2025-01-09 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208022', 'tblTempVendorCDR_20' ) end [2025-01-09 07:23:19] Production.INFO: ProcessCDR(1,14208022,1,1,2) [2025-01-09 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208022', 'tblTempUsageDetail_20' ) start [2025-01-09 07:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208022', 'tblTempUsageDetail_20' ) end [2025-01-09 07:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:23:22] Production.INFO: ==2726== Releasing lock... [2025-01-09 07:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:23:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:24:05 [end_date_ymd] => 2025-01-09 07:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:24:05' and `end` < '2025-01-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-01-09 07:24:18] Production.INFO: count ==58 [2025-01-09 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:24:05 - End Time 2025-01-09 07:24:05 [2025-01-09 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208027', 'tblTempUsageDetail_20' ) start [2025-01-09 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208027', 'tblTempUsageDetail_20' ) end [2025-01-09 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208027', 'tblTempVendorCDR_20' ) start [2025-01-09 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208027', 'tblTempVendorCDR_20' ) end [2025-01-09 07:24:18] Production.INFO: ProcessCDR(1,14208027,1,1,2) [2025-01-09 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208027', 'tblTempUsageDetail_20' ) start [2025-01-09 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208027', 'tblTempUsageDetail_20' ) end [2025-01-09 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:24:21] Production.INFO: ==2796== Releasing lock... [2025-01-09 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:25:04 [end_date_ymd] => 2025-01-09 07:25:04 [RateCDR] => 1 ) [2025-01-09 07:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:25:04' and `end` < '2025-01-09 07:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:25:17] Production.INFO: count ==58 [2025-01-09 07:25:17] Production.ERROR: pbx CDR StartTime 2025-01-09 04:25:04 - End Time 2025-01-09 07:25:04 [2025-01-09 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208032', 'tblTempUsageDetail_20' ) start [2025-01-09 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208032', 'tblTempUsageDetail_20' ) end [2025-01-09 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208032', 'tblTempVendorCDR_20' ) start [2025-01-09 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208032', 'tblTempVendorCDR_20' ) end [2025-01-09 07:25:17] Production.INFO: ProcessCDR(1,14208032,1,1,2) [2025-01-09 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208032', 'tblTempUsageDetail_20' ) start [2025-01-09 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208032', 'tblTempUsageDetail_20' ) end [2025-01-09 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:25:20] Production.INFO: ==2867== Releasing lock... [2025-01-09 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:25:20] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:26:05 [end_date_ymd] => 2025-01-09 07:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:26:05' and `end` < '2025-01-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-01-09 07:26:19] Production.INFO: count ==58 [2025-01-09 07:26:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:26:05 - End Time 2025-01-09 07:26:05 [2025-01-09 07:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208037', 'tblTempUsageDetail_20' ) start [2025-01-09 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208037', 'tblTempUsageDetail_20' ) end [2025-01-09 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208037', 'tblTempVendorCDR_20' ) start [2025-01-09 07:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208037', 'tblTempVendorCDR_20' ) end [2025-01-09 07:26:19] Production.INFO: ProcessCDR(1,14208037,1,1,2) [2025-01-09 07:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208037', 'tblTempUsageDetail_20' ) start [2025-01-09 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208037', 'tblTempUsageDetail_20' ) end [2025-01-09 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:26:22] Production.INFO: ==2941== Releasing lock... [2025-01-09 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:26:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:27:04 [end_date_ymd] => 2025-01-09 07:27:04 [RateCDR] => 1 ) [2025-01-09 07:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:27:04' and `end` < '2025-01-09 07:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:27:19] Production.INFO: count ==58 [2025-01-09 07:27:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:27:04 - End Time 2025-01-09 07:27:04 [2025-01-09 07:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208042', 'tblTempUsageDetail_20' ) start [2025-01-09 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208042', 'tblTempUsageDetail_20' ) end [2025-01-09 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208042', 'tblTempVendorCDR_20' ) start [2025-01-09 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208042', 'tblTempVendorCDR_20' ) end [2025-01-09 07:27:19] Production.INFO: ProcessCDR(1,14208042,1,1,2) [2025-01-09 07:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208042', 'tblTempUsageDetail_20' ) start [2025-01-09 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208042', 'tblTempUsageDetail_20' ) end [2025-01-09 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:27:22] Production.INFO: ==3011== Releasing lock... [2025-01-09 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:28:04 [end_date_ymd] => 2025-01-09 07:28:04 [RateCDR] => 1 ) [2025-01-09 07:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:28:04' and `end` < '2025-01-09 07:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:28:18] Production.INFO: count ==58 [2025-01-09 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:28:04 - End Time 2025-01-09 07:28:04 [2025-01-09 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208047', 'tblTempUsageDetail_20' ) start [2025-01-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208047', 'tblTempUsageDetail_20' ) end [2025-01-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208047', 'tblTempVendorCDR_20' ) start [2025-01-09 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208047', 'tblTempVendorCDR_20' ) end [2025-01-09 07:28:18] Production.INFO: ProcessCDR(1,14208047,1,1,2) [2025-01-09 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208047', 'tblTempUsageDetail_20' ) start [2025-01-09 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208047', 'tblTempUsageDetail_20' ) end [2025-01-09 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:28:21] Production.INFO: ==3083== Releasing lock... [2025-01-09 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:28:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:29:05 [end_date_ymd] => 2025-01-09 07:29:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:29:05' and `end` < '2025-01-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-01-09 07:29:17] Production.INFO: count ==58 [2025-01-09 07:29:17] Production.ERROR: pbx CDR StartTime 2025-01-09 04:29:05 - End Time 2025-01-09 07:29:05 [2025-01-09 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208052', 'tblTempUsageDetail_20' ) start [2025-01-09 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208052', 'tblTempUsageDetail_20' ) end [2025-01-09 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208052', 'tblTempVendorCDR_20' ) start [2025-01-09 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208052', 'tblTempVendorCDR_20' ) end [2025-01-09 07:29:17] Production.INFO: ProcessCDR(1,14208052,1,1,2) [2025-01-09 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208052', 'tblTempUsageDetail_20' ) start [2025-01-09 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208052', 'tblTempUsageDetail_20' ) end [2025-01-09 07:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:29:20] Production.INFO: ==3155== Releasing lock... [2025-01-09 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:29:20] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:30:05 [end_date_ymd] => 2025-01-09 07:30:05 [RateCDR] => 1 ) [2025-01-09 07:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:30:05' and `end` < '2025-01-09 07:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:30:18] Production.INFO: count ==54 [2025-01-09 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:30:05 - End Time 2025-01-09 07:30:05 [2025-01-09 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208058', 'tblTempUsageDetail_20' ) start [2025-01-09 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208058', 'tblTempUsageDetail_20' ) end [2025-01-09 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208058', 'tblTempVendorCDR_20' ) start [2025-01-09 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208058', 'tblTempVendorCDR_20' ) end [2025-01-09 07:30:18] Production.INFO: ProcessCDR(1,14208058,1,1,2) [2025-01-09 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208058', 'tblTempUsageDetail_20' ) start [2025-01-09 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208058', 'tblTempUsageDetail_20' ) end [2025-01-09 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:30:21] Production.INFO: ==3234== Releasing lock... [2025-01-09 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:31:05 [end_date_ymd] => 2025-01-09 07:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:31:05' and `end` < '2025-01-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-01-09 07:31:18] Production.INFO: count ==54 [2025-01-09 07:31:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:31:05 - End Time 2025-01-09 07:31:05 [2025-01-09 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208063', 'tblTempUsageDetail_20' ) start [2025-01-09 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208063', 'tblTempUsageDetail_20' ) end [2025-01-09 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208063', 'tblTempVendorCDR_20' ) start [2025-01-09 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208063', 'tblTempVendorCDR_20' ) end [2025-01-09 07:31:18] Production.INFO: ProcessCDR(1,14208063,1,1,2) [2025-01-09 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208063', 'tblTempUsageDetail_20' ) start [2025-01-09 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208063', 'tblTempUsageDetail_20' ) end [2025-01-09 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:31:22] Production.INFO: ==3308== Releasing lock... [2025-01-09 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:31:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:32:04 [end_date_ymd] => 2025-01-09 07:32:04 [RateCDR] => 1 ) [2025-01-09 07:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:32:04' and `end` < '2025-01-09 07:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:32:18] Production.INFO: count ==54 [2025-01-09 07:32:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:32:04 - End Time 2025-01-09 07:32:04 [2025-01-09 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208068', 'tblTempUsageDetail_20' ) start [2025-01-09 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208068', 'tblTempUsageDetail_20' ) end [2025-01-09 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208068', 'tblTempVendorCDR_20' ) start [2025-01-09 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208068', 'tblTempVendorCDR_20' ) end [2025-01-09 07:32:18] Production.INFO: ProcessCDR(1,14208068,1,1,2) [2025-01-09 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208068', 'tblTempUsageDetail_20' ) start [2025-01-09 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208068', 'tblTempUsageDetail_20' ) end [2025-01-09 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:32:21] Production.INFO: ==3378== Releasing lock... [2025-01-09 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:33:05 [end_date_ymd] => 2025-01-09 07:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:33:05' and `end` < '2025-01-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-01-09 07:33:19] Production.INFO: count ==54 [2025-01-09 07:33:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:33:05 - End Time 2025-01-09 07:33:05 [2025-01-09 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208073', 'tblTempUsageDetail_20' ) start [2025-01-09 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208073', 'tblTempUsageDetail_20' ) end [2025-01-09 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208073', 'tblTempVendorCDR_20' ) start [2025-01-09 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208073', 'tblTempVendorCDR_20' ) end [2025-01-09 07:33:19] Production.INFO: ProcessCDR(1,14208073,1,1,2) [2025-01-09 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208073', 'tblTempUsageDetail_20' ) start [2025-01-09 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208073', 'tblTempUsageDetail_20' ) end [2025-01-09 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:33:22] Production.INFO: ==3450== Releasing lock... [2025-01-09 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:33:22] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:34:05 [end_date_ymd] => 2025-01-09 07:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:34:05' and `end` < '2025-01-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-01-09 07:34:18] Production.INFO: count ==54 [2025-01-09 07:34:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:34:05 - End Time 2025-01-09 07:34:05 [2025-01-09 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208078', 'tblTempUsageDetail_20' ) start [2025-01-09 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208078', 'tblTempUsageDetail_20' ) end [2025-01-09 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208078', 'tblTempVendorCDR_20' ) start [2025-01-09 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208078', 'tblTempVendorCDR_20' ) end [2025-01-09 07:34:18] Production.INFO: ProcessCDR(1,14208078,1,1,2) [2025-01-09 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208078', 'tblTempUsageDetail_20' ) start [2025-01-09 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208078', 'tblTempUsageDetail_20' ) end [2025-01-09 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:34:21] Production.INFO: ==3540== Releasing lock... [2025-01-09 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:35:05 [end_date_ymd] => 2025-01-09 07:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:35:05' and `end` < '2025-01-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-01-09 07:35:18] Production.INFO: count ==54 [2025-01-09 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:35:05 - End Time 2025-01-09 07:35:05 [2025-01-09 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208083', 'tblTempUsageDetail_20' ) start [2025-01-09 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208083', 'tblTempUsageDetail_20' ) end [2025-01-09 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208083', 'tblTempVendorCDR_20' ) start [2025-01-09 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208083', 'tblTempVendorCDR_20' ) end [2025-01-09 07:35:18] Production.INFO: ProcessCDR(1,14208083,1,1,2) [2025-01-09 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208083', 'tblTempUsageDetail_20' ) start [2025-01-09 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208083', 'tblTempUsageDetail_20' ) end [2025-01-09 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:35:21] Production.INFO: ==3610== Releasing lock... [2025-01-09 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:36:05 [end_date_ymd] => 2025-01-09 07:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:36:05' and `end` < '2025-01-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-01-09 07:36:17] Production.INFO: count ==54 [2025-01-09 07:36:17] Production.ERROR: pbx CDR StartTime 2025-01-09 04:36:05 - End Time 2025-01-09 07:36:05 [2025-01-09 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208088', 'tblTempUsageDetail_20' ) start [2025-01-09 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208088', 'tblTempUsageDetail_20' ) end [2025-01-09 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208088', 'tblTempVendorCDR_20' ) start [2025-01-09 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208088', 'tblTempVendorCDR_20' ) end [2025-01-09 07:36:17] Production.INFO: ProcessCDR(1,14208088,1,1,2) [2025-01-09 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208088', 'tblTempUsageDetail_20' ) start [2025-01-09 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208088', 'tblTempUsageDetail_20' ) end [2025-01-09 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:36:21] Production.INFO: ==3719== Releasing lock... [2025-01-09 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:37:04 [end_date_ymd] => 2025-01-09 07:37:04 [RateCDR] => 1 ) [2025-01-09 07:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:37:04' and `end` < '2025-01-09 07:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:37:18] Production.INFO: count ==54 [2025-01-09 07:37:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:37:04 - End Time 2025-01-09 07:37:04 [2025-01-09 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208093', 'tblTempUsageDetail_20' ) start [2025-01-09 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208093', 'tblTempUsageDetail_20' ) end [2025-01-09 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208093', 'tblTempVendorCDR_20' ) start [2025-01-09 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208093', 'tblTempVendorCDR_20' ) end [2025-01-09 07:37:18] Production.INFO: ProcessCDR(1,14208093,1,1,2) [2025-01-09 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208093', 'tblTempUsageDetail_20' ) start [2025-01-09 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208093', 'tblTempUsageDetail_20' ) end [2025-01-09 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:37:21] Production.INFO: ==3788== Releasing lock... [2025-01-09 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:37:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:38:05 [end_date_ymd] => 2025-01-09 07:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:38:05' and `end` < '2025-01-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-01-09 07:38:18] Production.INFO: count ==55 [2025-01-09 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:38:05 - End Time 2025-01-09 07:38:05 [2025-01-09 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208098', 'tblTempUsageDetail_20' ) start [2025-01-09 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208098', 'tblTempUsageDetail_20' ) end [2025-01-09 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208098', 'tblTempVendorCDR_20' ) start [2025-01-09 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208098', 'tblTempVendorCDR_20' ) end [2025-01-09 07:38:18] Production.INFO: ProcessCDR(1,14208098,1,1,2) [2025-01-09 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208098', 'tblTempUsageDetail_20' ) start [2025-01-09 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208098', 'tblTempUsageDetail_20' ) end [2025-01-09 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:38:21] Production.INFO: ==3863== Releasing lock... [2025-01-09 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:39:05 [end_date_ymd] => 2025-01-09 07:39:05 [RateCDR] => 1 ) [2025-01-09 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:39:05' and `end` < '2025-01-09 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:39:18] Production.INFO: count ==55 [2025-01-09 07:39:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:39:05 - End Time 2025-01-09 07:39:05 [2025-01-09 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208103', 'tblTempUsageDetail_20' ) start [2025-01-09 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208103', 'tblTempUsageDetail_20' ) end [2025-01-09 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208103', 'tblTempVendorCDR_20' ) start [2025-01-09 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208103', 'tblTempVendorCDR_20' ) end [2025-01-09 07:39:18] Production.INFO: ProcessCDR(1,14208103,1,1,2) [2025-01-09 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208103', 'tblTempUsageDetail_20' ) start [2025-01-09 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208103', 'tblTempUsageDetail_20' ) end [2025-01-09 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:39:21] Production.INFO: ==3933== Releasing lock... [2025-01-09 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:39:21] Production.INFO: 28 MB #Memory Used# [2025-01-09 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:40:06 [end_date_ymd] => 2025-01-09 07:40:06 [RateCDR] => 1 ) [2025-01-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-01-09 04:40:06' and `end` < '2025-01-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-01-09 07:40:19] Production.INFO: count ==76 [2025-01-09 07:40:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:40:06 - End Time 2025-01-09 07:40:06 [2025-01-09 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208109', 'tblTempUsageDetail_20' ) start [2025-01-09 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208109', 'tblTempUsageDetail_20' ) end [2025-01-09 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208109', 'tblTempVendorCDR_20' ) start [2025-01-09 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208109', 'tblTempVendorCDR_20' ) end [2025-01-09 07:40:19] Production.INFO: ProcessCDR(1,14208109,1,1,2) [2025-01-09 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208109', 'tblTempUsageDetail_20' ) start [2025-01-09 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208109', 'tblTempUsageDetail_20' ) end [2025-01-09 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:40:22] Production.INFO: ==4005== Releasing lock... [2025-01-09 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:41:04 [end_date_ymd] => 2025-01-09 07:41:04 [RateCDR] => 1 ) [2025-01-09 07:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:41:04' and `end` < '2025-01-09 07:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:41:18] Production.INFO: count ==79 [2025-01-09 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:41:04 - End Time 2025-01-09 07:41:04 [2025-01-09 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208114', 'tblTempUsageDetail_20' ) start [2025-01-09 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208114', 'tblTempUsageDetail_20' ) end [2025-01-09 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208114', 'tblTempVendorCDR_20' ) start [2025-01-09 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208114', 'tblTempVendorCDR_20' ) end [2025-01-09 07:41:18] Production.INFO: ProcessCDR(1,14208114,1,1,2) [2025-01-09 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208114', 'tblTempUsageDetail_20' ) start [2025-01-09 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208114', 'tblTempUsageDetail_20' ) end [2025-01-09 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:41:21] Production.INFO: ==4078== Releasing lock... [2025-01-09 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:41:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:42:05 [end_date_ymd] => 2025-01-09 07:42:05 [RateCDR] => 1 ) [2025-01-09 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:42:05' and `end` < '2025-01-09 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:42:18] Production.INFO: count ==79 [2025-01-09 07:42:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:42:05 - End Time 2025-01-09 07:42:05 [2025-01-09 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208119', 'tblTempUsageDetail_20' ) start [2025-01-09 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208119', 'tblTempUsageDetail_20' ) end [2025-01-09 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208119', 'tblTempVendorCDR_20' ) start [2025-01-09 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208119', 'tblTempVendorCDR_20' ) end [2025-01-09 07:42:18] Production.INFO: ProcessCDR(1,14208119,1,1,2) [2025-01-09 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208119', 'tblTempUsageDetail_20' ) start [2025-01-09 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208119', 'tblTempUsageDetail_20' ) end [2025-01-09 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:42:21] Production.INFO: ==4150== Releasing lock... [2025-01-09 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:42:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:43:05 [end_date_ymd] => 2025-01-09 07:43:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:43:05' and `end` < '2025-01-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-01-09 07:43:19] Production.INFO: count ==79 [2025-01-09 07:43:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:43:05 - End Time 2025-01-09 07:43:05 [2025-01-09 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208124', 'tblTempUsageDetail_20' ) start [2025-01-09 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208124', 'tblTempUsageDetail_20' ) end [2025-01-09 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208124', 'tblTempVendorCDR_20' ) start [2025-01-09 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208124', 'tblTempVendorCDR_20' ) end [2025-01-09 07:43:19] Production.INFO: ProcessCDR(1,14208124,1,1,2) [2025-01-09 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208124', 'tblTempUsageDetail_20' ) start [2025-01-09 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208124', 'tblTempUsageDetail_20' ) end [2025-01-09 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:43:22] Production.INFO: ==4220== Releasing lock... [2025-01-09 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:44:05 [end_date_ymd] => 2025-01-09 07:44:05 [RateCDR] => 1 ) [2025-01-09 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:44:05' and `end` < '2025-01-09 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:44:18] Production.INFO: count ==79 [2025-01-09 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:44:05 - End Time 2025-01-09 07:44:05 [2025-01-09 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208129', 'tblTempUsageDetail_20' ) start [2025-01-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208129', 'tblTempUsageDetail_20' ) end [2025-01-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208129', 'tblTempVendorCDR_20' ) start [2025-01-09 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208129', 'tblTempVendorCDR_20' ) end [2025-01-09 07:44:18] Production.INFO: ProcessCDR(1,14208129,1,1,2) [2025-01-09 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208129', 'tblTempUsageDetail_20' ) start [2025-01-09 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208129', 'tblTempUsageDetail_20' ) end [2025-01-09 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:44:21] Production.INFO: ==4294== Releasing lock... [2025-01-09 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:44:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:45:05 [end_date_ymd] => 2025-01-09 07:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:45:05' and `end` < '2025-01-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-01-09 07:45:18] Production.INFO: count ==80 [2025-01-09 07:45:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:45:05 - End Time 2025-01-09 07:45:05 [2025-01-09 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208134', 'tblTempUsageDetail_20' ) start [2025-01-09 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208134', 'tblTempUsageDetail_20' ) end [2025-01-09 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208134', 'tblTempVendorCDR_20' ) start [2025-01-09 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208134', 'tblTempVendorCDR_20' ) end [2025-01-09 07:45:18] Production.INFO: ProcessCDR(1,14208134,1,1,2) [2025-01-09 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208134', 'tblTempUsageDetail_20' ) start [2025-01-09 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208134', 'tblTempUsageDetail_20' ) end [2025-01-09 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:45:22] Production.INFO: ==4369== Releasing lock... [2025-01-09 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:45:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:46:05 [end_date_ymd] => 2025-01-09 07:46:05 [RateCDR] => 1 ) [2025-01-09 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:46:05' and `end` < '2025-01-09 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:46:18] Production.INFO: count ==80 [2025-01-09 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:46:05 - End Time 2025-01-09 07:46:05 [2025-01-09 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208139', 'tblTempUsageDetail_20' ) start [2025-01-09 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208139', 'tblTempUsageDetail_20' ) end [2025-01-09 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208139', 'tblTempVendorCDR_20' ) start [2025-01-09 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208139', 'tblTempVendorCDR_20' ) end [2025-01-09 07:46:18] Production.INFO: ProcessCDR(1,14208139,1,1,2) [2025-01-09 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208139', 'tblTempUsageDetail_20' ) start [2025-01-09 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208139', 'tblTempUsageDetail_20' ) end [2025-01-09 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:46:21] Production.INFO: ==4441== Releasing lock... [2025-01-09 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:46:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:47:04 [end_date_ymd] => 2025-01-09 07:47:04 [RateCDR] => 1 ) [2025-01-09 07:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:47:04' and `end` < '2025-01-09 07:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:47:18] Production.INFO: count ==80 [2025-01-09 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:47:04 - End Time 2025-01-09 07:47:04 [2025-01-09 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208144', 'tblTempUsageDetail_20' ) start [2025-01-09 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208144', 'tblTempUsageDetail_20' ) end [2025-01-09 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208144', 'tblTempVendorCDR_20' ) start [2025-01-09 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208144', 'tblTempVendorCDR_20' ) end [2025-01-09 07:47:18] Production.INFO: ProcessCDR(1,14208144,1,1,2) [2025-01-09 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208144', 'tblTempUsageDetail_20' ) start [2025-01-09 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208144', 'tblTempUsageDetail_20' ) end [2025-01-09 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:47:22] Production.INFO: ==4513== Releasing lock... [2025-01-09 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:47:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:48:04 [end_date_ymd] => 2025-01-09 07:48:04 [RateCDR] => 1 ) [2025-01-09 07:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:48:04' and `end` < '2025-01-09 07:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:48:19] Production.INFO: count ==81 [2025-01-09 07:48:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:48:04 - End Time 2025-01-09 07:48:04 [2025-01-09 07:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208149', 'tblTempUsageDetail_20' ) start [2025-01-09 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208149', 'tblTempUsageDetail_20' ) end [2025-01-09 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208149', 'tblTempVendorCDR_20' ) start [2025-01-09 07:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208149', 'tblTempVendorCDR_20' ) end [2025-01-09 07:48:19] Production.INFO: ProcessCDR(1,14208149,1,1,2) [2025-01-09 07:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208149', 'tblTempUsageDetail_20' ) start [2025-01-09 07:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208149', 'tblTempUsageDetail_20' ) end [2025-01-09 07:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:48:22] Production.INFO: ==4591== Releasing lock... [2025-01-09 07:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:48:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:49:05 [end_date_ymd] => 2025-01-09 07:49:05 [RateCDR] => 1 ) [2025-01-09 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:49:05' and `end` < '2025-01-09 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:49:18] Production.INFO: count ==81 [2025-01-09 07:49:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:49:05 - End Time 2025-01-09 07:49:05 [2025-01-09 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208154', 'tblTempUsageDetail_20' ) start [2025-01-09 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208154', 'tblTempUsageDetail_20' ) end [2025-01-09 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208154', 'tblTempVendorCDR_20' ) start [2025-01-09 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208154', 'tblTempVendorCDR_20' ) end [2025-01-09 07:49:18] Production.INFO: ProcessCDR(1,14208154,1,1,2) [2025-01-09 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208154', 'tblTempUsageDetail_20' ) start [2025-01-09 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208154', 'tblTempUsageDetail_20' ) end [2025-01-09 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:49:21] Production.INFO: ==4663== Releasing lock... [2025-01-09 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:50:05 [end_date_ymd] => 2025-01-09 07:50:05 [RateCDR] => 1 ) [2025-01-09 07:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:50:05' and `end` < '2025-01-09 07:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:50:18] Production.INFO: count ==88 [2025-01-09 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:50:05 - End Time 2025-01-09 07:50:05 [2025-01-09 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208160', 'tblTempUsageDetail_20' ) start [2025-01-09 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208160', 'tblTempUsageDetail_20' ) end [2025-01-09 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208160', 'tblTempVendorCDR_20' ) start [2025-01-09 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208160', 'tblTempVendorCDR_20' ) end [2025-01-09 07:50:18] Production.INFO: ProcessCDR(1,14208160,1,1,2) [2025-01-09 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208160', 'tblTempUsageDetail_20' ) start [2025-01-09 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208160', 'tblTempUsageDetail_20' ) end [2025-01-09 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:50:21] Production.INFO: ==4740== Releasing lock... [2025-01-09 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:51:04 [end_date_ymd] => 2025-01-09 07:51:04 [RateCDR] => 1 ) [2025-01-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-01-09 04:51:04' and `end` < '2025-01-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-01-09 07:51:17] Production.INFO: count ==99 [2025-01-09 07:51:17] Production.ERROR: pbx CDR StartTime 2025-01-09 04:51:04 - End Time 2025-01-09 07:51:04 [2025-01-09 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208165', 'tblTempUsageDetail_20' ) start [2025-01-09 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208165', 'tblTempUsageDetail_20' ) end [2025-01-09 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208165', 'tblTempVendorCDR_20' ) start [2025-01-09 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208165', 'tblTempVendorCDR_20' ) end [2025-01-09 07:51:17] Production.INFO: ProcessCDR(1,14208165,1,1,2) [2025-01-09 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208165', 'tblTempUsageDetail_20' ) start [2025-01-09 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208165', 'tblTempUsageDetail_20' ) end [2025-01-09 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:51:21] Production.INFO: ==4818== Releasing lock... [2025-01-09 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:52:05 [end_date_ymd] => 2025-01-09 07:52:05 [RateCDR] => 1 ) [2025-01-09 07:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:52:05' and `end` < '2025-01-09 07:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:52:20] Production.INFO: count ==100 [2025-01-09 07:52:20] Production.ERROR: pbx CDR StartTime 2025-01-09 04:52:05 - End Time 2025-01-09 07:52:05 [2025-01-09 07:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208170', 'tblTempUsageDetail_20' ) start [2025-01-09 07:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208170', 'tblTempUsageDetail_20' ) end [2025-01-09 07:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208170', 'tblTempVendorCDR_20' ) start [2025-01-09 07:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208170', 'tblTempVendorCDR_20' ) end [2025-01-09 07:52:20] Production.INFO: ProcessCDR(1,14208170,1,1,2) [2025-01-09 07:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208170', 'tblTempUsageDetail_20' ) start [2025-01-09 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208170', 'tblTempUsageDetail_20' ) end [2025-01-09 07:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:52:23] Production.INFO: ==4932== Releasing lock... [2025-01-09 07:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:52:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:53:04 [end_date_ymd] => 2025-01-09 07:53:04 [RateCDR] => 1 ) [2025-01-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-01-09 04:53:04' and `end` < '2025-01-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-01-09 07:53:18] Production.INFO: count ==100 [2025-01-09 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:53:04 - End Time 2025-01-09 07:53:04 [2025-01-09 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208175', 'tblTempUsageDetail_20' ) start [2025-01-09 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208175', 'tblTempUsageDetail_20' ) end [2025-01-09 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208175', 'tblTempVendorCDR_20' ) start [2025-01-09 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208175', 'tblTempVendorCDR_20' ) end [2025-01-09 07:53:18] Production.INFO: ProcessCDR(1,14208175,1,1,2) [2025-01-09 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208175', 'tblTempUsageDetail_20' ) start [2025-01-09 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208175', 'tblTempUsageDetail_20' ) end [2025-01-09 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:53:21] Production.INFO: ==5008== Releasing lock... [2025-01-09 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:54:05 [end_date_ymd] => 2025-01-09 07:54:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:54:05' and `end` < '2025-01-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-01-09 07:54:19] Production.INFO: count ==100 [2025-01-09 07:54:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:54:05 - End Time 2025-01-09 07:54:05 [2025-01-09 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208180', 'tblTempUsageDetail_20' ) start [2025-01-09 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208180', 'tblTempUsageDetail_20' ) end [2025-01-09 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208180', 'tblTempVendorCDR_20' ) start [2025-01-09 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208180', 'tblTempVendorCDR_20' ) end [2025-01-09 07:54:19] Production.INFO: ProcessCDR(1,14208180,1,1,2) [2025-01-09 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208180', 'tblTempUsageDetail_20' ) start [2025-01-09 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208180', 'tblTempUsageDetail_20' ) end [2025-01-09 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:54:22] Production.INFO: ==5085== Releasing lock... [2025-01-09 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:55:04 [end_date_ymd] => 2025-01-09 07:55:04 [RateCDR] => 1 ) [2025-01-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-01-09 04:55:04' and `end` < '2025-01-09 07:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:55:17] Production.INFO: count ==103 [2025-01-09 07:55:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:55:04 - End Time 2025-01-09 07:55:04 [2025-01-09 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208185', 'tblTempUsageDetail_20' ) start [2025-01-09 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208185', 'tblTempUsageDetail_20' ) end [2025-01-09 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208185', 'tblTempVendorCDR_20' ) start [2025-01-09 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208185', 'tblTempVendorCDR_20' ) end [2025-01-09 07:55:18] Production.INFO: ProcessCDR(1,14208185,1,1,2) [2025-01-09 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208185', 'tblTempUsageDetail_20' ) start [2025-01-09 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208185', 'tblTempUsageDetail_20' ) end [2025-01-09 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:55:21] Production.INFO: ==5160== Releasing lock... [2025-01-09 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:55:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:56:05 [end_date_ymd] => 2025-01-09 07:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:56:05' and `end` < '2025-01-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-01-09 07:56:18] Production.INFO: count ==103 [2025-01-09 07:56:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:56:05 - End Time 2025-01-09 07:56:05 [2025-01-09 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208190', 'tblTempUsageDetail_20' ) start [2025-01-09 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208190', 'tblTempUsageDetail_20' ) end [2025-01-09 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208190', 'tblTempVendorCDR_20' ) start [2025-01-09 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208190', 'tblTempVendorCDR_20' ) end [2025-01-09 07:56:18] Production.INFO: ProcessCDR(1,14208190,1,1,2) [2025-01-09 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208190', 'tblTempUsageDetail_20' ) start [2025-01-09 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208190', 'tblTempUsageDetail_20' ) end [2025-01-09 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:56:21] Production.INFO: ==5240== Releasing lock... [2025-01-09 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-09 07:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:57:04 [end_date_ymd] => 2025-01-09 07:57:04 [RateCDR] => 1 ) [2025-01-09 07:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:57:04' and `end` < '2025-01-09 07:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:57:17] Production.INFO: count ==110 [2025-01-09 07:57:17] Production.ERROR: pbx CDR StartTime 2025-01-09 04:57:04 - End Time 2025-01-09 07:57:04 [2025-01-09 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208195', 'tblTempUsageDetail_20' ) start [2025-01-09 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208195', 'tblTempUsageDetail_20' ) end [2025-01-09 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208195', 'tblTempVendorCDR_20' ) start [2025-01-09 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208195', 'tblTempVendorCDR_20' ) end [2025-01-09 07:57:17] Production.INFO: ProcessCDR(1,14208195,1,1,2) [2025-01-09 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208195', 'tblTempUsageDetail_20' ) start [2025-01-09 07:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208195', 'tblTempUsageDetail_20' ) end [2025-01-09 07:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:57:22] Production.INFO: ==5314== Releasing lock... [2025-01-09 07:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:57:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 07:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:58:04 [end_date_ymd] => 2025-01-09 07:58:04 [RateCDR] => 1 ) [2025-01-09 07:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 04:58:04' and `end` < '2025-01-09 07:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 07:58:18] Production.INFO: count ==110 [2025-01-09 07:58:18] Production.ERROR: pbx CDR StartTime 2025-01-09 04:58:04 - End Time 2025-01-09 07:58:04 [2025-01-09 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208200', 'tblTempUsageDetail_20' ) start [2025-01-09 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208200', 'tblTempUsageDetail_20' ) end [2025-01-09 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208200', 'tblTempVendorCDR_20' ) start [2025-01-09 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208200', 'tblTempVendorCDR_20' ) end [2025-01-09 07:58:18] Production.INFO: ProcessCDR(1,14208200,1,1,2) [2025-01-09 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208200', 'tblTempUsageDetail_20' ) start [2025-01-09 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208200', 'tblTempUsageDetail_20' ) end [2025-01-09 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:58:21] Production.INFO: ==5391== Releasing lock... [2025-01-09 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:58:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 04:59:05 [end_date_ymd] => 2025-01-09 07:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 04:59:05' and `end` < '2025-01-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-01-09 07:59:19] Production.INFO: count ==110 [2025-01-09 07:59:19] Production.ERROR: pbx CDR StartTime 2025-01-09 04:59:05 - End Time 2025-01-09 07:59:05 [2025-01-09 07:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208205', 'tblTempUsageDetail_20' ) start [2025-01-09 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208205', 'tblTempUsageDetail_20' ) end [2025-01-09 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208205', 'tblTempVendorCDR_20' ) start [2025-01-09 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208205', 'tblTempVendorCDR_20' ) end [2025-01-09 07:59:19] Production.INFO: ProcessCDR(1,14208205,1,1,2) [2025-01-09 07:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208205', 'tblTempUsageDetail_20' ) start [2025-01-09 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208205', 'tblTempUsageDetail_20' ) end [2025-01-09 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 07:59:22] Production.INFO: ==5474== Releasing lock... [2025-01-09 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 07:59:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:00:05 [end_date_ymd] => 2025-01-09 08:00:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:00:05' and `end` < '2025-01-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-01-09 08:00:18] Production.INFO: count ==116 [2025-01-09 08:00:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:00:05 - End Time 2025-01-09 08:00:05 [2025-01-09 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208210', 'tblTempUsageDetail_20' ) start [2025-01-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208210', 'tblTempUsageDetail_20' ) end [2025-01-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208210', 'tblTempVendorCDR_20' ) start [2025-01-09 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208210', 'tblTempVendorCDR_20' ) end [2025-01-09 08:00:18] Production.INFO: ProcessCDR(1,14208210,1,1,2) [2025-01-09 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208210', 'tblTempUsageDetail_20' ) start [2025-01-09 08:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208210', 'tblTempUsageDetail_20' ) end [2025-01-09 08:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:00:22] Production.INFO: ==5551== Releasing lock... [2025-01-09 08:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:00:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:01:05 [end_date_ymd] => 2025-01-09 08:01:05 [RateCDR] => 1 ) [2025-01-09 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:01:05' and `end` < '2025-01-09 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:01:18] Production.INFO: count ==121 [2025-01-09 08:01:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:01:05 - End Time 2025-01-09 08:01:05 [2025-01-09 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208216', 'tblTempUsageDetail_20' ) start [2025-01-09 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208216', 'tblTempUsageDetail_20' ) end [2025-01-09 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208216', 'tblTempVendorCDR_20' ) start [2025-01-09 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208216', 'tblTempVendorCDR_20' ) end [2025-01-09 08:01:18] Production.INFO: ProcessCDR(1,14208216,1,1,2) [2025-01-09 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208216', 'tblTempUsageDetail_20' ) start [2025-01-09 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208216', 'tblTempUsageDetail_20' ) end [2025-01-09 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:01:22] Production.INFO: ==5639== Releasing lock... [2025-01-09 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-09 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:02:05 [end_date_ymd] => 2025-01-09 08:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:02:05' and `end` < '2025-01-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-01-09 08:02:17] Production.INFO: count ==131 [2025-01-09 08:02:17] Production.ERROR: pbx CDR StartTime 2025-01-09 05:02:05 - End Time 2025-01-09 08:02:05 [2025-01-09 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208221', 'tblTempUsageDetail_20' ) start [2025-01-09 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208221', 'tblTempUsageDetail_20' ) end [2025-01-09 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208221', 'tblTempVendorCDR_20' ) start [2025-01-09 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208221', 'tblTempVendorCDR_20' ) end [2025-01-09 08:02:18] Production.INFO: ProcessCDR(1,14208221,1,1,2) [2025-01-09 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208221', 'tblTempUsageDetail_20' ) start [2025-01-09 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208221', 'tblTempUsageDetail_20' ) end [2025-01-09 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:02:21] Production.INFO: ==5710== Releasing lock... [2025-01-09 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:02:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:03:05 [end_date_ymd] => 2025-01-09 08:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:03:05' and `end` < '2025-01-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-01-09 08:03:18] Production.INFO: count ==132 [2025-01-09 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:03:05 - End Time 2025-01-09 08:03:05 [2025-01-09 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208226', 'tblTempUsageDetail_20' ) start [2025-01-09 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208226', 'tblTempUsageDetail_20' ) end [2025-01-09 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208226', 'tblTempVendorCDR_20' ) start [2025-01-09 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208226', 'tblTempVendorCDR_20' ) end [2025-01-09 08:03:18] Production.INFO: ProcessCDR(1,14208226,1,1,2) [2025-01-09 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208226', 'tblTempUsageDetail_20' ) start [2025-01-09 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208226', 'tblTempUsageDetail_20' ) end [2025-01-09 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:03:22] Production.INFO: ==5781== Releasing lock... [2025-01-09 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 08:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:04:04 [end_date_ymd] => 2025-01-09 08:04:04 [RateCDR] => 1 ) [2025-01-09 08:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:04:04' and `end` < '2025-01-09 08:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:04:18] Production.INFO: count ==132 [2025-01-09 08:04:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:04:04 - End Time 2025-01-09 08:04:04 [2025-01-09 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208231', 'tblTempUsageDetail_20' ) start [2025-01-09 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208231', 'tblTempUsageDetail_20' ) end [2025-01-09 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208231', 'tblTempVendorCDR_20' ) start [2025-01-09 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208231', 'tblTempVendorCDR_20' ) end [2025-01-09 08:04:18] Production.INFO: ProcessCDR(1,14208231,1,1,2) [2025-01-09 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208231', 'tblTempUsageDetail_20' ) start [2025-01-09 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208231', 'tblTempUsageDetail_20' ) end [2025-01-09 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:04:21] Production.INFO: ==5850== Releasing lock... [2025-01-09 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:05:05 [end_date_ymd] => 2025-01-09 08:05:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:05:05' and `end` < '2025-01-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-01-09 08:05:18] Production.INFO: count ==132 [2025-01-09 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:05:05 - End Time 2025-01-09 08:05:05 [2025-01-09 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208236', 'tblTempUsageDetail_20' ) start [2025-01-09 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208236', 'tblTempUsageDetail_20' ) end [2025-01-09 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208236', 'tblTempVendorCDR_20' ) start [2025-01-09 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208236', 'tblTempVendorCDR_20' ) end [2025-01-09 08:05:18] Production.INFO: ProcessCDR(1,14208236,1,1,2) [2025-01-09 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208236', 'tblTempUsageDetail_20' ) start [2025-01-09 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208236', 'tblTempUsageDetail_20' ) end [2025-01-09 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:05:21] Production.INFO: ==5921== Releasing lock... [2025-01-09 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:06:05 [end_date_ymd] => 2025-01-09 08:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:06:05' and `end` < '2025-01-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-01-09 08:06:18] Production.INFO: count ==133 [2025-01-09 08:06:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:06:05 - End Time 2025-01-09 08:06:05 [2025-01-09 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208241', 'tblTempUsageDetail_20' ) start [2025-01-09 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208241', 'tblTempUsageDetail_20' ) end [2025-01-09 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208241', 'tblTempVendorCDR_20' ) start [2025-01-09 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208241', 'tblTempVendorCDR_20' ) end [2025-01-09 08:06:18] Production.INFO: ProcessCDR(1,14208241,1,1,2) [2025-01-09 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208241', 'tblTempUsageDetail_20' ) start [2025-01-09 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208241', 'tblTempUsageDetail_20' ) end [2025-01-09 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:06:22] Production.INFO: ==5993== Releasing lock... [2025-01-09 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:06:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-09 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:07:05 [end_date_ymd] => 2025-01-09 08:07:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:07:05' and `end` < '2025-01-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-01-09 08:07:19] Production.INFO: count ==150 [2025-01-09 08:07:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:07:05 - End Time 2025-01-09 08:07:05 [2025-01-09 08:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208246', 'tblTempUsageDetail_20' ) start [2025-01-09 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208246', 'tblTempUsageDetail_20' ) end [2025-01-09 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208246', 'tblTempVendorCDR_20' ) start [2025-01-09 08:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208246', 'tblTempVendorCDR_20' ) end [2025-01-09 08:07:19] Production.INFO: ProcessCDR(1,14208246,1,1,2) [2025-01-09 08:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208246', 'tblTempUsageDetail_20' ) start [2025-01-09 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208246', 'tblTempUsageDetail_20' ) end [2025-01-09 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:07:22] Production.INFO: ==6106== Releasing lock... [2025-01-09 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:07:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:08:05 [end_date_ymd] => 2025-01-09 08:08:05 [RateCDR] => 1 ) [2025-01-09 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:08:05' and `end` < '2025-01-09 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:08:18] Production.INFO: count ==155 [2025-01-09 08:08:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:08:05 - End Time 2025-01-09 08:08:05 [2025-01-09 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208251', 'tblTempUsageDetail_20' ) start [2025-01-09 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208251', 'tblTempUsageDetail_20' ) end [2025-01-09 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208251', 'tblTempVendorCDR_20' ) start [2025-01-09 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208251', 'tblTempVendorCDR_20' ) end [2025-01-09 08:08:18] Production.INFO: ProcessCDR(1,14208251,1,1,2) [2025-01-09 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208251', 'tblTempUsageDetail_20' ) start [2025-01-09 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208251', 'tblTempUsageDetail_20' ) end [2025-01-09 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:08:23] Production.INFO: ==6182== Releasing lock... [2025-01-09 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:08:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:09:05 [end_date_ymd] => 2025-01-09 08:09:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:09:05' and `end` < '2025-01-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-01-09 08:09:18] Production.INFO: count ==156 [2025-01-09 08:09:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:09:05 - End Time 2025-01-09 08:09:05 [2025-01-09 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208256', 'tblTempUsageDetail_20' ) start [2025-01-09 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208256', 'tblTempUsageDetail_20' ) end [2025-01-09 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208256', 'tblTempVendorCDR_20' ) start [2025-01-09 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208256', 'tblTempVendorCDR_20' ) end [2025-01-09 08:09:18] Production.INFO: ProcessCDR(1,14208256,1,1,2) [2025-01-09 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208256', 'tblTempUsageDetail_20' ) start [2025-01-09 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208256', 'tblTempUsageDetail_20' ) end [2025-01-09 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:09:21] Production.INFO: ==6254== Releasing lock... [2025-01-09 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-09 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:10:06 [end_date_ymd] => 2025-01-09 08:10:06 [RateCDR] => 1 ) [2025-01-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-01-09 05:10:06' and `end` < '2025-01-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-01-09 08:10:19] Production.INFO: count ==173 [2025-01-09 08:10:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:10:06 - End Time 2025-01-09 08:10:06 [2025-01-09 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208262', 'tblTempUsageDetail_20' ) start [2025-01-09 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208262', 'tblTempUsageDetail_20' ) end [2025-01-09 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208262', 'tblTempVendorCDR_20' ) start [2025-01-09 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208262', 'tblTempVendorCDR_20' ) end [2025-01-09 08:10:19] Production.INFO: ProcessCDR(1,14208262,1,1,2) [2025-01-09 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208262', 'tblTempUsageDetail_20' ) start [2025-01-09 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208262', 'tblTempUsageDetail_20' ) end [2025-01-09 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:10:23] Production.INFO: ==6329== Releasing lock... [2025-01-09 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:10:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-09 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:11:04 [end_date_ymd] => 2025-01-09 08:11:04 [RateCDR] => 1 ) [2025-01-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-01-09 05:11:04' and `end` < '2025-01-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-01-09 08:11:19] Production.INFO: count ==192 [2025-01-09 08:11:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:11:04 - End Time 2025-01-09 08:11:04 [2025-01-09 08:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208267', 'tblTempUsageDetail_20' ) start [2025-01-09 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208267', 'tblTempUsageDetail_20' ) end [2025-01-09 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208267', 'tblTempVendorCDR_20' ) start [2025-01-09 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208267', 'tblTempVendorCDR_20' ) end [2025-01-09 08:11:19] Production.INFO: ProcessCDR(1,14208267,1,1,2) [2025-01-09 08:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208267', 'tblTempUsageDetail_20' ) start [2025-01-09 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208267', 'tblTempUsageDetail_20' ) end [2025-01-09 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:11:23] Production.INFO: ==6404== Releasing lock... [2025-01-09 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:11:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-09 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:12:05 [end_date_ymd] => 2025-01-09 08:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:12:05' and `end` < '2025-01-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-01-09 08:12:18] Production.INFO: count ==204 [2025-01-09 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:12:05 - End Time 2025-01-09 08:12:05 [2025-01-09 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208272', 'tblTempUsageDetail_20' ) start [2025-01-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208272', 'tblTempUsageDetail_20' ) end [2025-01-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208272', 'tblTempVendorCDR_20' ) start [2025-01-09 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208272', 'tblTempVendorCDR_20' ) end [2025-01-09 08:12:18] Production.INFO: ProcessCDR(1,14208272,1,1,2) [2025-01-09 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208272', 'tblTempUsageDetail_20' ) start [2025-01-09 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208272', 'tblTempUsageDetail_20' ) end [2025-01-09 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:12:22] Production.INFO: ==6475== Releasing lock... [2025-01-09 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:12:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-09 08:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:13:04 [end_date_ymd] => 2025-01-09 08:13:04 [RateCDR] => 1 ) [2025-01-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-01-09 05:13:04' and `end` < '2025-01-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-01-09 08:13:17] Production.INFO: count ==209 [2025-01-09 08:13:17] Production.ERROR: pbx CDR StartTime 2025-01-09 05:13:04 - End Time 2025-01-09 08:13:04 [2025-01-09 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208277', 'tblTempUsageDetail_20' ) start [2025-01-09 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208277', 'tblTempUsageDetail_20' ) end [2025-01-09 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208277', 'tblTempVendorCDR_20' ) start [2025-01-09 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208277', 'tblTempVendorCDR_20' ) end [2025-01-09 08:13:17] Production.INFO: ProcessCDR(1,14208277,1,1,2) [2025-01-09 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208277', 'tblTempUsageDetail_20' ) start [2025-01-09 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208277', 'tblTempUsageDetail_20' ) end [2025-01-09 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:13:21] Production.INFO: ==6545== Releasing lock... [2025-01-09 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:13:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-09 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:14:05 [end_date_ymd] => 2025-01-09 08:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:14:05' and `end` < '2025-01-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-01-09 08:14:18] Production.INFO: count ==212 [2025-01-09 08:14:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:14:05 - End Time 2025-01-09 08:14:05 [2025-01-09 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208282', 'tblTempUsageDetail_20' ) start [2025-01-09 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208282', 'tblTempUsageDetail_20' ) end [2025-01-09 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208282', 'tblTempVendorCDR_20' ) start [2025-01-09 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208282', 'tblTempVendorCDR_20' ) end [2025-01-09 08:14:18] Production.INFO: ProcessCDR(1,14208282,1,1,2) [2025-01-09 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208282', 'tblTempUsageDetail_20' ) start [2025-01-09 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208282', 'tblTempUsageDetail_20' ) end [2025-01-09 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:14:22] Production.INFO: ==6619== Releasing lock... [2025-01-09 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:14:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-09 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:15:04 [end_date_ymd] => 2025-01-09 08:15:04 [RateCDR] => 1 ) [2025-01-09 08:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:15:04' and `end` < '2025-01-09 08:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:15:18] Production.INFO: count ==229 [2025-01-09 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:15:04 - End Time 2025-01-09 08:15:04 [2025-01-09 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208287', 'tblTempUsageDetail_20' ) start [2025-01-09 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208287', 'tblTempUsageDetail_20' ) end [2025-01-09 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208287', 'tblTempVendorCDR_20' ) start [2025-01-09 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208287', 'tblTempVendorCDR_20' ) end [2025-01-09 08:15:18] Production.INFO: ProcessCDR(1,14208287,1,1,2) [2025-01-09 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208287', 'tblTempUsageDetail_20' ) start [2025-01-09 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208287', 'tblTempUsageDetail_20' ) end [2025-01-09 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:15:22] Production.INFO: ==6692== Releasing lock... [2025-01-09 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:15:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-09 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:16:05 [end_date_ymd] => 2025-01-09 08:16:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:16:05' and `end` < '2025-01-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-01-09 08:16:18] Production.INFO: count ==240 [2025-01-09 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:16:05 - End Time 2025-01-09 08:16:05 [2025-01-09 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208292', 'tblTempUsageDetail_20' ) start [2025-01-09 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208292', 'tblTempUsageDetail_20' ) end [2025-01-09 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208292', 'tblTempVendorCDR_20' ) start [2025-01-09 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208292', 'tblTempVendorCDR_20' ) end [2025-01-09 08:16:18] Production.INFO: ProcessCDR(1,14208292,1,1,2) [2025-01-09 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208292', 'tblTempUsageDetail_20' ) start [2025-01-09 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208292', 'tblTempUsageDetail_20' ) end [2025-01-09 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:16:23] Production.INFO: ==6762== Releasing lock... [2025-01-09 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:16:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-09 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:17:05 [end_date_ymd] => 2025-01-09 08:17:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:17:05' and `end` < '2025-01-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-01-09 08:17:18] Production.INFO: count ==247 [2025-01-09 08:17:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:17:05 - End Time 2025-01-09 08:17:05 [2025-01-09 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208297', 'tblTempUsageDetail_20' ) start [2025-01-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208297', 'tblTempUsageDetail_20' ) end [2025-01-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208297', 'tblTempVendorCDR_20' ) start [2025-01-09 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208297', 'tblTempVendorCDR_20' ) end [2025-01-09 08:17:18] Production.INFO: ProcessCDR(1,14208297,1,1,2) [2025-01-09 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208297', 'tblTempUsageDetail_20' ) start [2025-01-09 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208297', 'tblTempUsageDetail_20' ) end [2025-01-09 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:17:22] Production.INFO: ==6833== Releasing lock... [2025-01-09 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:17:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-09 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:18:05 [end_date_ymd] => 2025-01-09 08:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:18:05' and `end` < '2025-01-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-01-09 08:18:18] Production.INFO: count ==254 [2025-01-09 08:18:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:18:05 - End Time 2025-01-09 08:18:05 [2025-01-09 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208302', 'tblTempUsageDetail_20' ) start [2025-01-09 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208302', 'tblTempUsageDetail_20' ) end [2025-01-09 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208302', 'tblTempVendorCDR_20' ) start [2025-01-09 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208302', 'tblTempVendorCDR_20' ) end [2025-01-09 08:18:18] Production.INFO: ProcessCDR(1,14208302,1,1,2) [2025-01-09 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208302', 'tblTempUsageDetail_20' ) start [2025-01-09 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208302', 'tblTempUsageDetail_20' ) end [2025-01-09 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:18:22] Production.INFO: ==6919== Releasing lock... [2025-01-09 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:18:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-09 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:19:05 [end_date_ymd] => 2025-01-09 08:19:05 [RateCDR] => 1 ) [2025-01-09 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:19:05' and `end` < '2025-01-09 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:19:19] Production.INFO: count ==260 [2025-01-09 08:19:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:19:05 - End Time 2025-01-09 08:19:05 [2025-01-09 08:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208307', 'tblTempUsageDetail_20' ) start [2025-01-09 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208307', 'tblTempUsageDetail_20' ) end [2025-01-09 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208307', 'tblTempVendorCDR_20' ) start [2025-01-09 08:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208307', 'tblTempVendorCDR_20' ) end [2025-01-09 08:19:19] Production.INFO: ProcessCDR(1,14208307,1,1,2) [2025-01-09 08:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208307', 'tblTempUsageDetail_20' ) start [2025-01-09 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208307', 'tblTempUsageDetail_20' ) end [2025-01-09 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:19:22] Production.INFO: ==6989== Releasing lock... [2025-01-09 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-09 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:20:05 [end_date_ymd] => 2025-01-09 08:20:05 [RateCDR] => 1 ) [2025-01-09 08:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:20:05' and `end` < '2025-01-09 08:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:20:18] Production.INFO: count ==271 [2025-01-09 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:20:05 - End Time 2025-01-09 08:20:05 [2025-01-09 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208313', 'tblTempUsageDetail_20' ) start [2025-01-09 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208313', 'tblTempUsageDetail_20' ) end [2025-01-09 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208313', 'tblTempVendorCDR_20' ) start [2025-01-09 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208313', 'tblTempVendorCDR_20' ) end [2025-01-09 08:20:18] Production.INFO: ProcessCDR(1,14208313,1,1,2) [2025-01-09 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208313', 'tblTempUsageDetail_20' ) start [2025-01-09 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208313', 'tblTempUsageDetail_20' ) end [2025-01-09 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:20:23] Production.INFO: ==7061== Releasing lock... [2025-01-09 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:20:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-09 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:21:05 [end_date_ymd] => 2025-01-09 08:21:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:21:05' and `end` < '2025-01-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-01-09 08:21:18] Production.INFO: count ==283 [2025-01-09 08:21:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:21:05 - End Time 2025-01-09 08:21:05 [2025-01-09 08:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208318', 'tblTempUsageDetail_20' ) start [2025-01-09 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208318', 'tblTempUsageDetail_20' ) end [2025-01-09 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208318', 'tblTempVendorCDR_20' ) start [2025-01-09 08:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208318', 'tblTempVendorCDR_20' ) end [2025-01-09 08:21:18] Production.INFO: ProcessCDR(1,14208318,1,1,2) [2025-01-09 08:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208318', 'tblTempUsageDetail_20' ) start [2025-01-09 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208318', 'tblTempUsageDetail_20' ) end [2025-01-09 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:21:22] Production.INFO: ==7137== Releasing lock... [2025-01-09 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:21:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-09 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:22:05 [end_date_ymd] => 2025-01-09 08:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:22:05' and `end` < '2025-01-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-01-09 08:22:19] Production.INFO: count ==284 [2025-01-09 08:22:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:22:05 - End Time 2025-01-09 08:22:05 [2025-01-09 08:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208323', 'tblTempUsageDetail_20' ) start [2025-01-09 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208323', 'tblTempUsageDetail_20' ) end [2025-01-09 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208323', 'tblTempVendorCDR_20' ) start [2025-01-09 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208323', 'tblTempVendorCDR_20' ) end [2025-01-09 08:22:19] Production.INFO: ProcessCDR(1,14208323,1,1,2) [2025-01-09 08:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208323', 'tblTempUsageDetail_20' ) start [2025-01-09 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208323', 'tblTempUsageDetail_20' ) end [2025-01-09 08:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:22:22] Production.INFO: ==7208== Releasing lock... [2025-01-09 08:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:22:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-09 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:23:05 [end_date_ymd] => 2025-01-09 08:23:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:23:05' and `end` < '2025-01-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-01-09 08:23:18] Production.INFO: count ==297 [2025-01-09 08:23:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:23:05 - End Time 2025-01-09 08:23:05 [2025-01-09 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208328', 'tblTempUsageDetail_20' ) start [2025-01-09 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208328', 'tblTempUsageDetail_20' ) end [2025-01-09 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208328', 'tblTempVendorCDR_20' ) start [2025-01-09 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208328', 'tblTempVendorCDR_20' ) end [2025-01-09 08:23:18] Production.INFO: ProcessCDR(1,14208328,1,1,2) [2025-01-09 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208328', 'tblTempUsageDetail_20' ) start [2025-01-09 08:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208328', 'tblTempUsageDetail_20' ) end [2025-01-09 08:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:23:22] Production.INFO: ==7317== Releasing lock... [2025-01-09 08:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-09 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:24:05 [end_date_ymd] => 2025-01-09 08:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:24:05' and `end` < '2025-01-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-01-09 08:24:19] Production.INFO: count ==299 [2025-01-09 08:24:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:24:05 - End Time 2025-01-09 08:24:05 [2025-01-09 08:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208333', 'tblTempUsageDetail_20' ) start [2025-01-09 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208333', 'tblTempUsageDetail_20' ) end [2025-01-09 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208333', 'tblTempVendorCDR_20' ) start [2025-01-09 08:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208333', 'tblTempVendorCDR_20' ) end [2025-01-09 08:24:19] Production.INFO: ProcessCDR(1,14208333,1,1,2) [2025-01-09 08:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208333', 'tblTempUsageDetail_20' ) start [2025-01-09 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208333', 'tblTempUsageDetail_20' ) end [2025-01-09 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:24:22] Production.INFO: ==7390== Releasing lock... [2025-01-09 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:24:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-09 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:25:05 [end_date_ymd] => 2025-01-09 08:25:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:25:05' and `end` < '2025-01-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-01-09 08:25:18] Production.INFO: count ==299 [2025-01-09 08:25:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:25:05 - End Time 2025-01-09 08:25:05 [2025-01-09 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208338', 'tblTempUsageDetail_20' ) start [2025-01-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208338', 'tblTempUsageDetail_20' ) end [2025-01-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208338', 'tblTempVendorCDR_20' ) start [2025-01-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208338', 'tblTempVendorCDR_20' ) end [2025-01-09 08:25:18] Production.INFO: ProcessCDR(1,14208338,1,1,2) [2025-01-09 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208338', 'tblTempUsageDetail_20' ) start [2025-01-09 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208338', 'tblTempUsageDetail_20' ) end [2025-01-09 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:25:21] Production.INFO: ==7461== Releasing lock... [2025-01-09 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-09 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:26:05 [end_date_ymd] => 2025-01-09 08:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:26:05' and `end` < '2025-01-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-01-09 08:26:18] Production.INFO: count ==299 [2025-01-09 08:26:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:26:05 - End Time 2025-01-09 08:26:05 [2025-01-09 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208343', 'tblTempUsageDetail_20' ) start [2025-01-09 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208343', 'tblTempUsageDetail_20' ) end [2025-01-09 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208343', 'tblTempVendorCDR_20' ) start [2025-01-09 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208343', 'tblTempVendorCDR_20' ) end [2025-01-09 08:26:18] Production.INFO: ProcessCDR(1,14208343,1,1,2) [2025-01-09 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208343', 'tblTempUsageDetail_20' ) start [2025-01-09 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208343', 'tblTempUsageDetail_20' ) end [2025-01-09 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:26:21] Production.INFO: ==7531== Releasing lock... [2025-01-09 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-09 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:27:05 [end_date_ymd] => 2025-01-09 08:27:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:27:05' and `end` < '2025-01-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-01-09 08:27:18] Production.INFO: count ==305 [2025-01-09 08:27:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:27:05 - End Time 2025-01-09 08:27:05 [2025-01-09 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208348', 'tblTempUsageDetail_20' ) start [2025-01-09 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208348', 'tblTempUsageDetail_20' ) end [2025-01-09 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208348', 'tblTempVendorCDR_20' ) start [2025-01-09 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208348', 'tblTempVendorCDR_20' ) end [2025-01-09 08:27:18] Production.INFO: ProcessCDR(1,14208348,1,1,2) [2025-01-09 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208348', 'tblTempUsageDetail_20' ) start [2025-01-09 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208348', 'tblTempUsageDetail_20' ) end [2025-01-09 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:27:23] Production.INFO: ==7603== Releasing lock... [2025-01-09 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:27:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-09 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:28:05 [end_date_ymd] => 2025-01-09 08:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:28:05' and `end` < '2025-01-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-01-09 08:28:18] Production.INFO: count ==305 [2025-01-09 08:28:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:28:05 - End Time 2025-01-09 08:28:05 [2025-01-09 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208353', 'tblTempUsageDetail_20' ) start [2025-01-09 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208353', 'tblTempUsageDetail_20' ) end [2025-01-09 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208353', 'tblTempVendorCDR_20' ) start [2025-01-09 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208353', 'tblTempVendorCDR_20' ) end [2025-01-09 08:28:18] Production.INFO: ProcessCDR(1,14208353,1,1,2) [2025-01-09 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208353', 'tblTempUsageDetail_20' ) start [2025-01-09 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208353', 'tblTempUsageDetail_20' ) end [2025-01-09 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:28:21] Production.INFO: ==7677== Releasing lock... [2025-01-09 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-09 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:29:05 [end_date_ymd] => 2025-01-09 08:29:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:29:05' and `end` < '2025-01-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-01-09 08:29:18] Production.INFO: count ==308 [2025-01-09 08:29:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:29:05 - End Time 2025-01-09 08:29:05 [2025-01-09 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208358', 'tblTempUsageDetail_20' ) start [2025-01-09 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208358', 'tblTempUsageDetail_20' ) end [2025-01-09 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208358', 'tblTempVendorCDR_20' ) start [2025-01-09 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208358', 'tblTempVendorCDR_20' ) end [2025-01-09 08:29:18] Production.INFO: ProcessCDR(1,14208358,1,1,2) [2025-01-09 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208358', 'tblTempUsageDetail_20' ) start [2025-01-09 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208358', 'tblTempUsageDetail_20' ) end [2025-01-09 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:29:23] Production.INFO: ==7748== Releasing lock... [2025-01-09 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:29:23] Production.INFO: 31 MB #Memory Used# [2025-01-09 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:30:06 [end_date_ymd] => 2025-01-09 08:30:06 [RateCDR] => 1 ) [2025-01-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-01-09 05:30:06' and `end` < '2025-01-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-01-09 08:30:19] Production.INFO: count ==317 [2025-01-09 08:30:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:30:06 - End Time 2025-01-09 08:30:06 [2025-01-09 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208363', 'tblTempUsageDetail_20' ) start [2025-01-09 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208363', 'tblTempUsageDetail_20' ) end [2025-01-09 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208363', 'tblTempVendorCDR_20' ) start [2025-01-09 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208363', 'tblTempVendorCDR_20' ) end [2025-01-09 08:30:19] Production.INFO: ProcessCDR(1,14208363,1,1,2) [2025-01-09 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208363', 'tblTempUsageDetail_20' ) start [2025-01-09 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208363', 'tblTempUsageDetail_20' ) end [2025-01-09 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:30:23] Production.INFO: ==7819== Releasing lock... [2025-01-09 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:30:23] Production.INFO: 31 MB #Memory Used# [2025-01-09 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:31:05 [end_date_ymd] => 2025-01-09 08:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:31:05' and `end` < '2025-01-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-01-09 08:31:18] Production.INFO: count ==322 [2025-01-09 08:31:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:31:05 - End Time 2025-01-09 08:31:05 [2025-01-09 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208369', 'tblTempUsageDetail_20' ) start [2025-01-09 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208369', 'tblTempUsageDetail_20' ) end [2025-01-09 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208369', 'tblTempVendorCDR_20' ) start [2025-01-09 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208369', 'tblTempVendorCDR_20' ) end [2025-01-09 08:31:18] Production.INFO: ProcessCDR(1,14208369,1,1,2) [2025-01-09 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208369', 'tblTempUsageDetail_20' ) start [2025-01-09 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208369', 'tblTempUsageDetail_20' ) end [2025-01-09 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:31:23] Production.INFO: ==7894== Releasing lock... [2025-01-09 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:31:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-09 08:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:32:04 [end_date_ymd] => 2025-01-09 08:32:04 [RateCDR] => 1 ) [2025-01-09 08:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:32:04' and `end` < '2025-01-09 08:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:32:17] Production.INFO: count ==340 [2025-01-09 08:32:17] Production.ERROR: pbx CDR StartTime 2025-01-09 05:32:04 - End Time 2025-01-09 08:32:04 [2025-01-09 08:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208374', 'tblTempUsageDetail_20' ) start [2025-01-09 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208374', 'tblTempUsageDetail_20' ) end [2025-01-09 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208374', 'tblTempVendorCDR_20' ) start [2025-01-09 08:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208374', 'tblTempVendorCDR_20' ) end [2025-01-09 08:32:17] Production.INFO: ProcessCDR(1,14208374,1,1,2) [2025-01-09 08:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208374', 'tblTempUsageDetail_20' ) start [2025-01-09 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208374', 'tblTempUsageDetail_20' ) end [2025-01-09 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:32:22] Production.INFO: ==7965== Releasing lock... [2025-01-09 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:32:22] Production.INFO: 31 MB #Memory Used# [2025-01-09 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:33:05 [end_date_ymd] => 2025-01-09 08:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:33:05' and `end` < '2025-01-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-01-09 08:33:19] Production.INFO: count ==356 [2025-01-09 08:33:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:33:05 - End Time 2025-01-09 08:33:05 [2025-01-09 08:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208379', 'tblTempUsageDetail_20' ) start [2025-01-09 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208379', 'tblTempUsageDetail_20' ) end [2025-01-09 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208379', 'tblTempVendorCDR_20' ) start [2025-01-09 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208379', 'tblTempVendorCDR_20' ) end [2025-01-09 08:33:19] Production.INFO: ProcessCDR(1,14208379,1,1,2) [2025-01-09 08:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208379', 'tblTempUsageDetail_20' ) start [2025-01-09 08:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208379', 'tblTempUsageDetail_20' ) end [2025-01-09 08:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:33:24] Production.INFO: ==8037== Releasing lock... [2025-01-09 08:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:33:24] Production.INFO: 31 MB #Memory Used# [2025-01-09 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:34:05 [end_date_ymd] => 2025-01-09 08:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:34:05' and `end` < '2025-01-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-01-09 08:34:19] Production.INFO: count ==356 [2025-01-09 08:34:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:34:05 - End Time 2025-01-09 08:34:05 [2025-01-09 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208384', 'tblTempUsageDetail_20' ) start [2025-01-09 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208384', 'tblTempUsageDetail_20' ) end [2025-01-09 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208384', 'tblTempVendorCDR_20' ) start [2025-01-09 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208384', 'tblTempVendorCDR_20' ) end [2025-01-09 08:34:19] Production.INFO: ProcessCDR(1,14208384,1,1,2) [2025-01-09 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208384', 'tblTempUsageDetail_20' ) start [2025-01-09 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208384', 'tblTempUsageDetail_20' ) end [2025-01-09 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:34:22] Production.INFO: ==8106== Releasing lock... [2025-01-09 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:34:22] Production.INFO: 31 MB #Memory Used# [2025-01-09 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:35:05 [end_date_ymd] => 2025-01-09 08:35:05 [RateCDR] => 1 ) [2025-01-09 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:35:05' and `end` < '2025-01-09 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:35:18] Production.INFO: count ==357 [2025-01-09 08:35:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:35:05 - End Time 2025-01-09 08:35:05 [2025-01-09 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208389', 'tblTempUsageDetail_20' ) start [2025-01-09 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208389', 'tblTempUsageDetail_20' ) end [2025-01-09 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208389', 'tblTempVendorCDR_20' ) start [2025-01-09 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208389', 'tblTempVendorCDR_20' ) end [2025-01-09 08:35:18] Production.INFO: ProcessCDR(1,14208389,1,1,2) [2025-01-09 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208389', 'tblTempUsageDetail_20' ) start [2025-01-09 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208389', 'tblTempUsageDetail_20' ) end [2025-01-09 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:35:21] Production.INFO: ==8178== Releasing lock... [2025-01-09 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:35:21] Production.INFO: 31 MB #Memory Used# [2025-01-09 08:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:36:04 [end_date_ymd] => 2025-01-09 08:36:04 [RateCDR] => 1 ) [2025-01-09 08:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:36:04' and `end` < '2025-01-09 08:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:36:17] Production.INFO: count ==372 [2025-01-09 08:36:17] Production.ERROR: pbx CDR StartTime 2025-01-09 05:36:04 - End Time 2025-01-09 08:36:04 [2025-01-09 08:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208394', 'tblTempUsageDetail_20' ) start [2025-01-09 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208394', 'tblTempUsageDetail_20' ) end [2025-01-09 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208394', 'tblTempVendorCDR_20' ) start [2025-01-09 08:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208394', 'tblTempVendorCDR_20' ) end [2025-01-09 08:36:17] Production.INFO: ProcessCDR(1,14208394,1,1,2) [2025-01-09 08:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208394', 'tblTempUsageDetail_20' ) start [2025-01-09 08:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208394', 'tblTempUsageDetail_20' ) end [2025-01-09 08:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:36:20] Production.INFO: ==8248== Releasing lock... [2025-01-09 08:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:36:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-09 08:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:37:04 [end_date_ymd] => 2025-01-09 08:37:04 [RateCDR] => 1 ) [2025-01-09 08:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:37:04' and `end` < '2025-01-09 08:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:37:19] Production.INFO: count ==380 [2025-01-09 08:37:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:37:04 - End Time 2025-01-09 08:37:04 [2025-01-09 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208399', 'tblTempUsageDetail_20' ) start [2025-01-09 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208399', 'tblTempUsageDetail_20' ) end [2025-01-09 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208399', 'tblTempVendorCDR_20' ) start [2025-01-09 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208399', 'tblTempVendorCDR_20' ) end [2025-01-09 08:37:19] Production.INFO: ProcessCDR(1,14208399,1,1,2) [2025-01-09 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208399', 'tblTempUsageDetail_20' ) start [2025-01-09 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208399', 'tblTempUsageDetail_20' ) end [2025-01-09 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:37:23] Production.INFO: ==8321== Releasing lock... [2025-01-09 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:37:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-09 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:38:05 [end_date_ymd] => 2025-01-09 08:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:38:05' and `end` < '2025-01-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-01-09 08:38:18] Production.INFO: count ==381 [2025-01-09 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:38:05 - End Time 2025-01-09 08:38:05 [2025-01-09 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208404', 'tblTempUsageDetail_20' ) start [2025-01-09 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208404', 'tblTempUsageDetail_20' ) end [2025-01-09 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208404', 'tblTempVendorCDR_20' ) start [2025-01-09 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208404', 'tblTempVendorCDR_20' ) end [2025-01-09 08:38:19] Production.INFO: ProcessCDR(1,14208404,1,1,2) [2025-01-09 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208404', 'tblTempUsageDetail_20' ) start [2025-01-09 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208404', 'tblTempUsageDetail_20' ) end [2025-01-09 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:38:23] Production.INFO: ==8392== Releasing lock... [2025-01-09 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:38:23] Production.INFO: 31 MB #Memory Used# [2025-01-09 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:39:04 [end_date_ymd] => 2025-01-09 08:39:04 [RateCDR] => 1 ) [2025-01-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-01-09 05:39:04' and `end` < '2025-01-09 08:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:39:19] Production.INFO: count ==384 [2025-01-09 08:39:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:39:04 - End Time 2025-01-09 08:39:04 [2025-01-09 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208409', 'tblTempUsageDetail_20' ) start [2025-01-09 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208409', 'tblTempUsageDetail_20' ) end [2025-01-09 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208409', 'tblTempVendorCDR_20' ) start [2025-01-09 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208409', 'tblTempVendorCDR_20' ) end [2025-01-09 08:39:19] Production.INFO: ProcessCDR(1,14208409,1,1,2) [2025-01-09 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208409', 'tblTempUsageDetail_20' ) start [2025-01-09 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208409', 'tblTempUsageDetail_20' ) end [2025-01-09 08:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:39:24] Production.INFO: ==8501== Releasing lock... [2025-01-09 08:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:39:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-09 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:40:05 [end_date_ymd] => 2025-01-09 08:40:05 [RateCDR] => 1 ) [2025-01-09 08:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:40:05' and `end` < '2025-01-09 08:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:40:18] Production.INFO: count ==389 [2025-01-09 08:40:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:40:05 - End Time 2025-01-09 08:40:05 [2025-01-09 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208414', 'tblTempUsageDetail_20' ) start [2025-01-09 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208414', 'tblTempUsageDetail_20' ) end [2025-01-09 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208414', 'tblTempVendorCDR_20' ) start [2025-01-09 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208414', 'tblTempVendorCDR_20' ) end [2025-01-09 08:40:18] Production.INFO: ProcessCDR(1,14208414,1,1,2) [2025-01-09 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208414', 'tblTempUsageDetail_20' ) start [2025-01-09 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208414', 'tblTempUsageDetail_20' ) end [2025-01-09 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:40:21] Production.INFO: ==8575== Releasing lock... [2025-01-09 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:40:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-09 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:41:05 [end_date_ymd] => 2025-01-09 08:41:05 [RateCDR] => 1 ) [2025-01-09 08:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:41:05' and `end` < '2025-01-09 08:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:41:19] Production.INFO: count ==414 [2025-01-09 08:41:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:41:05 - End Time 2025-01-09 08:41:05 [2025-01-09 08:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208420', 'tblTempUsageDetail_20' ) start [2025-01-09 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208420', 'tblTempUsageDetail_20' ) end [2025-01-09 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208420', 'tblTempVendorCDR_20' ) start [2025-01-09 08:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208420', 'tblTempVendorCDR_20' ) end [2025-01-09 08:41:19] Production.INFO: ProcessCDR(1,14208420,1,1,2) [2025-01-09 08:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208420', 'tblTempUsageDetail_20' ) start [2025-01-09 08:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208420', 'tblTempUsageDetail_20' ) end [2025-01-09 08:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:41:24] Production.INFO: ==8648== Releasing lock... [2025-01-09 08:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:41:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-09 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:42:05 [end_date_ymd] => 2025-01-09 08:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:42:05' and `end` < '2025-01-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-01-09 08:42:18] Production.INFO: count ==415 [2025-01-09 08:42:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:42:05 - End Time 2025-01-09 08:42:05 [2025-01-09 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208425', 'tblTempUsageDetail_20' ) start [2025-01-09 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208425', 'tblTempUsageDetail_20' ) end [2025-01-09 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208425', 'tblTempVendorCDR_20' ) start [2025-01-09 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208425', 'tblTempVendorCDR_20' ) end [2025-01-09 08:42:19] Production.INFO: ProcessCDR(1,14208425,1,1,2) [2025-01-09 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208425', 'tblTempUsageDetail_20' ) start [2025-01-09 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208425', 'tblTempUsageDetail_20' ) end [2025-01-09 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:42:23] Production.INFO: ==8719== Releasing lock... [2025-01-09 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:42:23] Production.INFO: 31.5 MB #Memory Used# [2025-01-09 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:43:05 [end_date_ymd] => 2025-01-09 08:43:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:43:05' and `end` < '2025-01-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-01-09 08:43:19] Production.INFO: count ==426 [2025-01-09 08:43:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:43:05 - End Time 2025-01-09 08:43:05 [2025-01-09 08:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208430', 'tblTempUsageDetail_20' ) start [2025-01-09 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208430', 'tblTempUsageDetail_20' ) end [2025-01-09 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208430', 'tblTempVendorCDR_20' ) start [2025-01-09 08:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208430', 'tblTempVendorCDR_20' ) end [2025-01-09 08:43:19] Production.INFO: ProcessCDR(1,14208430,1,1,2) [2025-01-09 08:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208430', 'tblTempUsageDetail_20' ) start [2025-01-09 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208430', 'tblTempUsageDetail_20' ) end [2025-01-09 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:43:22] Production.INFO: ==8792== Releasing lock... [2025-01-09 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:43:22] Production.INFO: 32 MB #Memory Used# [2025-01-09 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:44:05 [end_date_ymd] => 2025-01-09 08:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:44:05' and `end` < '2025-01-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-01-09 08:44:19] Production.INFO: count ==432 [2025-01-09 08:44:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:44:05 - End Time 2025-01-09 08:44:05 [2025-01-09 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208435', 'tblTempUsageDetail_20' ) start [2025-01-09 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208435', 'tblTempUsageDetail_20' ) end [2025-01-09 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208435', 'tblTempVendorCDR_20' ) start [2025-01-09 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208435', 'tblTempVendorCDR_20' ) end [2025-01-09 08:44:19] Production.INFO: ProcessCDR(1,14208435,1,1,2) [2025-01-09 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208435', 'tblTempUsageDetail_20' ) start [2025-01-09 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208435', 'tblTempUsageDetail_20' ) end [2025-01-09 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:44:23] Production.INFO: ==8863== Releasing lock... [2025-01-09 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:44:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-09 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:45:04 [end_date_ymd] => 2025-01-09 08:45:04 [RateCDR] => 1 ) [2025-01-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-01-09 05:45:04' and `end` < '2025-01-09 08:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:45:18] Production.INFO: count ==441 [2025-01-09 08:45:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:45:04 - End Time 2025-01-09 08:45:04 [2025-01-09 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208440', 'tblTempUsageDetail_20' ) start [2025-01-09 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208440', 'tblTempUsageDetail_20' ) end [2025-01-09 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208440', 'tblTempVendorCDR_20' ) start [2025-01-09 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208440', 'tblTempVendorCDR_20' ) end [2025-01-09 08:45:18] Production.INFO: ProcessCDR(1,14208440,1,1,2) [2025-01-09 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208440', 'tblTempUsageDetail_20' ) start [2025-01-09 08:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208440', 'tblTempUsageDetail_20' ) end [2025-01-09 08:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:45:21] Production.INFO: ==8933== Releasing lock... [2025-01-09 08:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:45:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-09 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:46:05 [end_date_ymd] => 2025-01-09 08:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:46:05' and `end` < '2025-01-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-01-09 08:46:18] Production.INFO: count ==454 [2025-01-09 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:46:05 - End Time 2025-01-09 08:46:05 [2025-01-09 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208445', 'tblTempUsageDetail_20' ) start [2025-01-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208445', 'tblTempUsageDetail_20' ) end [2025-01-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208445', 'tblTempVendorCDR_20' ) start [2025-01-09 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208445', 'tblTempVendorCDR_20' ) end [2025-01-09 08:46:18] Production.INFO: ProcessCDR(1,14208445,1,1,2) [2025-01-09 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208445', 'tblTempUsageDetail_20' ) start [2025-01-09 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208445', 'tblTempUsageDetail_20' ) end [2025-01-09 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:46:22] Production.INFO: ==9012== Releasing lock... [2025-01-09 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:46:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-09 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:47:04 [end_date_ymd] => 2025-01-09 08:47:04 [RateCDR] => 1 ) [2025-01-09 08:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:47:04' and `end` < '2025-01-09 08:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:47:17] Production.INFO: count ==474 [2025-01-09 08:47:17] Production.ERROR: pbx CDR StartTime 2025-01-09 05:47:04 - End Time 2025-01-09 08:47:04 [2025-01-09 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208450', 'tblTempUsageDetail_20' ) start [2025-01-09 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208450', 'tblTempUsageDetail_20' ) end [2025-01-09 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208450', 'tblTempVendorCDR_20' ) start [2025-01-09 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208450', 'tblTempVendorCDR_20' ) end [2025-01-09 08:47:17] Production.INFO: ProcessCDR(1,14208450,1,1,2) [2025-01-09 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208450', 'tblTempUsageDetail_20' ) start [2025-01-09 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208450', 'tblTempUsageDetail_20' ) end [2025-01-09 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:47:21] Production.INFO: ==9083== Releasing lock... [2025-01-09 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:47:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:48:05 [end_date_ymd] => 2025-01-09 08:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:48:05' and `end` < '2025-01-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-01-09 08:48:18] Production.INFO: count ==482 [2025-01-09 08:48:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:48:05 - End Time 2025-01-09 08:48:05 [2025-01-09 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208455', 'tblTempUsageDetail_20' ) start [2025-01-09 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208455', 'tblTempUsageDetail_20' ) end [2025-01-09 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208455', 'tblTempVendorCDR_20' ) start [2025-01-09 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208455', 'tblTempVendorCDR_20' ) end [2025-01-09 08:48:18] Production.INFO: ProcessCDR(1,14208455,1,1,2) [2025-01-09 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208455', 'tblTempUsageDetail_20' ) start [2025-01-09 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208455', 'tblTempUsageDetail_20' ) end [2025-01-09 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:48:23] Production.INFO: ==9156== Releasing lock... [2025-01-09 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:48:23] Production.INFO: 32 MB #Memory Used# [2025-01-09 08:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:49:04 [end_date_ymd] => 2025-01-09 08:49:04 [RateCDR] => 1 ) [2025-01-09 08:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:49:04' and `end` < '2025-01-09 08:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:49:18] Production.INFO: count ==483 [2025-01-09 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:49:04 - End Time 2025-01-09 08:49:04 [2025-01-09 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208460', 'tblTempUsageDetail_20' ) start [2025-01-09 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208460', 'tblTempUsageDetail_20' ) end [2025-01-09 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208460', 'tblTempVendorCDR_20' ) start [2025-01-09 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208460', 'tblTempVendorCDR_20' ) end [2025-01-09 08:49:18] Production.INFO: ProcessCDR(1,14208460,1,1,2) [2025-01-09 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208460', 'tblTempUsageDetail_20' ) start [2025-01-09 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208460', 'tblTempUsageDetail_20' ) end [2025-01-09 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:49:21] Production.INFO: ==9224== Releasing lock... [2025-01-09 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:49:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:50:06 [end_date_ymd] => 2025-01-09 08:50:06 [RateCDR] => 1 ) [2025-01-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-01-09 05:50:06' and `end` < '2025-01-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-01-09 08:50:19] Production.INFO: count ==489 [2025-01-09 08:50:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:50:06 - End Time 2025-01-09 08:50:06 [2025-01-09 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208466', 'tblTempUsageDetail_20' ) start [2025-01-09 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208466', 'tblTempUsageDetail_20' ) end [2025-01-09 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208466', 'tblTempVendorCDR_20' ) start [2025-01-09 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208466', 'tblTempVendorCDR_20' ) end [2025-01-09 08:50:19] Production.INFO: ProcessCDR(1,14208466,1,1,2) [2025-01-09 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208466', 'tblTempUsageDetail_20' ) start [2025-01-09 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208466', 'tblTempUsageDetail_20' ) end [2025-01-09 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:50:22] Production.INFO: ==9299== Releasing lock... [2025-01-09 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:50:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 08:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:51:04 [end_date_ymd] => 2025-01-09 08:51:04 [RateCDR] => 1 ) [2025-01-09 08:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:51:04' and `end` < '2025-01-09 08:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:51:18] Production.INFO: count ==515 [2025-01-09 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:51:04 - End Time 2025-01-09 08:51:04 [2025-01-09 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208471', 'tblTempUsageDetail_20' ) start [2025-01-09 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208471', 'tblTempUsageDetail_20' ) end [2025-01-09 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208471', 'tblTempVendorCDR_20' ) start [2025-01-09 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208471', 'tblTempVendorCDR_20' ) end [2025-01-09 08:51:18] Production.INFO: ProcessCDR(1,14208471,1,1,2) [2025-01-09 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208471', 'tblTempUsageDetail_20' ) start [2025-01-09 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208471', 'tblTempUsageDetail_20' ) end [2025-01-09 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:51:21] Production.INFO: ==9371== Releasing lock... [2025-01-09 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:51:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-09 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:52:05 [end_date_ymd] => 2025-01-09 08:52:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:52:05' and `end` < '2025-01-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-01-09 08:52:18] Production.INFO: count ==522 [2025-01-09 08:52:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:52:05 - End Time 2025-01-09 08:52:05 [2025-01-09 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208476', 'tblTempUsageDetail_20' ) start [2025-01-09 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208476', 'tblTempUsageDetail_20' ) end [2025-01-09 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208476', 'tblTempVendorCDR_20' ) start [2025-01-09 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208476', 'tblTempVendorCDR_20' ) end [2025-01-09 08:52:18] Production.INFO: ProcessCDR(1,14208476,1,1,2) [2025-01-09 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208476', 'tblTempUsageDetail_20' ) start [2025-01-09 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208476', 'tblTempUsageDetail_20' ) end [2025-01-09 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:52:23] Production.INFO: ==9445== Releasing lock... [2025-01-09 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:52:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:53:05 [end_date_ymd] => 2025-01-09 08:53:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:53:05' and `end` < '2025-01-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-01-09 08:53:18] Production.INFO: count ==524 [2025-01-09 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:53:05 - End Time 2025-01-09 08:53:05 [2025-01-09 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208481', 'tblTempUsageDetail_20' ) start [2025-01-09 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208481', 'tblTempUsageDetail_20' ) end [2025-01-09 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208481', 'tblTempVendorCDR_20' ) start [2025-01-09 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208481', 'tblTempVendorCDR_20' ) end [2025-01-09 08:53:18] Production.INFO: ProcessCDR(1,14208481,1,1,2) [2025-01-09 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208481', 'tblTempUsageDetail_20' ) start [2025-01-09 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208481', 'tblTempUsageDetail_20' ) end [2025-01-09 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:53:22] Production.INFO: ==9516== Releasing lock... [2025-01-09 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-09 08:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:54:04 [end_date_ymd] => 2025-01-09 08:54:04 [RateCDR] => 1 ) [2025-01-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-01-09 05:54:04' and `end` < '2025-01-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-01-09 08:54:17] Production.INFO: count ==564 [2025-01-09 08:54:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:54:04 - End Time 2025-01-09 08:54:04 [2025-01-09 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208486', 'tblTempUsageDetail_20' ) start [2025-01-09 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208486', 'tblTempUsageDetail_20' ) end [2025-01-09 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208486', 'tblTempVendorCDR_20' ) start [2025-01-09 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208486', 'tblTempVendorCDR_20' ) end [2025-01-09 08:54:18] Production.INFO: ProcessCDR(1,14208486,1,1,2) [2025-01-09 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208486', 'tblTempUsageDetail_20' ) start [2025-01-09 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208486', 'tblTempUsageDetail_20' ) end [2025-01-09 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:54:22] Production.INFO: ==9651== Releasing lock... [2025-01-09 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:54:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:55:05 [end_date_ymd] => 2025-01-09 08:55:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:55:05' and `end` < '2025-01-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-01-09 08:55:18] Production.INFO: count ==573 [2025-01-09 08:55:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:55:05 - End Time 2025-01-09 08:55:05 [2025-01-09 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208491', 'tblTempUsageDetail_20' ) start [2025-01-09 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208491', 'tblTempUsageDetail_20' ) end [2025-01-09 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208491', 'tblTempVendorCDR_20' ) start [2025-01-09 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208491', 'tblTempVendorCDR_20' ) end [2025-01-09 08:55:18] Production.INFO: ProcessCDR(1,14208491,1,1,2) [2025-01-09 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208491', 'tblTempUsageDetail_20' ) start [2025-01-09 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208491', 'tblTempUsageDetail_20' ) end [2025-01-09 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:55:23] Production.INFO: ==9753== Releasing lock... [2025-01-09 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:55:23] Production.INFO: 33 MB #Memory Used# [2025-01-09 08:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:56:04 [end_date_ymd] => 2025-01-09 08:56:04 [RateCDR] => 1 ) [2025-01-09 08:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:56:04' and `end` < '2025-01-09 08:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:56:17] Production.INFO: count ==604 [2025-01-09 08:56:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:56:04 - End Time 2025-01-09 08:56:04 [2025-01-09 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208496', 'tblTempUsageDetail_20' ) start [2025-01-09 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208496', 'tblTempUsageDetail_20' ) end [2025-01-09 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208496', 'tblTempVendorCDR_20' ) start [2025-01-09 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208496', 'tblTempVendorCDR_20' ) end [2025-01-09 08:56:18] Production.INFO: ProcessCDR(1,14208496,1,1,2) [2025-01-09 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208496', 'tblTempUsageDetail_20' ) start [2025-01-09 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208496', 'tblTempUsageDetail_20' ) end [2025-01-09 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:56:23] Production.INFO: ==9851== Releasing lock... [2025-01-09 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:56:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:57:05 [end_date_ymd] => 2025-01-09 08:57:05 [RateCDR] => 1 ) [2025-01-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-01-09 05:57:05' and `end` < '2025-01-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-01-09 08:57:19] Production.INFO: count ==605 [2025-01-09 08:57:19] Production.ERROR: pbx CDR StartTime 2025-01-09 05:57:05 - End Time 2025-01-09 08:57:05 [2025-01-09 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208501', 'tblTempUsageDetail_20' ) start [2025-01-09 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208501', 'tblTempUsageDetail_20' ) end [2025-01-09 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208501', 'tblTempVendorCDR_20' ) start [2025-01-09 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208501', 'tblTempVendorCDR_20' ) end [2025-01-09 08:57:19] Production.INFO: ProcessCDR(1,14208501,1,1,2) [2025-01-09 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208501', 'tblTempUsageDetail_20' ) start [2025-01-09 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208501', 'tblTempUsageDetail_20' ) end [2025-01-09 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:57:22] Production.INFO: ==9927== Releasing lock... [2025-01-09 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:57:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 08:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:58:04 [end_date_ymd] => 2025-01-09 08:58:04 [RateCDR] => 1 ) [2025-01-09 08:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:58:04' and `end` < '2025-01-09 08:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:58:18] Production.INFO: count ==605 [2025-01-09 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:58:04 - End Time 2025-01-09 08:58:04 [2025-01-09 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208506', 'tblTempUsageDetail_20' ) start [2025-01-09 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208506', 'tblTempUsageDetail_20' ) end [2025-01-09 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208506', 'tblTempVendorCDR_20' ) start [2025-01-09 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208506', 'tblTempVendorCDR_20' ) end [2025-01-09 08:58:18] Production.INFO: ProcessCDR(1,14208506,1,1,2) [2025-01-09 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208506', 'tblTempUsageDetail_20' ) start [2025-01-09 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208506', 'tblTempUsageDetail_20' ) end [2025-01-09 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:58:21] Production.INFO: ==10004== Releasing lock... [2025-01-09 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:58:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 08:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 05:59:04 [end_date_ymd] => 2025-01-09 08:59:04 [RateCDR] => 1 ) [2025-01-09 08:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 05:59:04' and `end` < '2025-01-09 08:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 08:59:18] Production.INFO: count ==613 [2025-01-09 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-09 05:59:04 - End Time 2025-01-09 08:59:04 [2025-01-09 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208511', 'tblTempUsageDetail_20' ) start [2025-01-09 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208511', 'tblTempUsageDetail_20' ) end [2025-01-09 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208511', 'tblTempVendorCDR_20' ) start [2025-01-09 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208511', 'tblTempVendorCDR_20' ) end [2025-01-09 08:59:18] Production.INFO: ProcessCDR(1,14208511,1,1,2) [2025-01-09 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208511', 'tblTempUsageDetail_20' ) start [2025-01-09 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208511', 'tblTempUsageDetail_20' ) end [2025-01-09 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 08:59:22] Production.INFO: ==10074== Releasing lock... [2025-01-09 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 08:59:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-09 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:00:05 [end_date_ymd] => 2025-01-09 09:00:05 [RateCDR] => 1 ) [2025-01-09 09:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:00:05' and `end` < '2025-01-09 09:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:00:18] Production.INFO: count ==630 [2025-01-09 09:00:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:00:05 - End Time 2025-01-09 09:00:05 [2025-01-09 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208517', 'tblTempUsageDetail_20' ) start [2025-01-09 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208517', 'tblTempUsageDetail_20' ) end [2025-01-09 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208517', 'tblTempVendorCDR_20' ) start [2025-01-09 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208517', 'tblTempVendorCDR_20' ) end [2025-01-09 09:00:18] Production.INFO: ProcessCDR(1,14208517,1,1,2) [2025-01-09 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208517', 'tblTempUsageDetail_20' ) start [2025-01-09 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208517', 'tblTempUsageDetail_20' ) end [2025-01-09 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:00:23] Production.INFO: ==10146== Releasing lock... [2025-01-09 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:00:23] Production.INFO: 33 MB #Memory Used# [2025-01-09 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:01:05 [end_date_ymd] => 2025-01-09 09:01:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:01:05' and `end` < '2025-01-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-01-09 09:01:20] Production.INFO: count ==694 [2025-01-09 09:01:20] Production.ERROR: pbx CDR StartTime 2025-01-09 06:01:05 - End Time 2025-01-09 09:01:05 [2025-01-09 09:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208522', 'tblTempUsageDetail_20' ) start [2025-01-09 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208522', 'tblTempUsageDetail_20' ) end [2025-01-09 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208522', 'tblTempVendorCDR_20' ) start [2025-01-09 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208522', 'tblTempVendorCDR_20' ) end [2025-01-09 09:01:20] Production.INFO: ProcessCDR(1,14208522,1,1,2) [2025-01-09 09:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208522', 'tblTempUsageDetail_20' ) start [2025-01-09 09:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208522', 'tblTempUsageDetail_20' ) end [2025-01-09 09:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:01:24] Production.INFO: ==10229== Releasing lock... [2025-01-09 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:01:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-09 09:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:02:04 [end_date_ymd] => 2025-01-09 09:02:04 [RateCDR] => 1 ) [2025-01-09 09:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:02:04' and `end` < '2025-01-09 09:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:02:18] Production.INFO: count ==729 [2025-01-09 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:02:04 - End Time 2025-01-09 09:02:04 [2025-01-09 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208527', 'tblTempUsageDetail_20' ) start [2025-01-09 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208527', 'tblTempUsageDetail_20' ) end [2025-01-09 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208527', 'tblTempVendorCDR_20' ) start [2025-01-09 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208527', 'tblTempVendorCDR_20' ) end [2025-01-09 09:02:18] Production.INFO: ProcessCDR(1,14208527,1,1,2) [2025-01-09 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208527', 'tblTempUsageDetail_20' ) start [2025-01-09 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208527', 'tblTempUsageDetail_20' ) end [2025-01-09 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:02:22] Production.INFO: ==10303== Releasing lock... [2025-01-09 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:02:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 09:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:03:04 [end_date_ymd] => 2025-01-09 09:03:04 [RateCDR] => 1 ) [2025-01-09 09:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:03:04' and `end` < '2025-01-09 09:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:03:18] Production.INFO: count ==745 [2025-01-09 09:03:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:03:04 - End Time 2025-01-09 09:03:04 [2025-01-09 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208532', 'tblTempUsageDetail_20' ) start [2025-01-09 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208532', 'tblTempUsageDetail_20' ) end [2025-01-09 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208532', 'tblTempVendorCDR_20' ) start [2025-01-09 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208532', 'tblTempVendorCDR_20' ) end [2025-01-09 09:03:18] Production.INFO: ProcessCDR(1,14208532,1,1,2) [2025-01-09 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208532', 'tblTempUsageDetail_20' ) start [2025-01-09 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208532', 'tblTempUsageDetail_20' ) end [2025-01-09 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:03:22] Production.INFO: ==10374== Releasing lock... [2025-01-09 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:03:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-09 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:04:05 [end_date_ymd] => 2025-01-09 09:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:04:05' and `end` < '2025-01-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-01-09 09:04:18] Production.INFO: count ==778 [2025-01-09 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:04:05 - End Time 2025-01-09 09:04:05 [2025-01-09 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208537', 'tblTempUsageDetail_20' ) start [2025-01-09 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208537', 'tblTempUsageDetail_20' ) end [2025-01-09 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208537', 'tblTempVendorCDR_20' ) start [2025-01-09 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208537', 'tblTempVendorCDR_20' ) end [2025-01-09 09:04:18] Production.INFO: ProcessCDR(1,14208537,1,1,2) [2025-01-09 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208537', 'tblTempUsageDetail_20' ) start [2025-01-09 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208537', 'tblTempUsageDetail_20' ) end [2025-01-09 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:04:23] Production.INFO: ==10448== Releasing lock... [2025-01-09 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:04:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-09 09:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:05:04 [end_date_ymd] => 2025-01-09 09:05:04 [RateCDR] => 1 ) [2025-01-09 09:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:05:04' and `end` < '2025-01-09 09:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:05:17] Production.INFO: count ==799 [2025-01-09 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:05:04 - End Time 2025-01-09 09:05:04 [2025-01-09 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208542', 'tblTempUsageDetail_20' ) start [2025-01-09 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208542', 'tblTempUsageDetail_20' ) end [2025-01-09 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208542', 'tblTempVendorCDR_20' ) start [2025-01-09 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208542', 'tblTempVendorCDR_20' ) end [2025-01-09 09:05:18] Production.INFO: ProcessCDR(1,14208542,1,1,2) [2025-01-09 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208542', 'tblTempUsageDetail_20' ) start [2025-01-09 09:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208542', 'tblTempUsageDetail_20' ) end [2025-01-09 09:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:05:21] Production.INFO: ==10518== Releasing lock... [2025-01-09 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:05:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-09 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:06:05 [end_date_ymd] => 2025-01-09 09:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:06:05' and `end` < '2025-01-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-01-09 09:06:19] Production.INFO: count ==802 [2025-01-09 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-09 06:06:05 - End Time 2025-01-09 09:06:05 [2025-01-09 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208547', 'tblTempUsageDetail_20' ) start [2025-01-09 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208547', 'tblTempUsageDetail_20' ) end [2025-01-09 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208547', 'tblTempVendorCDR_20' ) start [2025-01-09 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208547', 'tblTempVendorCDR_20' ) end [2025-01-09 09:06:19] Production.INFO: ProcessCDR(1,14208547,1,1,2) [2025-01-09 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208547', 'tblTempUsageDetail_20' ) start [2025-01-09 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208547', 'tblTempUsageDetail_20' ) end [2025-01-09 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:06:23] Production.INFO: ==10588== Releasing lock... [2025-01-09 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:06:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-09 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:07:04 [end_date_ymd] => 2025-01-09 09:07:04 [RateCDR] => 1 ) [2025-01-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-01-09 06:07:04' and `end` < '2025-01-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-01-09 09:07:17] Production.INFO: count ==813 [2025-01-09 09:07:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:07:04 - End Time 2025-01-09 09:07:04 [2025-01-09 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208552', 'tblTempUsageDetail_20' ) start [2025-01-09 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208552', 'tblTempUsageDetail_20' ) end [2025-01-09 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208552', 'tblTempVendorCDR_20' ) start [2025-01-09 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208552', 'tblTempVendorCDR_20' ) end [2025-01-09 09:07:18] Production.INFO: ProcessCDR(1,14208552,1,1,2) [2025-01-09 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208552', 'tblTempUsageDetail_20' ) start [2025-01-09 09:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208552', 'tblTempUsageDetail_20' ) end [2025-01-09 09:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:07:21] Production.INFO: ==10658== Releasing lock... [2025-01-09 09:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:07:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-09 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:08:05 [end_date_ymd] => 2025-01-09 09:08:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:08:05' and `end` < '2025-01-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-01-09 09:08:18] Production.INFO: count ==834 [2025-01-09 09:08:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:08:05 - End Time 2025-01-09 09:08:05 [2025-01-09 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208557', 'tblTempUsageDetail_20' ) start [2025-01-09 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208557', 'tblTempUsageDetail_20' ) end [2025-01-09 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208557', 'tblTempVendorCDR_20' ) start [2025-01-09 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208557', 'tblTempVendorCDR_20' ) end [2025-01-09 09:08:18] Production.INFO: ProcessCDR(1,14208557,1,1,2) [2025-01-09 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208557', 'tblTempUsageDetail_20' ) start [2025-01-09 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208557', 'tblTempUsageDetail_20' ) end [2025-01-09 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:08:23] Production.INFO: ==10730== Releasing lock... [2025-01-09 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:08:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-09 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:09:04 [end_date_ymd] => 2025-01-09 09:09:04 [RateCDR] => 1 ) [2025-01-09 09:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:09:04' and `end` < '2025-01-09 09:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:09:18] Production.INFO: count ==856 [2025-01-09 09:09:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:09:04 - End Time 2025-01-09 09:09:04 [2025-01-09 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208562', 'tblTempUsageDetail_20' ) start [2025-01-09 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208562', 'tblTempUsageDetail_20' ) end [2025-01-09 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208562', 'tblTempVendorCDR_20' ) start [2025-01-09 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208562', 'tblTempVendorCDR_20' ) end [2025-01-09 09:09:18] Production.INFO: ProcessCDR(1,14208562,1,1,2) [2025-01-09 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208562', 'tblTempUsageDetail_20' ) start [2025-01-09 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208562', 'tblTempUsageDetail_20' ) end [2025-01-09 09:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:09:21] Production.INFO: ==10801== Releasing lock... [2025-01-09 09:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:09:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-09 09:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:10:05 [end_date_ymd] => 2025-01-09 09:10:05 [RateCDR] => 1 ) [2025-01-09 09:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:10:05' and `end` < '2025-01-09 09:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:10:18] Production.INFO: count ==903 [2025-01-09 09:10:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:10:05 - End Time 2025-01-09 09:10:05 [2025-01-09 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208567', 'tblTempUsageDetail_20' ) start [2025-01-09 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208567', 'tblTempUsageDetail_20' ) end [2025-01-09 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208567', 'tblTempVendorCDR_20' ) start [2025-01-09 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208567', 'tblTempVendorCDR_20' ) end [2025-01-09 09:10:18] Production.INFO: ProcessCDR(1,14208567,1,1,2) [2025-01-09 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208567', 'tblTempUsageDetail_20' ) start [2025-01-09 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208567', 'tblTempUsageDetail_20' ) end [2025-01-09 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:10:23] Production.INFO: ==10914== Releasing lock... [2025-01-09 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:10:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-09 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:11:05 [end_date_ymd] => 2025-01-09 09:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:11:05' and `end` < '2025-01-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-01-09 09:11:18] Production.INFO: count ==987 [2025-01-09 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:11:05 - End Time 2025-01-09 09:11:05 [2025-01-09 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208573', 'tblTempUsageDetail_20' ) start [2025-01-09 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208573', 'tblTempUsageDetail_20' ) end [2025-01-09 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208573', 'tblTempVendorCDR_20' ) start [2025-01-09 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208573', 'tblTempVendorCDR_20' ) end [2025-01-09 09:11:18] Production.INFO: ProcessCDR(1,14208573,1,1,2) [2025-01-09 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208573', 'tblTempUsageDetail_20' ) start [2025-01-09 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208573', 'tblTempUsageDetail_20' ) end [2025-01-09 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:11:23] Production.INFO: ==10988== Releasing lock... [2025-01-09 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:11:23] Production.INFO: 36 MB #Memory Used# [2025-01-09 09:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:12:04 [end_date_ymd] => 2025-01-09 09:12:04 [RateCDR] => 1 ) [2025-01-09 09:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:12:04' and `end` < '2025-01-09 09:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:12:18] Production.INFO: count ==991 [2025-01-09 09:12:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:12:04 - End Time 2025-01-09 09:12:04 [2025-01-09 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208578', 'tblTempUsageDetail_20' ) start [2025-01-09 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208578', 'tblTempUsageDetail_20' ) end [2025-01-09 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208578', 'tblTempVendorCDR_20' ) start [2025-01-09 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208578', 'tblTempVendorCDR_20' ) end [2025-01-09 09:12:18] Production.INFO: ProcessCDR(1,14208578,1,1,2) [2025-01-09 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208578', 'tblTempUsageDetail_20' ) start [2025-01-09 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208578', 'tblTempUsageDetail_20' ) end [2025-01-09 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:12:22] Production.INFO: ==11066== Releasing lock... [2025-01-09 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:12:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-09 09:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:13:04 [end_date_ymd] => 2025-01-09 09:13:04 [RateCDR] => 1 ) [2025-01-09 09:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:13:04' and `end` < '2025-01-09 09:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:13:18] Production.INFO: count ==999 [2025-01-09 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:13:04 - End Time 2025-01-09 09:13:04 [2025-01-09 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208583', 'tblTempUsageDetail_20' ) start [2025-01-09 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208583', 'tblTempUsageDetail_20' ) end [2025-01-09 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208583', 'tblTempVendorCDR_20' ) start [2025-01-09 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208583', 'tblTempVendorCDR_20' ) end [2025-01-09 09:13:18] Production.INFO: ProcessCDR(1,14208583,1,1,2) [2025-01-09 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208583', 'tblTempUsageDetail_20' ) start [2025-01-09 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208583', 'tblTempUsageDetail_20' ) end [2025-01-09 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:13:23] Production.INFO: ==11137== Releasing lock... [2025-01-09 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:13:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-09 09:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:14:04 [end_date_ymd] => 2025-01-09 09:14:04 [RateCDR] => 1 ) [2025-01-09 09:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:14:04' and `end` < '2025-01-09 09:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:14:19] Production.INFO: count ==1011 [2025-01-09 09:14:19] Production.ERROR: pbx CDR StartTime 2025-01-09 06:14:04 - End Time 2025-01-09 09:14:04 [2025-01-09 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208588', 'tblTempUsageDetail_20' ) start [2025-01-09 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208588', 'tblTempUsageDetail_20' ) end [2025-01-09 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208588', 'tblTempVendorCDR_20' ) start [2025-01-09 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208588', 'tblTempVendorCDR_20' ) end [2025-01-09 09:14:20] Production.INFO: ProcessCDR(1,14208588,1,1,2) [2025-01-09 09:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208588', 'tblTempUsageDetail_20' ) start [2025-01-09 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208588', 'tblTempUsageDetail_20' ) end [2025-01-09 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:14:23] Production.INFO: ==11206== Releasing lock... [2025-01-09 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:14:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-09 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:15:05 [end_date_ymd] => 2025-01-09 09:15:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:15:05' and `end` < '2025-01-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-01-09 09:15:18] Production.INFO: count ==1019 [2025-01-09 09:15:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:15:05 - End Time 2025-01-09 09:15:05 [2025-01-09 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208593', 'tblTempUsageDetail_20' ) start [2025-01-09 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208593', 'tblTempUsageDetail_20' ) end [2025-01-09 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208593', 'tblTempVendorCDR_20' ) start [2025-01-09 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208593', 'tblTempVendorCDR_20' ) end [2025-01-09 09:15:18] Production.INFO: ProcessCDR(1,14208593,1,1,2) [2025-01-09 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208593', 'tblTempUsageDetail_20' ) start [2025-01-09 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208593', 'tblTempUsageDetail_20' ) end [2025-01-09 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:15:23] Production.INFO: ==11278== Releasing lock... [2025-01-09 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:15:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-09 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:16:05 [end_date_ymd] => 2025-01-09 09:16:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:16:05' and `end` < '2025-01-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-01-09 09:16:18] Production.INFO: count ==1042 [2025-01-09 09:16:19] Production.ERROR: pbx CDR StartTime 2025-01-09 06:16:05 - End Time 2025-01-09 09:16:05 [2025-01-09 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208598', 'tblTempUsageDetail_20' ) start [2025-01-09 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208598', 'tblTempUsageDetail_20' ) end [2025-01-09 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208598', 'tblTempVendorCDR_20' ) start [2025-01-09 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208598', 'tblTempVendorCDR_20' ) end [2025-01-09 09:16:19] Production.INFO: ProcessCDR(1,14208598,1,1,2) [2025-01-09 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208598', 'tblTempUsageDetail_20' ) start [2025-01-09 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208598', 'tblTempUsageDetail_20' ) end [2025-01-09 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:16:23] Production.INFO: ==11349== Releasing lock... [2025-01-09 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:16:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-09 09:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:17:04 [end_date_ymd] => 2025-01-09 09:17:04 [RateCDR] => 1 ) [2025-01-09 09:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:17:04' and `end` < '2025-01-09 09:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:17:17] Production.INFO: count ==1058 [2025-01-09 09:17:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:17:04 - End Time 2025-01-09 09:17:04 [2025-01-09 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208603', 'tblTempUsageDetail_20' ) start [2025-01-09 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208603', 'tblTempUsageDetail_20' ) end [2025-01-09 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208603', 'tblTempVendorCDR_20' ) start [2025-01-09 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208603', 'tblTempVendorCDR_20' ) end [2025-01-09 09:17:18] Production.INFO: ProcessCDR(1,14208603,1,1,2) [2025-01-09 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208603', 'tblTempUsageDetail_20' ) start [2025-01-09 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208603', 'tblTempUsageDetail_20' ) end [2025-01-09 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:17:22] Production.INFO: ==11421== Releasing lock... [2025-01-09 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:17:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-09 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:18:05 [end_date_ymd] => 2025-01-09 09:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:18:05' and `end` < '2025-01-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-01-09 09:18:18] Production.INFO: count ==1086 [2025-01-09 09:18:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:18:05 - End Time 2025-01-09 09:18:05 [2025-01-09 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208608', 'tblTempUsageDetail_20' ) start [2025-01-09 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208608', 'tblTempUsageDetail_20' ) end [2025-01-09 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208608', 'tblTempVendorCDR_20' ) start [2025-01-09 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208608', 'tblTempVendorCDR_20' ) end [2025-01-09 09:18:18] Production.INFO: ProcessCDR(1,14208608,1,1,2) [2025-01-09 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208608', 'tblTempUsageDetail_20' ) start [2025-01-09 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208608', 'tblTempUsageDetail_20' ) end [2025-01-09 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:18:23] Production.INFO: ==11492== Releasing lock... [2025-01-09 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:18:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-09 09:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:19:04 [end_date_ymd] => 2025-01-09 09:19:04 [RateCDR] => 1 ) [2025-01-09 09:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:19:04' and `end` < '2025-01-09 09:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:19:20] Production.INFO: count ==1099 [2025-01-09 09:19:20] Production.ERROR: pbx CDR StartTime 2025-01-09 06:19:04 - End Time 2025-01-09 09:19:04 [2025-01-09 09:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208613', 'tblTempUsageDetail_20' ) start [2025-01-09 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208613', 'tblTempUsageDetail_20' ) end [2025-01-09 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208613', 'tblTempVendorCDR_20' ) start [2025-01-09 09:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208613', 'tblTempVendorCDR_20' ) end [2025-01-09 09:19:20] Production.INFO: ProcessCDR(1,14208613,1,1,2) [2025-01-09 09:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208613', 'tblTempUsageDetail_20' ) start [2025-01-09 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208613', 'tblTempUsageDetail_20' ) end [2025-01-09 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:19:24] Production.INFO: ==11563== Releasing lock... [2025-01-09 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:19:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-09 09:20:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:20:04 [end_date_ymd] => 2025-01-09 09:20:04 [RateCDR] => 1 ) [2025-01-09 09:20:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:20:04' and `end` < '2025-01-09 09:20:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:20:22] Production.INFO: count ==1114 [2025-01-09 09:20:22] Production.ERROR: pbx CDR StartTime 2025-01-09 06:20:04 - End Time 2025-01-09 09:20:04 [2025-01-09 09:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208619', 'tblTempUsageDetail_20' ) start [2025-01-09 09:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208619', 'tblTempUsageDetail_20' ) end [2025-01-09 09:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208619', 'tblTempVendorCDR_20' ) start [2025-01-09 09:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208619', 'tblTempVendorCDR_20' ) end [2025-01-09 09:20:22] Production.INFO: ProcessCDR(1,14208619,1,1,2) [2025-01-09 09:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208619', 'tblTempUsageDetail_20' ) start [2025-01-09 09:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208619', 'tblTempUsageDetail_20' ) end [2025-01-09 09:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:20:27] Production.INFO: ==11635== Releasing lock... [2025-01-09 09:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:20:27] Production.INFO: 36.75 MB #Memory Used# [2025-01-09 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:21:05 [end_date_ymd] => 2025-01-09 09:21:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:21:05' and `end` < '2025-01-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-01-09 09:21:19] Production.INFO: count ==1206 [2025-01-09 09:21:19] Production.ERROR: pbx CDR StartTime 2025-01-09 06:21:05 - End Time 2025-01-09 09:21:05 [2025-01-09 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208624', 'tblTempUsageDetail_20' ) start [2025-01-09 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208624', 'tblTempUsageDetail_20' ) end [2025-01-09 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208624', 'tblTempVendorCDR_20' ) start [2025-01-09 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208624', 'tblTempVendorCDR_20' ) end [2025-01-09 09:21:19] Production.INFO: ProcessCDR(1,14208624,1,1,2) [2025-01-09 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208624', 'tblTempUsageDetail_20' ) start [2025-01-09 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208624', 'tblTempUsageDetail_20' ) end [2025-01-09 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:21:24] Production.INFO: ==11708== Releasing lock... [2025-01-09 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:21:24] Production.INFO: 37.5 MB #Memory Used# [2025-01-09 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:22:06 [end_date_ymd] => 2025-01-09 09:22:06 [RateCDR] => 1 ) [2025-01-09 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:22:06' and `end` < '2025-01-09 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:22:19] Production.INFO: count ==1215 [2025-01-09 09:22:19] Production.ERROR: pbx CDR StartTime 2025-01-09 06:22:06 - End Time 2025-01-09 09:22:06 [2025-01-09 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208629', 'tblTempUsageDetail_20' ) start [2025-01-09 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208629', 'tblTempUsageDetail_20' ) end [2025-01-09 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208629', 'tblTempVendorCDR_20' ) start [2025-01-09 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208629', 'tblTempVendorCDR_20' ) end [2025-01-09 09:22:19] Production.INFO: ProcessCDR(1,14208629,1,1,2) [2025-01-09 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208629', 'tblTempUsageDetail_20' ) start [2025-01-09 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208629', 'tblTempUsageDetail_20' ) end [2025-01-09 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:22:24] Production.INFO: ==11781== Releasing lock... [2025-01-09 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:22:24] Production.INFO: 37.5 MB #Memory Used# [2025-01-09 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:23:05 [end_date_ymd] => 2025-01-09 09:23:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:23:05' and `end` < '2025-01-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-01-09 09:23:23] Production.INFO: count ==1238 [2025-01-09 09:23:23] Production.ERROR: pbx CDR StartTime 2025-01-09 06:23:05 - End Time 2025-01-09 09:23:05 [2025-01-09 09:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208634', 'tblTempUsageDetail_20' ) start [2025-01-09 09:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208634', 'tblTempUsageDetail_20' ) end [2025-01-09 09:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208634', 'tblTempVendorCDR_20' ) start [2025-01-09 09:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208634', 'tblTempVendorCDR_20' ) end [2025-01-09 09:23:23] Production.INFO: ProcessCDR(1,14208634,1,1,2) [2025-01-09 09:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208634', 'tblTempUsageDetail_20' ) start [2025-01-09 09:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208634', 'tblTempUsageDetail_20' ) end [2025-01-09 09:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:23:28] Production.INFO: ==11854== Releasing lock... [2025-01-09 09:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:23:28] Production.INFO: 37.25 MB #Memory Used# [2025-01-09 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:24:05 [end_date_ymd] => 2025-01-09 09:24:05 [RateCDR] => 1 ) [2025-01-09 09:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:24:05' and `end` < '2025-01-09 09:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:24:19] Production.INFO: count ==1266 [2025-01-09 09:24:20] Production.ERROR: pbx CDR StartTime 2025-01-09 06:24:05 - End Time 2025-01-09 09:24:05 [2025-01-09 09:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208639', 'tblTempUsageDetail_20' ) start [2025-01-09 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208639', 'tblTempUsageDetail_20' ) end [2025-01-09 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208639', 'tblTempVendorCDR_20' ) start [2025-01-09 09:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208639', 'tblTempVendorCDR_20' ) end [2025-01-09 09:24:20] Production.INFO: ProcessCDR(1,14208639,1,1,2) [2025-01-09 09:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208639', 'tblTempUsageDetail_20' ) start [2025-01-09 09:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208639', 'tblTempUsageDetail_20' ) end [2025-01-09 09:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:24:25] Production.INFO: ==11924== Releasing lock... [2025-01-09 09:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:24:25] Production.INFO: 38 MB #Memory Used# [2025-01-09 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:25:04 [end_date_ymd] => 2025-01-09 09:25:04 [RateCDR] => 1 ) [2025-01-09 09:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:25:04' and `end` < '2025-01-09 09:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:25:18] Production.INFO: count ==1306 [2025-01-09 09:25:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:25:04 - End Time 2025-01-09 09:25:04 [2025-01-09 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208644', 'tblTempUsageDetail_20' ) start [2025-01-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208644', 'tblTempUsageDetail_20' ) end [2025-01-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208644', 'tblTempVendorCDR_20' ) start [2025-01-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208644', 'tblTempVendorCDR_20' ) end [2025-01-09 09:25:18] Production.INFO: ProcessCDR(1,14208644,1,1,2) [2025-01-09 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208644', 'tblTempUsageDetail_20' ) start [2025-01-09 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208644', 'tblTempUsageDetail_20' ) end [2025-01-09 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:25:23] Production.INFO: ==12034== Releasing lock... [2025-01-09 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:25:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-09 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:26:05 [end_date_ymd] => 2025-01-09 09:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:26:05' and `end` < '2025-01-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-01-09 09:26:25] Production.INFO: count ==1316 [2025-01-09 09:26:25] Production.ERROR: pbx CDR StartTime 2025-01-09 06:26:05 - End Time 2025-01-09 09:26:05 [2025-01-09 09:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208649', 'tblTempUsageDetail_20' ) start [2025-01-09 09:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208649', 'tblTempUsageDetail_20' ) end [2025-01-09 09:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208649', 'tblTempVendorCDR_20' ) start [2025-01-09 09:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208649', 'tblTempVendorCDR_20' ) end [2025-01-09 09:26:25] Production.INFO: ProcessCDR(1,14208649,1,1,2) [2025-01-09 09:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208649', 'tblTempUsageDetail_20' ) start [2025-01-09 09:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208649', 'tblTempUsageDetail_20' ) end [2025-01-09 09:26:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:26:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:26:30] Production.INFO: ==12108== Releasing lock... [2025-01-09 09:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:26:30] Production.INFO: 38 MB #Memory Used# [2025-01-09 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:27:04 [end_date_ymd] => 2025-01-09 09:27:04 [RateCDR] => 1 ) [2025-01-09 09:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:27:04' and `end` < '2025-01-09 09:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:27:31] Production.INFO: count ==1335 [2025-01-09 09:27:32] Production.ERROR: pbx CDR StartTime 2025-01-09 06:27:04 - End Time 2025-01-09 09:27:04 [2025-01-09 09:27:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208654', 'tblTempUsageDetail_20' ) start [2025-01-09 09:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208654', 'tblTempUsageDetail_20' ) end [2025-01-09 09:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208654', 'tblTempVendorCDR_20' ) start [2025-01-09 09:27:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208654', 'tblTempVendorCDR_20' ) end [2025-01-09 09:27:32] Production.INFO: ProcessCDR(1,14208654,1,1,2) [2025-01-09 09:27:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:27:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:27:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:27:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:27:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208654', 'tblTempUsageDetail_20' ) start [2025-01-09 09:27:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208654', 'tblTempUsageDetail_20' ) end [2025-01-09 09:27:36] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:27:36] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:27:36] Production.INFO: ==12182== Releasing lock... [2025-01-09 09:27:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:27:36] Production.INFO: 38 MB #Memory Used# [2025-01-09 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:28:05 [end_date_ymd] => 2025-01-09 09:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:28:05' and `end` < '2025-01-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-01-09 09:28:26] Production.INFO: count ==1360 [2025-01-09 09:28:26] Production.ERROR: pbx CDR StartTime 2025-01-09 06:28:05 - End Time 2025-01-09 09:28:05 [2025-01-09 09:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208659', 'tblTempUsageDetail_20' ) start [2025-01-09 09:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208659', 'tblTempUsageDetail_20' ) end [2025-01-09 09:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208659', 'tblTempVendorCDR_20' ) start [2025-01-09 09:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208659', 'tblTempVendorCDR_20' ) end [2025-01-09 09:28:26] Production.INFO: ProcessCDR(1,14208659,1,1,2) [2025-01-09 09:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:28:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208659', 'tblTempUsageDetail_20' ) start [2025-01-09 09:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208659', 'tblTempUsageDetail_20' ) end [2025-01-09 09:28:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:28:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:28:32] Production.INFO: ==12261== Releasing lock... [2025-01-09 09:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:28:32] Production.INFO: 38.25 MB #Memory Used# [2025-01-09 09:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:29:04 [end_date_ymd] => 2025-01-09 09:29:04 [RateCDR] => 1 ) [2025-01-09 09:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:29:04' and `end` < '2025-01-09 09:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:29:19] Production.INFO: count ==1413 [2025-01-09 09:29:20] Production.ERROR: pbx CDR StartTime 2025-01-09 06:29:04 - End Time 2025-01-09 09:29:04 [2025-01-09 09:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208664', 'tblTempUsageDetail_20' ) start [2025-01-09 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208664', 'tblTempUsageDetail_20' ) end [2025-01-09 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208664', 'tblTempVendorCDR_20' ) start [2025-01-09 09:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208664', 'tblTempVendorCDR_20' ) end [2025-01-09 09:29:20] Production.INFO: ProcessCDR(1,14208664,1,1,2) [2025-01-09 09:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208664', 'tblTempUsageDetail_20' ) start [2025-01-09 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208664', 'tblTempUsageDetail_20' ) end [2025-01-09 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:29:24] Production.INFO: ==12332== Releasing lock... [2025-01-09 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:29:24] Production.INFO: 39.25 MB #Memory Used# [2025-01-09 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:30:05 [end_date_ymd] => 2025-01-09 09:30:05 [RateCDR] => 1 ) [2025-01-09 09:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:30:05' and `end` < '2025-01-09 09:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:30:21] Production.INFO: count ==1432 [2025-01-09 09:30:21] Production.ERROR: pbx CDR StartTime 2025-01-09 06:30:05 - End Time 2025-01-09 09:30:05 [2025-01-09 09:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208670', 'tblTempUsageDetail_20' ) start [2025-01-09 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208670', 'tblTempUsageDetail_20' ) end [2025-01-09 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208670', 'tblTempVendorCDR_20' ) start [2025-01-09 09:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208670', 'tblTempVendorCDR_20' ) end [2025-01-09 09:30:21] Production.INFO: ProcessCDR(1,14208670,1,1,2) [2025-01-09 09:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208670', 'tblTempUsageDetail_20' ) start [2025-01-09 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208670', 'tblTempUsageDetail_20' ) end [2025-01-09 09:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:30:26] Production.INFO: ==12410== Releasing lock... [2025-01-09 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:30:26] Production.INFO: 38.75 MB #Memory Used# [2025-01-09 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:31:05 [end_date_ymd] => 2025-01-09 09:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:31:05' and `end` < '2025-01-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-01-09 09:31:19] Production.INFO: count ==1491 [2025-01-09 09:31:19] Production.ERROR: pbx CDR StartTime 2025-01-09 06:31:05 - End Time 2025-01-09 09:31:05 [2025-01-09 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208675', 'tblTempUsageDetail_20' ) start [2025-01-09 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208675', 'tblTempUsageDetail_20' ) end [2025-01-09 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208675', 'tblTempVendorCDR_20' ) start [2025-01-09 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208675', 'tblTempVendorCDR_20' ) end [2025-01-09 09:31:19] Production.INFO: ProcessCDR(1,14208675,1,1,2) [2025-01-09 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208675', 'tblTempUsageDetail_20' ) start [2025-01-09 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208675', 'tblTempUsageDetail_20' ) end [2025-01-09 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:31:24] Production.INFO: ==12487== Releasing lock... [2025-01-09 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:31:24] Production.INFO: 39.25 MB #Memory Used# [2025-01-09 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:32:05 [end_date_ymd] => 2025-01-09 09:32:05 [RateCDR] => 1 ) [2025-01-09 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:32:05' and `end` < '2025-01-09 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:32:19] Production.INFO: count ==1503 [2025-01-09 09:32:20] Production.ERROR: pbx CDR StartTime 2025-01-09 06:32:05 - End Time 2025-01-09 09:32:05 [2025-01-09 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208680', 'tblTempUsageDetail_20' ) start [2025-01-09 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208680', 'tblTempUsageDetail_20' ) end [2025-01-09 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208680', 'tblTempVendorCDR_20' ) start [2025-01-09 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208680', 'tblTempVendorCDR_20' ) end [2025-01-09 09:32:20] Production.INFO: ProcessCDR(1,14208680,1,1,2) [2025-01-09 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208680', 'tblTempUsageDetail_20' ) start [2025-01-09 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208680', 'tblTempUsageDetail_20' ) end [2025-01-09 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:32:24] Production.INFO: ==12565== Releasing lock... [2025-01-09 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:32:24] Production.INFO: 39.25 MB #Memory Used# [2025-01-09 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:33:05 [end_date_ymd] => 2025-01-09 09:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:33:05' and `end` < '2025-01-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-01-09 09:33:20] Production.INFO: count ==1535 [2025-01-09 09:33:20] Production.ERROR: pbx CDR StartTime 2025-01-09 06:33:05 - End Time 2025-01-09 09:33:05 [2025-01-09 09:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208685', 'tblTempUsageDetail_20' ) start [2025-01-09 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208685', 'tblTempUsageDetail_20' ) end [2025-01-09 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208685', 'tblTempVendorCDR_20' ) start [2025-01-09 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208685', 'tblTempVendorCDR_20' ) end [2025-01-09 09:33:20] Production.INFO: ProcessCDR(1,14208685,1,1,2) [2025-01-09 09:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208685', 'tblTempUsageDetail_20' ) start [2025-01-09 09:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208685', 'tblTempUsageDetail_20' ) end [2025-01-09 09:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:33:25] Production.INFO: ==12645== Releasing lock... [2025-01-09 09:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:33:25] Production.INFO: 39.5 MB #Memory Used# [2025-01-09 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:34:05 [end_date_ymd] => 2025-01-09 09:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:34:05' and `end` < '2025-01-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-01-09 09:34:18] Production.INFO: count ==1550 [2025-01-09 09:34:19] Production.ERROR: pbx CDR StartTime 2025-01-09 06:34:05 - End Time 2025-01-09 09:34:05 [2025-01-09 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208690', 'tblTempUsageDetail_20' ) start [2025-01-09 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208690', 'tblTempUsageDetail_20' ) end [2025-01-09 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208690', 'tblTempVendorCDR_20' ) start [2025-01-09 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208690', 'tblTempVendorCDR_20' ) end [2025-01-09 09:34:19] Production.INFO: ProcessCDR(1,14208690,1,1,2) [2025-01-09 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208690', 'tblTempUsageDetail_20' ) start [2025-01-09 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208690', 'tblTempUsageDetail_20' ) end [2025-01-09 09:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:34:23] Production.INFO: ==12726== Releasing lock... [2025-01-09 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:34:23] Production.INFO: 40 MB #Memory Used# [2025-01-09 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:35:05 [end_date_ymd] => 2025-01-09 09:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:35:05' and `end` < '2025-01-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-01-09 09:35:20] Production.INFO: count ==1564 [2025-01-09 09:35:21] Production.ERROR: pbx CDR StartTime 2025-01-09 06:35:05 - End Time 2025-01-09 09:35:05 [2025-01-09 09:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208695', 'tblTempUsageDetail_20' ) start [2025-01-09 09:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208695', 'tblTempUsageDetail_20' ) end [2025-01-09 09:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208695', 'tblTempVendorCDR_20' ) start [2025-01-09 09:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208695', 'tblTempVendorCDR_20' ) end [2025-01-09 09:35:21] Production.INFO: ProcessCDR(1,14208695,1,1,2) [2025-01-09 09:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208695', 'tblTempUsageDetail_20' ) start [2025-01-09 09:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208695', 'tblTempUsageDetail_20' ) end [2025-01-09 09:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:35:26] Production.INFO: ==12804== Releasing lock... [2025-01-09 09:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:35:26] Production.INFO: 40 MB #Memory Used# [2025-01-09 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:36:05 [end_date_ymd] => 2025-01-09 09:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:36:05' and `end` < '2025-01-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-01-09 09:36:24] Production.INFO: count ==1582 [2025-01-09 09:36:24] Production.ERROR: pbx CDR StartTime 2025-01-09 06:36:05 - End Time 2025-01-09 09:36:05 [2025-01-09 09:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208700', 'tblTempUsageDetail_20' ) start [2025-01-09 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208700', 'tblTempUsageDetail_20' ) end [2025-01-09 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208700', 'tblTempVendorCDR_20' ) start [2025-01-09 09:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208700', 'tblTempVendorCDR_20' ) end [2025-01-09 09:36:24] Production.INFO: ProcessCDR(1,14208700,1,1,2) [2025-01-09 09:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208700', 'tblTempUsageDetail_20' ) start [2025-01-09 09:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208700', 'tblTempUsageDetail_20' ) end [2025-01-09 09:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:36:29] Production.INFO: ==12889== Releasing lock... [2025-01-09 09:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:36:29] Production.INFO: 40.25 MB #Memory Used# [2025-01-09 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:37:05 [end_date_ymd] => 2025-01-09 09:37:05 [RateCDR] => 1 ) [2025-01-09 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:37:05' and `end` < '2025-01-09 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:37:21] Production.INFO: count ==1609 [2025-01-09 09:37:22] Production.ERROR: pbx CDR StartTime 2025-01-09 06:37:05 - End Time 2025-01-09 09:37:05 [2025-01-09 09:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208705', 'tblTempUsageDetail_20' ) start [2025-01-09 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208705', 'tblTempUsageDetail_20' ) end [2025-01-09 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208705', 'tblTempVendorCDR_20' ) start [2025-01-09 09:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208705', 'tblTempVendorCDR_20' ) end [2025-01-09 09:37:22] Production.INFO: ProcessCDR(1,14208705,1,1,2) [2025-01-09 09:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208705', 'tblTempUsageDetail_20' ) start [2025-01-09 09:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208705', 'tblTempUsageDetail_20' ) end [2025-01-09 09:37:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:37:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:37:27] Production.INFO: ==12967== Releasing lock... [2025-01-09 09:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:37:27] Production.INFO: 40 MB #Memory Used# [2025-01-09 09:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:38:04 [end_date_ymd] => 2025-01-09 09:38:04 [RateCDR] => 1 ) [2025-01-09 09:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:38:04' and `end` < '2025-01-09 09:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:38:18] Production.INFO: count ==1617 [2025-01-09 09:38:19] Production.ERROR: pbx CDR StartTime 2025-01-09 06:38:04 - End Time 2025-01-09 09:38:04 [2025-01-09 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208710', 'tblTempUsageDetail_20' ) start [2025-01-09 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208710', 'tblTempUsageDetail_20' ) end [2025-01-09 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208710', 'tblTempVendorCDR_20' ) start [2025-01-09 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208710', 'tblTempVendorCDR_20' ) end [2025-01-09 09:38:19] Production.INFO: ProcessCDR(1,14208710,1,1,2) [2025-01-09 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208710', 'tblTempUsageDetail_20' ) start [2025-01-09 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208710', 'tblTempUsageDetail_20' ) end [2025-01-09 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:38:23] Production.INFO: ==13048== Releasing lock... [2025-01-09 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:38:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-09 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:39:05 [end_date_ymd] => 2025-01-09 09:39:05 [RateCDR] => 1 ) [2025-01-09 09:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:39:05' and `end` < '2025-01-09 09:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:39:22] Production.INFO: count ==1625 [2025-01-09 09:39:23] Production.ERROR: pbx CDR StartTime 2025-01-09 06:39:05 - End Time 2025-01-09 09:39:05 [2025-01-09 09:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208715', 'tblTempUsageDetail_20' ) start [2025-01-09 09:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208715', 'tblTempUsageDetail_20' ) end [2025-01-09 09:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208715', 'tblTempVendorCDR_20' ) start [2025-01-09 09:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208715', 'tblTempVendorCDR_20' ) end [2025-01-09 09:39:23] Production.INFO: ProcessCDR(1,14208715,1,1,2) [2025-01-09 09:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208715', 'tblTempUsageDetail_20' ) start [2025-01-09 09:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208715', 'tblTempUsageDetail_20' ) end [2025-01-09 09:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:39:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:39:28] Production.INFO: ==13130== Releasing lock... [2025-01-09 09:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:39:28] Production.INFO: 40.25 MB #Memory Used# [2025-01-09 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:40:06 [end_date_ymd] => 2025-01-09 09:40:06 [RateCDR] => 1 ) [2025-01-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-01-09 06:40:06' and `end` < '2025-01-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-01-09 09:40:29] Production.INFO: count ==1636 [2025-01-09 09:40:29] Production.ERROR: pbx CDR StartTime 2025-01-09 06:40:06 - End Time 2025-01-09 09:40:06 [2025-01-09 09:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208721', 'tblTempUsageDetail_20' ) start [2025-01-09 09:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208721', 'tblTempUsageDetail_20' ) end [2025-01-09 09:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208721', 'tblTempVendorCDR_20' ) start [2025-01-09 09:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208721', 'tblTempVendorCDR_20' ) end [2025-01-09 09:40:29] Production.INFO: ProcessCDR(1,14208721,1,1,2) [2025-01-09 09:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208721', 'tblTempUsageDetail_20' ) start [2025-01-09 09:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208721', 'tblTempUsageDetail_20' ) end [2025-01-09 09:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:40:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:40:34] Production.INFO: ==13214== Releasing lock... [2025-01-09 09:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:40:34] Production.INFO: 40.25 MB #Memory Used# [2025-01-09 09:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:41:04 [end_date_ymd] => 2025-01-09 09:41:04 [RateCDR] => 1 ) [2025-01-09 09:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:41:04' and `end` < '2025-01-09 09:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:41:18] Production.INFO: count ==1686 [2025-01-09 09:41:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:41:04 - End Time 2025-01-09 09:41:04 [2025-01-09 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208726', 'tblTempUsageDetail_20' ) start [2025-01-09 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208726', 'tblTempUsageDetail_20' ) end [2025-01-09 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208726', 'tblTempVendorCDR_20' ) start [2025-01-09 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208726', 'tblTempVendorCDR_20' ) end [2025-01-09 09:41:18] Production.INFO: ProcessCDR(1,14208726,1,1,2) [2025-01-09 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208726', 'tblTempUsageDetail_20' ) start [2025-01-09 09:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208726', 'tblTempUsageDetail_20' ) end [2025-01-09 09:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:41:22] Production.INFO: ==13338== Releasing lock... [2025-01-09 09:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:41:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-09 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:42:06 [end_date_ymd] => 2025-01-09 09:42:06 [RateCDR] => 1 ) [2025-01-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-01-09 06:42:06' and `end` < '2025-01-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-01-09 09:42:19] Production.INFO: count ==1709 [2025-01-09 09:42:20] Production.ERROR: pbx CDR StartTime 2025-01-09 06:42:06 - End Time 2025-01-09 09:42:06 [2025-01-09 09:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208731', 'tblTempUsageDetail_20' ) start [2025-01-09 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208731', 'tblTempUsageDetail_20' ) end [2025-01-09 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208731', 'tblTempVendorCDR_20' ) start [2025-01-09 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208731', 'tblTempVendorCDR_20' ) end [2025-01-09 09:42:20] Production.INFO: ProcessCDR(1,14208731,1,1,2) [2025-01-09 09:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208731', 'tblTempUsageDetail_20' ) start [2025-01-09 09:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208731', 'tblTempUsageDetail_20' ) end [2025-01-09 09:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:42:23] Production.INFO: ==13420== Releasing lock... [2025-01-09 09:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:42:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-09 09:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:43:04 [end_date_ymd] => 2025-01-09 09:43:04 [RateCDR] => 1 ) [2025-01-09 09:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:43:04' and `end` < '2025-01-09 09:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:43:23] Production.INFO: count ==1732 [2025-01-09 09:43:23] Production.ERROR: pbx CDR StartTime 2025-01-09 06:43:04 - End Time 2025-01-09 09:43:04 [2025-01-09 09:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208736', 'tblTempUsageDetail_20' ) start [2025-01-09 09:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208736', 'tblTempUsageDetail_20' ) end [2025-01-09 09:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208736', 'tblTempVendorCDR_20' ) start [2025-01-09 09:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208736', 'tblTempVendorCDR_20' ) end [2025-01-09 09:43:23] Production.INFO: ProcessCDR(1,14208736,1,1,2) [2025-01-09 09:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208736', 'tblTempUsageDetail_20' ) start [2025-01-09 09:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208736', 'tblTempUsageDetail_20' ) end [2025-01-09 09:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:43:28] Production.INFO: ==13500== Releasing lock... [2025-01-09 09:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:43:28] Production.INFO: 41.5 MB #Memory Used# [2025-01-09 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:44:05 [end_date_ymd] => 2025-01-09 09:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:44:05' and `end` < '2025-01-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-01-09 09:44:19] Production.INFO: count ==1767 [2025-01-09 09:44:19] Production.ERROR: pbx CDR StartTime 2025-01-09 06:44:05 - End Time 2025-01-09 09:44:05 [2025-01-09 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208741', 'tblTempUsageDetail_20' ) start [2025-01-09 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208741', 'tblTempUsageDetail_20' ) end [2025-01-09 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208741', 'tblTempVendorCDR_20' ) start [2025-01-09 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208741', 'tblTempVendorCDR_20' ) end [2025-01-09 09:44:19] Production.INFO: ProcessCDR(1,14208741,1,1,2) [2025-01-09 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208741', 'tblTempUsageDetail_20' ) start [2025-01-09 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208741', 'tblTempUsageDetail_20' ) end [2025-01-09 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:44:24] Production.INFO: ==13577== Releasing lock... [2025-01-09 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:44:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-09 09:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:45:04 [end_date_ymd] => 2025-01-09 09:45:04 [RateCDR] => 1 ) [2025-01-09 09:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:45:04' and `end` < '2025-01-09 09:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:45:23] Production.INFO: count ==1784 [2025-01-09 09:45:24] Production.ERROR: pbx CDR StartTime 2025-01-09 06:45:04 - End Time 2025-01-09 09:45:04 [2025-01-09 09:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208746', 'tblTempUsageDetail_20' ) start [2025-01-09 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208746', 'tblTempUsageDetail_20' ) end [2025-01-09 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208746', 'tblTempVendorCDR_20' ) start [2025-01-09 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208746', 'tblTempVendorCDR_20' ) end [2025-01-09 09:45:24] Production.INFO: ProcessCDR(1,14208746,1,1,2) [2025-01-09 09:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208746', 'tblTempUsageDetail_20' ) start [2025-01-09 09:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208746', 'tblTempUsageDetail_20' ) end [2025-01-09 09:45:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:45:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:45:27] Production.INFO: ==13656== Releasing lock... [2025-01-09 09:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:45:27] Production.INFO: 41.5 MB #Memory Used# [2025-01-09 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:46:05 [end_date_ymd] => 2025-01-09 09:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:46:05' and `end` < '2025-01-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-01-09 09:46:19] Production.INFO: count ==1789 [2025-01-09 09:46:19] Production.ERROR: pbx CDR StartTime 2025-01-09 06:46:05 - End Time 2025-01-09 09:46:05 [2025-01-09 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208751', 'tblTempUsageDetail_20' ) start [2025-01-09 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208751', 'tblTempUsageDetail_20' ) end [2025-01-09 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208751', 'tblTempVendorCDR_20' ) start [2025-01-09 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208751', 'tblTempVendorCDR_20' ) end [2025-01-09 09:46:19] Production.INFO: ProcessCDR(1,14208751,1,1,2) [2025-01-09 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208751', 'tblTempUsageDetail_20' ) start [2025-01-09 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208751', 'tblTempUsageDetail_20' ) end [2025-01-09 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:46:24] Production.INFO: ==13734== Releasing lock... [2025-01-09 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:46:24] Production.INFO: 41.75 MB #Memory Used# [2025-01-09 09:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:47:04 [end_date_ymd] => 2025-01-09 09:47:04 [RateCDR] => 1 ) [2025-01-09 09:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:47:04' and `end` < '2025-01-09 09:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:47:18] Production.INFO: count ==1811 [2025-01-09 09:47:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:47:04 - End Time 2025-01-09 09:47:04 [2025-01-09 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208756', 'tblTempUsageDetail_20' ) start [2025-01-09 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208756', 'tblTempUsageDetail_20' ) end [2025-01-09 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208756', 'tblTempVendorCDR_20' ) start [2025-01-09 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208756', 'tblTempVendorCDR_20' ) end [2025-01-09 09:47:18] Production.INFO: ProcessCDR(1,14208756,1,1,2) [2025-01-09 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208756', 'tblTempUsageDetail_20' ) start [2025-01-09 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208756', 'tblTempUsageDetail_20' ) end [2025-01-09 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:47:23] Production.INFO: ==13817== Releasing lock... [2025-01-09 09:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:47:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-09 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:48:05 [end_date_ymd] => 2025-01-09 09:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:48:05' and `end` < '2025-01-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-01-09 09:48:18] Production.INFO: count ==1817 [2025-01-09 09:48:19] Production.ERROR: pbx CDR StartTime 2025-01-09 06:48:05 - End Time 2025-01-09 09:48:05 [2025-01-09 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208761', 'tblTempUsageDetail_20' ) start [2025-01-09 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208761', 'tblTempUsageDetail_20' ) end [2025-01-09 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208761', 'tblTempVendorCDR_20' ) start [2025-01-09 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208761', 'tblTempVendorCDR_20' ) end [2025-01-09 09:48:19] Production.INFO: ProcessCDR(1,14208761,1,1,2) [2025-01-09 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208761', 'tblTempUsageDetail_20' ) start [2025-01-09 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208761', 'tblTempUsageDetail_20' ) end [2025-01-09 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:48:24] Production.INFO: ==13901== Releasing lock... [2025-01-09 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:48:24] Production.INFO: 41.75 MB #Memory Used# [2025-01-09 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:49:05 [end_date_ymd] => 2025-01-09 09:49:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:49:05' and `end` < '2025-01-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-01-09 09:49:18] Production.INFO: count ==1824 [2025-01-09 09:49:18] Production.ERROR: pbx CDR StartTime 2025-01-09 06:49:05 - End Time 2025-01-09 09:49:05 [2025-01-09 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208766', 'tblTempUsageDetail_20' ) start [2025-01-09 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208766', 'tblTempUsageDetail_20' ) end [2025-01-09 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208766', 'tblTempVendorCDR_20' ) start [2025-01-09 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208766', 'tblTempVendorCDR_20' ) end [2025-01-09 09:49:18] Production.INFO: ProcessCDR(1,14208766,1,1,2) [2025-01-09 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208766', 'tblTempUsageDetail_20' ) start [2025-01-09 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208766', 'tblTempUsageDetail_20' ) end [2025-01-09 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:49:23] Production.INFO: ==13981== Releasing lock... [2025-01-09 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:49:23] Production.INFO: 42 MB #Memory Used# [2025-01-09 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:50:06 [end_date_ymd] => 2025-01-09 09:50:06 [RateCDR] => 1 ) [2025-01-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-01-09 06:50:06' and `end` < '2025-01-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-01-09 09:50:25] Production.INFO: count ==1835 [2025-01-09 09:50:26] Production.ERROR: pbx CDR StartTime 2025-01-09 06:50:06 - End Time 2025-01-09 09:50:06 [2025-01-09 09:50:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208772', 'tblTempUsageDetail_20' ) start [2025-01-09 09:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208772', 'tblTempUsageDetail_20' ) end [2025-01-09 09:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208772', 'tblTempVendorCDR_20' ) start [2025-01-09 09:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208772', 'tblTempVendorCDR_20' ) end [2025-01-09 09:50:26] Production.INFO: ProcessCDR(1,14208772,1,1,2) [2025-01-09 09:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208772', 'tblTempUsageDetail_20' ) start [2025-01-09 09:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208772', 'tblTempUsageDetail_20' ) end [2025-01-09 09:50:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:50:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:50:31] Production.INFO: ==14061== Releasing lock... [2025-01-09 09:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:50:31] Production.INFO: 41.75 MB #Memory Used# [2025-01-09 09:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:51:04 [end_date_ymd] => 2025-01-09 09:51:04 [RateCDR] => 1 ) [2025-01-09 09:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:51:04' and `end` < '2025-01-09 09:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:51:24] Production.INFO: count ==1891 [2025-01-09 09:51:25] Production.ERROR: pbx CDR StartTime 2025-01-09 06:51:04 - End Time 2025-01-09 09:51:04 [2025-01-09 09:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208777', 'tblTempUsageDetail_20' ) start [2025-01-09 09:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208777', 'tblTempUsageDetail_20' ) end [2025-01-09 09:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208777', 'tblTempVendorCDR_20' ) start [2025-01-09 09:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208777', 'tblTempVendorCDR_20' ) end [2025-01-09 09:51:25] Production.INFO: ProcessCDR(1,14208777,1,1,2) [2025-01-09 09:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208777', 'tblTempUsageDetail_20' ) start [2025-01-09 09:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208777', 'tblTempUsageDetail_20' ) end [2025-01-09 09:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:51:30] Production.INFO: ==14145== Releasing lock... [2025-01-09 09:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:51:30] Production.INFO: 42.25 MB #Memory Used# [2025-01-09 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:52:05 [end_date_ymd] => 2025-01-09 09:52:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:52:05' and `end` < '2025-01-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-01-09 09:52:22] Production.INFO: count ==1908 [2025-01-09 09:52:23] Production.ERROR: pbx CDR StartTime 2025-01-09 06:52:05 - End Time 2025-01-09 09:52:05 [2025-01-09 09:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208782', 'tblTempUsageDetail_20' ) start [2025-01-09 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208782', 'tblTempUsageDetail_20' ) end [2025-01-09 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208782', 'tblTempVendorCDR_20' ) start [2025-01-09 09:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208782', 'tblTempVendorCDR_20' ) end [2025-01-09 09:52:23] Production.INFO: ProcessCDR(1,14208782,1,1,2) [2025-01-09 09:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208782', 'tblTempUsageDetail_20' ) start [2025-01-09 09:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208782', 'tblTempUsageDetail_20' ) end [2025-01-09 09:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:52:26] Production.INFO: ==14226== Releasing lock... [2025-01-09 09:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:52:26] Production.INFO: 42.25 MB #Memory Used# [2025-01-09 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:53:05 [end_date_ymd] => 2025-01-09 09:53:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:53:05' and `end` < '2025-01-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-01-09 09:53:19] Production.INFO: count ==1911 [2025-01-09 09:53:20] Production.ERROR: pbx CDR StartTime 2025-01-09 06:53:05 - End Time 2025-01-09 09:53:05 [2025-01-09 09:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208787', 'tblTempUsageDetail_20' ) start [2025-01-09 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208787', 'tblTempUsageDetail_20' ) end [2025-01-09 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208787', 'tblTempVendorCDR_20' ) start [2025-01-09 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208787', 'tblTempVendorCDR_20' ) end [2025-01-09 09:53:20] Production.INFO: ProcessCDR(1,14208787,1,1,2) [2025-01-09 09:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208787', 'tblTempUsageDetail_20' ) start [2025-01-09 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208787', 'tblTempUsageDetail_20' ) end [2025-01-09 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:53:24] Production.INFO: ==14302== Releasing lock... [2025-01-09 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:53:24] Production.INFO: 42.5 MB #Memory Used# [2025-01-09 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:54:05 [end_date_ymd] => 2025-01-09 09:54:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:54:05' and `end` < '2025-01-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-01-09 09:54:19] Production.INFO: count ==1923 [2025-01-09 09:54:19] Production.ERROR: pbx CDR StartTime 2025-01-09 06:54:05 - End Time 2025-01-09 09:54:05 [2025-01-09 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208792', 'tblTempUsageDetail_20' ) start [2025-01-09 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208792', 'tblTempUsageDetail_20' ) end [2025-01-09 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208792', 'tblTempVendorCDR_20' ) start [2025-01-09 09:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208792', 'tblTempVendorCDR_20' ) end [2025-01-09 09:54:20] Production.INFO: ProcessCDR(1,14208792,1,1,2) [2025-01-09 09:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208792', 'tblTempUsageDetail_20' ) start [2025-01-09 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208792', 'tblTempUsageDetail_20' ) end [2025-01-09 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:54:24] Production.INFO: ==14384== Releasing lock... [2025-01-09 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:54:24] Production.INFO: 42.5 MB #Memory Used# [2025-01-09 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:55:06 [end_date_ymd] => 2025-01-09 09:55:06 [RateCDR] => 1 ) [2025-01-09 09:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 06:55:06' and `end` < '2025-01-09 09:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 09:55:19] Production.INFO: count ==1933 [2025-01-09 09:55:20] Production.ERROR: pbx CDR StartTime 2025-01-09 06:55:06 - End Time 2025-01-09 09:55:06 [2025-01-09 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208797', 'tblTempUsageDetail_20' ) start [2025-01-09 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208797', 'tblTempUsageDetail_20' ) end [2025-01-09 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208797', 'tblTempVendorCDR_20' ) start [2025-01-09 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208797', 'tblTempVendorCDR_20' ) end [2025-01-09 09:55:20] Production.INFO: ProcessCDR(1,14208797,1,1,2) [2025-01-09 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208797', 'tblTempUsageDetail_20' ) start [2025-01-09 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208797', 'tblTempUsageDetail_20' ) end [2025-01-09 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:55:25] Production.INFO: ==14460== Releasing lock... [2025-01-09 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:55:25] Production.INFO: 42.5 MB #Memory Used# [2025-01-09 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:56:05 [end_date_ymd] => 2025-01-09 09:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:56:05' and `end` < '2025-01-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-01-09 09:56:38] Production.INFO: count ==1955 [2025-01-09 09:56:39] Production.ERROR: pbx CDR StartTime 2025-01-09 06:56:05 - End Time 2025-01-09 09:56:05 [2025-01-09 09:56:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208802', 'tblTempUsageDetail_20' ) start [2025-01-09 09:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208802', 'tblTempUsageDetail_20' ) end [2025-01-09 09:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208802', 'tblTempVendorCDR_20' ) start [2025-01-09 09:56:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208802', 'tblTempVendorCDR_20' ) end [2025-01-09 09:56:39] Production.INFO: ProcessCDR(1,14208802,1,1,2) [2025-01-09 09:56:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:56:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:56:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:56:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:56:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208802', 'tblTempUsageDetail_20' ) start [2025-01-09 09:56:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208802', 'tblTempUsageDetail_20' ) end [2025-01-09 09:56:44] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:56:44] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:56:44] Production.INFO: ==14538== Releasing lock... [2025-01-09 09:56:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:56:44] Production.INFO: 42.75 MB #Memory Used# [2025-01-09 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:57:05 [end_date_ymd] => 2025-01-09 09:57:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:57:05' and `end` < '2025-01-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-01-09 09:57:21] Production.INFO: count ==1992 [2025-01-09 09:57:22] Production.ERROR: pbx CDR StartTime 2025-01-09 06:57:05 - End Time 2025-01-09 09:57:05 [2025-01-09 09:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208807', 'tblTempUsageDetail_20' ) start [2025-01-09 09:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208807', 'tblTempUsageDetail_20' ) end [2025-01-09 09:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208807', 'tblTempVendorCDR_20' ) start [2025-01-09 09:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208807', 'tblTempVendorCDR_20' ) end [2025-01-09 09:57:22] Production.INFO: ProcessCDR(1,14208807,1,1,2) [2025-01-09 09:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208807', 'tblTempUsageDetail_20' ) start [2025-01-09 09:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208807', 'tblTempUsageDetail_20' ) end [2025-01-09 09:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:57:27] Production.INFO: ==14649== Releasing lock... [2025-01-09 09:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:57:27] Production.INFO: 43.25 MB #Memory Used# [2025-01-09 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:58:05 [end_date_ymd] => 2025-01-09 09:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:58:05' and `end` < '2025-01-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-01-09 09:58:20] Production.INFO: count ==2002 [2025-01-09 09:58:20] Production.ERROR: pbx CDR StartTime 2025-01-09 06:58:05 - End Time 2025-01-09 09:58:05 [2025-01-09 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208812', 'tblTempUsageDetail_20' ) start [2025-01-09 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208812', 'tblTempUsageDetail_20' ) end [2025-01-09 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208812', 'tblTempVendorCDR_20' ) start [2025-01-09 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208812', 'tblTempVendorCDR_20' ) end [2025-01-09 09:58:20] Production.INFO: ProcessCDR(1,14208812,1,1,2) [2025-01-09 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208812', 'tblTempUsageDetail_20' ) start [2025-01-09 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208812', 'tblTempUsageDetail_20' ) end [2025-01-09 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:58:25] Production.INFO: ==14719== Releasing lock... [2025-01-09 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:58:25] Production.INFO: 43.25 MB #Memory Used# [2025-01-09 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 06:59:05 [end_date_ymd] => 2025-01-09 09:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 06:59:05' and `end` < '2025-01-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-01-09 09:59:22] Production.INFO: count ==2022 [2025-01-09 09:59:23] Production.ERROR: pbx CDR StartTime 2025-01-09 06:59:05 - End Time 2025-01-09 09:59:05 [2025-01-09 09:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 09:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208817', 'tblTempUsageDetail_20' ) start [2025-01-09 09:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208817', 'tblTempUsageDetail_20' ) end [2025-01-09 09:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208817', 'tblTempVendorCDR_20' ) start [2025-01-09 09:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208817', 'tblTempVendorCDR_20' ) end [2025-01-09 09:59:23] Production.INFO: ProcessCDR(1,14208817,1,1,2) [2025-01-09 09:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 09:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 09:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208817', 'tblTempUsageDetail_20' ) start [2025-01-09 09:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208817', 'tblTempUsageDetail_20' ) end [2025-01-09 09:59:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 09:59:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 09:59:27] Production.INFO: ==14789== Releasing lock... [2025-01-09 09:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 09:59:27] Production.INFO: 43.5 MB #Memory Used# [2025-01-09 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:00:06 [end_date_ymd] => 2025-01-09 10:00:06 [RateCDR] => 1 ) [2025-01-09 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:00:06' and `end` < '2025-01-09 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:00:19] Production.INFO: count ==2048 [2025-01-09 10:00:20] Production.ERROR: pbx CDR StartTime 2025-01-09 07:00:06 - End Time 2025-01-09 10:00:06 [2025-01-09 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208823', 'tblTempUsageDetail_20' ) start [2025-01-09 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208823', 'tblTempUsageDetail_20' ) end [2025-01-09 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208823', 'tblTempVendorCDR_20' ) start [2025-01-09 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208823', 'tblTempVendorCDR_20' ) end [2025-01-09 10:00:20] Production.INFO: ProcessCDR(1,14208823,1,1,2) [2025-01-09 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208823', 'tblTempUsageDetail_20' ) start [2025-01-09 10:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208823', 'tblTempUsageDetail_20' ) end [2025-01-09 10:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:00:24] Production.INFO: ==14868== Releasing lock... [2025-01-09 10:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:00:24] Production.INFO: 43.5 MB #Memory Used# [2025-01-09 10:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:01:04 [end_date_ymd] => 2025-01-09 10:01:04 [RateCDR] => 1 ) [2025-01-09 10:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:01:04' and `end` < '2025-01-09 10:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:01:22] Production.INFO: count ==2136 [2025-01-09 10:01:23] Production.ERROR: pbx CDR StartTime 2025-01-09 07:01:04 - End Time 2025-01-09 10:01:04 [2025-01-09 10:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208828', 'tblTempUsageDetail_20' ) start [2025-01-09 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208828', 'tblTempUsageDetail_20' ) end [2025-01-09 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208828', 'tblTempVendorCDR_20' ) start [2025-01-09 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208828', 'tblTempVendorCDR_20' ) end [2025-01-09 10:01:23] Production.INFO: ProcessCDR(1,14208828,1,1,2) [2025-01-09 10:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208828', 'tblTempUsageDetail_20' ) start [2025-01-09 10:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208828', 'tblTempUsageDetail_20' ) end [2025-01-09 10:01:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:01:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:01:28] Production.INFO: ==14953== Releasing lock... [2025-01-09 10:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:01:28] Production.INFO: 44 MB #Memory Used# [2025-01-09 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:02:05 [end_date_ymd] => 2025-01-09 10:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:02:05' and `end` < '2025-01-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-01-09 10:02:28] Production.INFO: count ==2161 [2025-01-09 10:02:29] Production.ERROR: pbx CDR StartTime 2025-01-09 07:02:05 - End Time 2025-01-09 10:02:05 [2025-01-09 10:02:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208833', 'tblTempUsageDetail_20' ) start [2025-01-09 10:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208833', 'tblTempUsageDetail_20' ) end [2025-01-09 10:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208833', 'tblTempVendorCDR_20' ) start [2025-01-09 10:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208833', 'tblTempVendorCDR_20' ) end [2025-01-09 10:02:29] Production.INFO: ProcessCDR(1,14208833,1,1,2) [2025-01-09 10:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208833', 'tblTempUsageDetail_20' ) start [2025-01-09 10:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208833', 'tblTempUsageDetail_20' ) end [2025-01-09 10:02:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:02:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:02:34] Production.INFO: ==15025== Releasing lock... [2025-01-09 10:02:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:02:34] Production.INFO: 44.25 MB #Memory Used# [2025-01-09 10:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:03:04 [end_date_ymd] => 2025-01-09 10:03:04 [RateCDR] => 1 ) [2025-01-09 10:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:03:04' and `end` < '2025-01-09 10:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:03:26] Production.INFO: count ==2177 [2025-01-09 10:03:26] Production.ERROR: pbx CDR StartTime 2025-01-09 07:03:04 - End Time 2025-01-09 10:03:04 [2025-01-09 10:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208838', 'tblTempUsageDetail_20' ) start [2025-01-09 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208838', 'tblTempUsageDetail_20' ) end [2025-01-09 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208838', 'tblTempVendorCDR_20' ) start [2025-01-09 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208838', 'tblTempVendorCDR_20' ) end [2025-01-09 10:03:26] Production.INFO: ProcessCDR(1,14208838,1,1,2) [2025-01-09 10:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208838', 'tblTempUsageDetail_20' ) start [2025-01-09 10:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208838', 'tblTempUsageDetail_20' ) end [2025-01-09 10:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:03:31] Production.INFO: ==15094== Releasing lock... [2025-01-09 10:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:03:31] Production.INFO: 44.5 MB #Memory Used# [2025-01-09 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:04:05 [end_date_ymd] => 2025-01-09 10:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:04:05' and `end` < '2025-01-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-01-09 10:04:24] Production.INFO: count ==2213 [2025-01-09 10:04:25] Production.ERROR: pbx CDR StartTime 2025-01-09 07:04:05 - End Time 2025-01-09 10:04:05 [2025-01-09 10:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208843', 'tblTempUsageDetail_20' ) start [2025-01-09 10:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208843', 'tblTempUsageDetail_20' ) end [2025-01-09 10:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208843', 'tblTempVendorCDR_20' ) start [2025-01-09 10:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208843', 'tblTempVendorCDR_20' ) end [2025-01-09 10:04:25] Production.INFO: ProcessCDR(1,14208843,1,1,2) [2025-01-09 10:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:04:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:04:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208843', 'tblTempUsageDetail_20' ) start [2025-01-09 10:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208843', 'tblTempUsageDetail_20' ) end [2025-01-09 10:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:04:30] Production.INFO: ==15165== Releasing lock... [2025-01-09 10:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:04:30] Production.INFO: 45 MB #Memory Used# [2025-01-09 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:05:05 [end_date_ymd] => 2025-01-09 10:05:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:05:05' and `end` < '2025-01-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-01-09 10:05:21] Production.INFO: count ==2241 [2025-01-09 10:05:22] Production.ERROR: pbx CDR StartTime 2025-01-09 07:05:05 - End Time 2025-01-09 10:05:05 [2025-01-09 10:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208848', 'tblTempUsageDetail_20' ) start [2025-01-09 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208848', 'tblTempUsageDetail_20' ) end [2025-01-09 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208848', 'tblTempVendorCDR_20' ) start [2025-01-09 10:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208848', 'tblTempVendorCDR_20' ) end [2025-01-09 10:05:22] Production.INFO: ProcessCDR(1,14208848,1,1,2) [2025-01-09 10:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208848', 'tblTempUsageDetail_20' ) start [2025-01-09 10:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208848', 'tblTempUsageDetail_20' ) end [2025-01-09 10:05:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:05:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:05:27] Production.INFO: ==15234== Releasing lock... [2025-01-09 10:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:05:27] Production.INFO: 45.25 MB #Memory Used# [2025-01-09 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:06:05 [end_date_ymd] => 2025-01-09 10:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:06:05' and `end` < '2025-01-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-01-09 10:06:25] Production.INFO: count ==2258 [2025-01-09 10:06:26] Production.ERROR: pbx CDR StartTime 2025-01-09 07:06:05 - End Time 2025-01-09 10:06:05 [2025-01-09 10:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208853', 'tblTempUsageDetail_20' ) start [2025-01-09 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208853', 'tblTempUsageDetail_20' ) end [2025-01-09 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208853', 'tblTempVendorCDR_20' ) start [2025-01-09 10:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208853', 'tblTempVendorCDR_20' ) end [2025-01-09 10:06:26] Production.INFO: ProcessCDR(1,14208853,1,1,2) [2025-01-09 10:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208853', 'tblTempUsageDetail_20' ) start [2025-01-09 10:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208853', 'tblTempUsageDetail_20' ) end [2025-01-09 10:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:06:31] Production.INFO: ==15306== Releasing lock... [2025-01-09 10:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:06:31] Production.INFO: 45 MB #Memory Used# [2025-01-09 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:07:05 [end_date_ymd] => 2025-01-09 10:07:05 [RateCDR] => 1 ) [2025-01-09 10:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:07:05' and `end` < '2025-01-09 10:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:07:27] Production.INFO: count ==2285 [2025-01-09 10:07:27] Production.ERROR: pbx CDR StartTime 2025-01-09 07:07:05 - End Time 2025-01-09 10:07:05 [2025-01-09 10:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208858', 'tblTempUsageDetail_20' ) start [2025-01-09 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208858', 'tblTempUsageDetail_20' ) end [2025-01-09 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208858', 'tblTempVendorCDR_20' ) start [2025-01-09 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208858', 'tblTempVendorCDR_20' ) end [2025-01-09 10:07:27] Production.INFO: ProcessCDR(1,14208858,1,1,2) [2025-01-09 10:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208858', 'tblTempUsageDetail_20' ) start [2025-01-09 10:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208858', 'tblTempUsageDetail_20' ) end [2025-01-09 10:07:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:07:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:07:32] Production.INFO: ==15379== Releasing lock... [2025-01-09 10:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:07:32] Production.INFO: 45.25 MB #Memory Used# [2025-01-09 10:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:08:04 [end_date_ymd] => 2025-01-09 10:08:04 [RateCDR] => 1 ) [2025-01-09 10:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:08:04' and `end` < '2025-01-09 10:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:08:25] Production.INFO: count ==2345 [2025-01-09 10:08:25] Production.ERROR: pbx CDR StartTime 2025-01-09 07:08:04 - End Time 2025-01-09 10:08:04 [2025-01-09 10:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208863', 'tblTempUsageDetail_20' ) start [2025-01-09 10:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208863', 'tblTempUsageDetail_20' ) end [2025-01-09 10:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208863', 'tblTempVendorCDR_20' ) start [2025-01-09 10:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208863', 'tblTempVendorCDR_20' ) end [2025-01-09 10:08:26] Production.INFO: ProcessCDR(1,14208863,1,1,2) [2025-01-09 10:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:08:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208863', 'tblTempUsageDetail_20' ) start [2025-01-09 10:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208863', 'tblTempUsageDetail_20' ) end [2025-01-09 10:08:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:08:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:08:29] Production.INFO: ==15451== Releasing lock... [2025-01-09 10:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:08:29] Production.INFO: 45.75 MB #Memory Used# [2025-01-09 10:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:09:04 [end_date_ymd] => 2025-01-09 10:09:04 [RateCDR] => 1 ) [2025-01-09 10:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:09:04' and `end` < '2025-01-09 10:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:09:22] Production.INFO: count ==2368 [2025-01-09 10:09:23] Production.ERROR: pbx CDR StartTime 2025-01-09 07:09:04 - End Time 2025-01-09 10:09:04 [2025-01-09 10:09:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208868', 'tblTempUsageDetail_20' ) start [2025-01-09 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208868', 'tblTempUsageDetail_20' ) end [2025-01-09 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208868', 'tblTempVendorCDR_20' ) start [2025-01-09 10:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208868', 'tblTempVendorCDR_20' ) end [2025-01-09 10:09:23] Production.INFO: ProcessCDR(1,14208868,1,1,2) [2025-01-09 10:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208868', 'tblTempUsageDetail_20' ) start [2025-01-09 10:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208868', 'tblTempUsageDetail_20' ) end [2025-01-09 10:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:09:28] Production.INFO: ==15520== Releasing lock... [2025-01-09 10:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:09:28] Production.INFO: 45.75 MB #Memory Used# [2025-01-09 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:10:05 [end_date_ymd] => 2025-01-09 10:10:05 [RateCDR] => 1 ) [2025-01-09 10:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:10:05' and `end` < '2025-01-09 10:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:10:32] Production.INFO: count ==2395 [2025-01-09 10:10:33] Production.ERROR: pbx CDR StartTime 2025-01-09 07:10:05 - End Time 2025-01-09 10:10:05 [2025-01-09 10:10:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208874', 'tblTempUsageDetail_20' ) start [2025-01-09 10:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208874', 'tblTempUsageDetail_20' ) end [2025-01-09 10:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208874', 'tblTempVendorCDR_20' ) start [2025-01-09 10:10:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208874', 'tblTempVendorCDR_20' ) end [2025-01-09 10:10:33] Production.INFO: ProcessCDR(1,14208874,1,1,2) [2025-01-09 10:10:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:10:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:10:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208874', 'tblTempUsageDetail_20' ) start [2025-01-09 10:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208874', 'tblTempUsageDetail_20' ) end [2025-01-09 10:10:38] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:10:38] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:10:39] Production.INFO: ==15597== Releasing lock... [2025-01-09 10:10:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:10:39] Production.INFO: 46 MB #Memory Used# [2025-01-09 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:11:05 [end_date_ymd] => 2025-01-09 10:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:11:05' and `end` < '2025-01-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-01-09 10:11:22] Production.INFO: count ==2463 [2025-01-09 10:11:23] Production.ERROR: pbx CDR StartTime 2025-01-09 07:11:05 - End Time 2025-01-09 10:11:05 [2025-01-09 10:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208879', 'tblTempUsageDetail_20' ) start [2025-01-09 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208879', 'tblTempUsageDetail_20' ) end [2025-01-09 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208879', 'tblTempVendorCDR_20' ) start [2025-01-09 10:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208879', 'tblTempVendorCDR_20' ) end [2025-01-09 10:11:23] Production.INFO: ProcessCDR(1,14208879,1,1,2) [2025-01-09 10:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208879', 'tblTempUsageDetail_20' ) start [2025-01-09 10:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208879', 'tblTempUsageDetail_20' ) end [2025-01-09 10:11:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:11:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:11:27] Production.INFO: ==15672== Releasing lock... [2025-01-09 10:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:11:27] Production.INFO: 46.5 MB #Memory Used# [2025-01-09 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:12:05 [end_date_ymd] => 2025-01-09 10:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:12:05' and `end` < '2025-01-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-01-09 10:12:24] Production.INFO: count ==2496 [2025-01-09 10:12:25] Production.ERROR: pbx CDR StartTime 2025-01-09 07:12:05 - End Time 2025-01-09 10:12:05 [2025-01-09 10:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208884', 'tblTempUsageDetail_20' ) start [2025-01-09 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208884', 'tblTempUsageDetail_20' ) end [2025-01-09 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208884', 'tblTempVendorCDR_20' ) start [2025-01-09 10:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208884', 'tblTempVendorCDR_20' ) end [2025-01-09 10:12:25] Production.INFO: ProcessCDR(1,14208884,1,1,2) [2025-01-09 10:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:12:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:12:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:12:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208884', 'tblTempUsageDetail_20' ) start [2025-01-09 10:12:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208884', 'tblTempUsageDetail_20' ) end [2025-01-09 10:12:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:12:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:12:29] Production.INFO: ==15782== Releasing lock... [2025-01-09 10:12:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:12:29] Production.INFO: 46.75 MB #Memory Used# [2025-01-09 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:13:05 [end_date_ymd] => 2025-01-09 10:13:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:13:05' and `end` < '2025-01-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-01-09 10:13:25] Production.INFO: count ==2528 [2025-01-09 10:13:26] Production.ERROR: pbx CDR StartTime 2025-01-09 07:13:05 - End Time 2025-01-09 10:13:05 [2025-01-09 10:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208889', 'tblTempUsageDetail_20' ) start [2025-01-09 10:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208889', 'tblTempUsageDetail_20' ) end [2025-01-09 10:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208889', 'tblTempVendorCDR_20' ) start [2025-01-09 10:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208889', 'tblTempVendorCDR_20' ) end [2025-01-09 10:13:26] Production.INFO: ProcessCDR(1,14208889,1,1,2) [2025-01-09 10:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208889', 'tblTempUsageDetail_20' ) start [2025-01-09 10:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208889', 'tblTempUsageDetail_20' ) end [2025-01-09 10:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:13:30] Production.INFO: ==15855== Releasing lock... [2025-01-09 10:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:13:30] Production.INFO: 47 MB #Memory Used# [2025-01-09 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:14:05 [end_date_ymd] => 2025-01-09 10:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:14:05' and `end` < '2025-01-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-01-09 10:14:24] Production.INFO: count ==2541 [2025-01-09 10:14:25] Production.ERROR: pbx CDR StartTime 2025-01-09 07:14:05 - End Time 2025-01-09 10:14:05 [2025-01-09 10:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208894', 'tblTempUsageDetail_20' ) start [2025-01-09 10:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208894', 'tblTempUsageDetail_20' ) end [2025-01-09 10:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208894', 'tblTempVendorCDR_20' ) start [2025-01-09 10:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208894', 'tblTempVendorCDR_20' ) end [2025-01-09 10:14:25] Production.INFO: ProcessCDR(1,14208894,1,1,2) [2025-01-09 10:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208894', 'tblTempUsageDetail_20' ) start [2025-01-09 10:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208894', 'tblTempUsageDetail_20' ) end [2025-01-09 10:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:14:30] Production.INFO: ==15924== Releasing lock... [2025-01-09 10:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:14:30] Production.INFO: 47.25 MB #Memory Used# [2025-01-09 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:15:05 [end_date_ymd] => 2025-01-09 10:15:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:15:05' and `end` < '2025-01-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-01-09 10:15:25] Production.INFO: count ==2564 [2025-01-09 10:15:26] Production.ERROR: pbx CDR StartTime 2025-01-09 07:15:05 - End Time 2025-01-09 10:15:05 [2025-01-09 10:15:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208899', 'tblTempUsageDetail_20' ) start [2025-01-09 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208899', 'tblTempUsageDetail_20' ) end [2025-01-09 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208899', 'tblTempVendorCDR_20' ) start [2025-01-09 10:15:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208899', 'tblTempVendorCDR_20' ) end [2025-01-09 10:15:26] Production.INFO: ProcessCDR(1,14208899,1,1,2) [2025-01-09 10:15:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:15:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:15:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:15:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:15:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208899', 'tblTempUsageDetail_20' ) start [2025-01-09 10:15:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208899', 'tblTempUsageDetail_20' ) end [2025-01-09 10:15:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:15:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:15:31] Production.INFO: ==15995== Releasing lock... [2025-01-09 10:15:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:15:31] Production.INFO: 47.25 MB #Memory Used# [2025-01-09 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:16:05 [end_date_ymd] => 2025-01-09 10:16:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:16:05' and `end` < '2025-01-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-01-09 10:16:21] Production.INFO: count ==2598 [2025-01-09 10:16:22] Production.ERROR: pbx CDR StartTime 2025-01-09 07:16:05 - End Time 2025-01-09 10:16:05 [2025-01-09 10:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208904', 'tblTempUsageDetail_20' ) start [2025-01-09 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208904', 'tblTempUsageDetail_20' ) end [2025-01-09 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208904', 'tblTempVendorCDR_20' ) start [2025-01-09 10:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208904', 'tblTempVendorCDR_20' ) end [2025-01-09 10:16:22] Production.INFO: ProcessCDR(1,14208904,1,1,2) [2025-01-09 10:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208904', 'tblTempUsageDetail_20' ) start [2025-01-09 10:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208904', 'tblTempUsageDetail_20' ) end [2025-01-09 10:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:16:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:16:27] Production.INFO: ==16065== Releasing lock... [2025-01-09 10:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:16:27] Production.INFO: 48 MB #Memory Used# [2025-01-09 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:17:05 [end_date_ymd] => 2025-01-09 10:17:05 [RateCDR] => 1 ) [2025-01-09 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:17:05' and `end` < '2025-01-09 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:17:20] Production.INFO: count ==2633 [2025-01-09 10:17:21] Production.ERROR: pbx CDR StartTime 2025-01-09 07:17:05 - End Time 2025-01-09 10:17:05 [2025-01-09 10:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208909', 'tblTempUsageDetail_20' ) start [2025-01-09 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208909', 'tblTempUsageDetail_20' ) end [2025-01-09 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208909', 'tblTempVendorCDR_20' ) start [2025-01-09 10:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208909', 'tblTempVendorCDR_20' ) end [2025-01-09 10:17:21] Production.INFO: ProcessCDR(1,14208909,1,1,2) [2025-01-09 10:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208909', 'tblTempUsageDetail_20' ) start [2025-01-09 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208909', 'tblTempUsageDetail_20' ) end [2025-01-09 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:17:25] Production.INFO: ==16136== Releasing lock... [2025-01-09 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:17:25] Production.INFO: 48.25 MB #Memory Used# [2025-01-09 10:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:18:04 [end_date_ymd] => 2025-01-09 10:18:04 [RateCDR] => 1 ) [2025-01-09 10:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:18:04' and `end` < '2025-01-09 10:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:18:17] Production.INFO: count ==2637 [2025-01-09 10:18:19] Production.ERROR: pbx CDR StartTime 2025-01-09 07:18:04 - End Time 2025-01-09 10:18:04 [2025-01-09 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208914', 'tblTempUsageDetail_20' ) start [2025-01-09 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208914', 'tblTempUsageDetail_20' ) end [2025-01-09 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208914', 'tblTempVendorCDR_20' ) start [2025-01-09 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208914', 'tblTempVendorCDR_20' ) end [2025-01-09 10:18:19] Production.INFO: ProcessCDR(1,14208914,1,1,2) [2025-01-09 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208914', 'tblTempUsageDetail_20' ) start [2025-01-09 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208914', 'tblTempUsageDetail_20' ) end [2025-01-09 10:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:18:23] Production.INFO: ==16205== Releasing lock... [2025-01-09 10:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:18:23] Production.INFO: 48 MB #Memory Used# [2025-01-09 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:19:05 [end_date_ymd] => 2025-01-09 10:19:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:19:05' and `end` < '2025-01-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-01-09 10:19:23] Production.INFO: count ==2678 [2025-01-09 10:19:24] Production.ERROR: pbx CDR StartTime 2025-01-09 07:19:05 - End Time 2025-01-09 10:19:05 [2025-01-09 10:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208919', 'tblTempUsageDetail_20' ) start [2025-01-09 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208919', 'tblTempUsageDetail_20' ) end [2025-01-09 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208919', 'tblTempVendorCDR_20' ) start [2025-01-09 10:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208919', 'tblTempVendorCDR_20' ) end [2025-01-09 10:19:24] Production.INFO: ProcessCDR(1,14208919,1,1,2) [2025-01-09 10:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208919', 'tblTempUsageDetail_20' ) start [2025-01-09 10:19:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208919', 'tblTempUsageDetail_20' ) end [2025-01-09 10:19:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:19:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:19:30] Production.INFO: ==16279== Releasing lock... [2025-01-09 10:19:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:19:30] Production.INFO: 48.75 MB #Memory Used# [2025-01-09 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:20:06 [end_date_ymd] => 2025-01-09 10:20:06 [RateCDR] => 1 ) [2025-01-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-01-09 07:20:06' and `end` < '2025-01-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-01-09 10:20:26] Production.INFO: count ==2715 [2025-01-09 10:20:28] Production.ERROR: pbx CDR StartTime 2025-01-09 07:20:06 - End Time 2025-01-09 10:20:06 [2025-01-09 10:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208924', 'tblTempUsageDetail_20' ) start [2025-01-09 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208924', 'tblTempUsageDetail_20' ) end [2025-01-09 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208924', 'tblTempVendorCDR_20' ) start [2025-01-09 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208924', 'tblTempVendorCDR_20' ) end [2025-01-09 10:20:28] Production.INFO: ProcessCDR(1,14208924,1,1,2) [2025-01-09 10:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208924', 'tblTempUsageDetail_20' ) start [2025-01-09 10:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208924', 'tblTempUsageDetail_20' ) end [2025-01-09 10:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:20:32] Production.INFO: ==16351== Releasing lock... [2025-01-09 10:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:20:32] Production.INFO: 48.75 MB #Memory Used# [2025-01-09 10:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:21:04 [end_date_ymd] => 2025-01-09 10:21:04 [RateCDR] => 1 ) [2025-01-09 10:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:21:04' and `end` < '2025-01-09 10:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:21:21] Production.INFO: count ==2807 [2025-01-09 10:21:22] Production.ERROR: pbx CDR StartTime 2025-01-09 07:21:04 - End Time 2025-01-09 10:21:04 [2025-01-09 10:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208930', 'tblTempUsageDetail_20' ) start [2025-01-09 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208930', 'tblTempUsageDetail_20' ) end [2025-01-09 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208930', 'tblTempVendorCDR_20' ) start [2025-01-09 10:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208930', 'tblTempVendorCDR_20' ) end [2025-01-09 10:21:22] Production.INFO: ProcessCDR(1,14208930,1,1,2) [2025-01-09 10:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208930', 'tblTempUsageDetail_20' ) start [2025-01-09 10:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208930', 'tblTempUsageDetail_20' ) end [2025-01-09 10:21:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:21:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:21:27] Production.INFO: ==16423== Releasing lock... [2025-01-09 10:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:21:27] Production.INFO: 49.5 MB #Memory Used# [2025-01-09 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:22:05 [end_date_ymd] => 2025-01-09 10:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:22:05' and `end` < '2025-01-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-01-09 10:22:24] Production.INFO: count ==2810 [2025-01-09 10:22:26] Production.ERROR: pbx CDR StartTime 2025-01-09 07:22:05 - End Time 2025-01-09 10:22:05 [2025-01-09 10:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208935', 'tblTempUsageDetail_20' ) start [2025-01-09 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208935', 'tblTempUsageDetail_20' ) end [2025-01-09 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208935', 'tblTempVendorCDR_20' ) start [2025-01-09 10:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208935', 'tblTempVendorCDR_20' ) end [2025-01-09 10:22:26] Production.INFO: ProcessCDR(1,14208935,1,1,2) [2025-01-09 10:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208935', 'tblTempUsageDetail_20' ) start [2025-01-09 10:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208935', 'tblTempUsageDetail_20' ) end [2025-01-09 10:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:22:29] Production.INFO: ==16494== Releasing lock... [2025-01-09 10:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:22:29] Production.INFO: 49.75 MB #Memory Used# [2025-01-09 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:23:05 [end_date_ymd] => 2025-01-09 10:23:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:23:05' and `end` < '2025-01-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-01-09 10:23:19] Production.INFO: count ==2833 [2025-01-09 10:23:20] Production.ERROR: pbx CDR StartTime 2025-01-09 07:23:05 - End Time 2025-01-09 10:23:05 [2025-01-09 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208940', 'tblTempUsageDetail_20' ) start [2025-01-09 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208940', 'tblTempUsageDetail_20' ) end [2025-01-09 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208940', 'tblTempVendorCDR_20' ) start [2025-01-09 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208940', 'tblTempVendorCDR_20' ) end [2025-01-09 10:23:20] Production.INFO: ProcessCDR(1,14208940,1,1,2) [2025-01-09 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208940', 'tblTempUsageDetail_20' ) start [2025-01-09 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208940', 'tblTempUsageDetail_20' ) end [2025-01-09 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:23:25] Production.INFO: ==16564== Releasing lock... [2025-01-09 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:23:25] Production.INFO: 49.5 MB #Memory Used# [2025-01-09 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:24:05 [end_date_ymd] => 2025-01-09 10:24:05 [RateCDR] => 1 ) [2025-01-09 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:24:05' and `end` < '2025-01-09 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:24:30] Production.INFO: count ==2861 [2025-01-09 10:24:31] Production.ERROR: pbx CDR StartTime 2025-01-09 07:24:05 - End Time 2025-01-09 10:24:05 [2025-01-09 10:24:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208945', 'tblTempUsageDetail_20' ) start [2025-01-09 10:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208945', 'tblTempUsageDetail_20' ) end [2025-01-09 10:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208945', 'tblTempVendorCDR_20' ) start [2025-01-09 10:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208945', 'tblTempVendorCDR_20' ) end [2025-01-09 10:24:31] Production.INFO: ProcessCDR(1,14208945,1,1,2) [2025-01-09 10:24:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:24:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:24:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:24:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208945', 'tblTempUsageDetail_20' ) start [2025-01-09 10:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208945', 'tblTempUsageDetail_20' ) end [2025-01-09 10:24:36] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:24:36] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:24:36] Production.INFO: ==16637== Releasing lock... [2025-01-09 10:24:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:24:36] Production.INFO: 50 MB #Memory Used# [2025-01-09 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:25:05 [end_date_ymd] => 2025-01-09 10:25:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:25:05' and `end` < '2025-01-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-01-09 10:25:23] Production.INFO: count ==2879 [2025-01-09 10:25:24] Production.ERROR: pbx CDR StartTime 2025-01-09 07:25:05 - End Time 2025-01-09 10:25:05 [2025-01-09 10:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208950', 'tblTempUsageDetail_20' ) start [2025-01-09 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208950', 'tblTempUsageDetail_20' ) end [2025-01-09 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208950', 'tblTempVendorCDR_20' ) start [2025-01-09 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208950', 'tblTempVendorCDR_20' ) end [2025-01-09 10:25:24] Production.INFO: ProcessCDR(1,14208950,1,1,2) [2025-01-09 10:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208950', 'tblTempUsageDetail_20' ) start [2025-01-09 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208950', 'tblTempUsageDetail_20' ) end [2025-01-09 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:25:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:25:29] Production.INFO: ==16716== Releasing lock... [2025-01-09 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:25:29] Production.INFO: 49.5 MB #Memory Used# [2025-01-09 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:26:05 [end_date_ymd] => 2025-01-09 10:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:26:05' and `end` < '2025-01-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-01-09 10:26:19] Production.INFO: count ==2897 [2025-01-09 10:26:20] Production.ERROR: pbx CDR StartTime 2025-01-09 07:26:05 - End Time 2025-01-09 10:26:05 [2025-01-09 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208955', 'tblTempUsageDetail_20' ) start [2025-01-09 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208955', 'tblTempUsageDetail_20' ) end [2025-01-09 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208955', 'tblTempVendorCDR_20' ) start [2025-01-09 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208955', 'tblTempVendorCDR_20' ) end [2025-01-09 10:26:20] Production.INFO: ProcessCDR(1,14208955,1,1,2) [2025-01-09 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208955', 'tblTempUsageDetail_20' ) start [2025-01-09 10:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208955', 'tblTempUsageDetail_20' ) end [2025-01-09 10:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:26:25] Production.INFO: ==16787== Releasing lock... [2025-01-09 10:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:26:25] Production.INFO: 50.5 MB #Memory Used# [2025-01-09 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:27:04 [end_date_ymd] => 2025-01-09 10:27:04 [RateCDR] => 1 ) [2025-01-09 10:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:27:04' and `end` < '2025-01-09 10:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:27:18] Production.INFO: count ==2949 [2025-01-09 10:27:19] Production.ERROR: pbx CDR StartTime 2025-01-09 07:27:04 - End Time 2025-01-09 10:27:04 [2025-01-09 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208960', 'tblTempUsageDetail_20' ) start [2025-01-09 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208960', 'tblTempUsageDetail_20' ) end [2025-01-09 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208960', 'tblTempVendorCDR_20' ) start [2025-01-09 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208960', 'tblTempVendorCDR_20' ) end [2025-01-09 10:27:19] Production.INFO: ProcessCDR(1,14208960,1,1,2) [2025-01-09 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208960', 'tblTempUsageDetail_20' ) start [2025-01-09 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208960', 'tblTempUsageDetail_20' ) end [2025-01-09 10:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:27:24] Production.INFO: ==16857== Releasing lock... [2025-01-09 10:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:27:24] Production.INFO: 50.25 MB #Memory Used# [2025-01-09 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:28:05 [end_date_ymd] => 2025-01-09 10:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:28:05' and `end` < '2025-01-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-01-09 10:28:19] Production.INFO: count ==2952 [2025-01-09 10:28:21] Production.ERROR: pbx CDR StartTime 2025-01-09 07:28:05 - End Time 2025-01-09 10:28:05 [2025-01-09 10:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208965', 'tblTempUsageDetail_20' ) start [2025-01-09 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208965', 'tblTempUsageDetail_20' ) end [2025-01-09 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208965', 'tblTempVendorCDR_20' ) start [2025-01-09 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208965', 'tblTempVendorCDR_20' ) end [2025-01-09 10:28:21] Production.INFO: ProcessCDR(1,14208965,1,1,2) [2025-01-09 10:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208965', 'tblTempUsageDetail_20' ) start [2025-01-09 10:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208965', 'tblTempUsageDetail_20' ) end [2025-01-09 10:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:28:25] Production.INFO: ==16968== Releasing lock... [2025-01-09 10:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:28:25] Production.INFO: 50 MB #Memory Used# [2025-01-09 10:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:29:04 [end_date_ymd] => 2025-01-09 10:29:04 [RateCDR] => 1 ) [2025-01-09 10:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:29:04' and `end` < '2025-01-09 10:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:29:18] Production.INFO: count ==2958 [2025-01-09 10:29:19] Production.ERROR: pbx CDR StartTime 2025-01-09 07:29:04 - End Time 2025-01-09 10:29:04 [2025-01-09 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208970', 'tblTempUsageDetail_20' ) start [2025-01-09 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208970', 'tblTempUsageDetail_20' ) end [2025-01-09 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208970', 'tblTempVendorCDR_20' ) start [2025-01-09 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208970', 'tblTempVendorCDR_20' ) end [2025-01-09 10:29:19] Production.INFO: ProcessCDR(1,14208970,1,1,2) [2025-01-09 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208970', 'tblTempUsageDetail_20' ) start [2025-01-09 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208970', 'tblTempUsageDetail_20' ) end [2025-01-09 10:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:29:23] Production.INFO: ==17037== Releasing lock... [2025-01-09 10:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:29:23] Production.INFO: 50.25 MB #Memory Used# [2025-01-09 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:30:05 [end_date_ymd] => 2025-01-09 10:30:05 [RateCDR] => 1 ) [2025-01-09 10:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:30:05' and `end` < '2025-01-09 10:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:30:27] Production.INFO: count ==2999 [2025-01-09 10:30:28] Production.ERROR: pbx CDR StartTime 2025-01-09 07:30:05 - End Time 2025-01-09 10:30:05 [2025-01-09 10:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208975', 'tblTempUsageDetail_20' ) start [2025-01-09 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208975', 'tblTempUsageDetail_20' ) end [2025-01-09 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208975', 'tblTempVendorCDR_20' ) start [2025-01-09 10:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208975', 'tblTempVendorCDR_20' ) end [2025-01-09 10:30:28] Production.INFO: ProcessCDR(1,14208975,1,1,2) [2025-01-09 10:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208975', 'tblTempUsageDetail_20' ) start [2025-01-09 10:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208975', 'tblTempUsageDetail_20' ) end [2025-01-09 10:30:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:30:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:30:33] Production.INFO: ==17110== Releasing lock... [2025-01-09 10:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:30:33] Production.INFO: 50.75 MB #Memory Used# [2025-01-09 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:31:05 [end_date_ymd] => 2025-01-09 10:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:31:05' and `end` < '2025-01-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-01-09 10:31:26] Production.INFO: count ==3094 [2025-01-09 10:31:27] Production.ERROR: pbx CDR StartTime 2025-01-09 07:31:05 - End Time 2025-01-09 10:31:05 [2025-01-09 10:31:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208981', 'tblTempUsageDetail_20' ) start [2025-01-09 10:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208981', 'tblTempUsageDetail_20' ) end [2025-01-09 10:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208981', 'tblTempVendorCDR_20' ) start [2025-01-09 10:31:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208981', 'tblTempVendorCDR_20' ) end [2025-01-09 10:31:27] Production.INFO: ProcessCDR(1,14208981,1,1,2) [2025-01-09 10:31:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:31:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:31:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:31:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208981', 'tblTempUsageDetail_20' ) start [2025-01-09 10:31:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208981', 'tblTempUsageDetail_20' ) end [2025-01-09 10:31:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:31:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:31:32] Production.INFO: ==17186== Releasing lock... [2025-01-09 10:31:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:31:32] Production.INFO: 51.25 MB #Memory Used# [2025-01-09 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:32:05 [end_date_ymd] => 2025-01-09 10:32:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:32:05' and `end` < '2025-01-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-01-09 10:32:19] Production.INFO: count ==3127 [2025-01-09 10:32:21] Production.ERROR: pbx CDR StartTime 2025-01-09 07:32:05 - End Time 2025-01-09 10:32:05 [2025-01-09 10:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208986', 'tblTempUsageDetail_20' ) start [2025-01-09 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208986', 'tblTempUsageDetail_20' ) end [2025-01-09 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208986', 'tblTempVendorCDR_20' ) start [2025-01-09 10:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208986', 'tblTempVendorCDR_20' ) end [2025-01-09 10:32:21] Production.INFO: ProcessCDR(1,14208986,1,1,2) [2025-01-09 10:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208986', 'tblTempUsageDetail_20' ) start [2025-01-09 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208986', 'tblTempUsageDetail_20' ) end [2025-01-09 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:32:25] Production.INFO: ==17258== Releasing lock... [2025-01-09 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:32:25] Production.INFO: 51.25 MB #Memory Used# [2025-01-09 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:33:05 [end_date_ymd] => 2025-01-09 10:33:05 [RateCDR] => 1 ) [2025-01-09 10:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:33:05' and `end` < '2025-01-09 10:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:33:21] Production.INFO: count ==3139 [2025-01-09 10:33:22] Production.ERROR: pbx CDR StartTime 2025-01-09 07:33:05 - End Time 2025-01-09 10:33:05 [2025-01-09 10:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208991', 'tblTempUsageDetail_20' ) start [2025-01-09 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208991', 'tblTempUsageDetail_20' ) end [2025-01-09 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208991', 'tblTempVendorCDR_20' ) start [2025-01-09 10:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208991', 'tblTempVendorCDR_20' ) end [2025-01-09 10:33:23] Production.INFO: ProcessCDR(1,14208991,1,1,2) [2025-01-09 10:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208991', 'tblTempUsageDetail_20' ) start [2025-01-09 10:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208991', 'tblTempUsageDetail_20' ) end [2025-01-09 10:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:33:27] Production.INFO: ==17330== Releasing lock... [2025-01-09 10:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:33:27] Production.INFO: 51.5 MB #Memory Used# [2025-01-09 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:34:05 [end_date_ymd] => 2025-01-09 10:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:34:05' and `end` < '2025-01-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-01-09 10:34:23] Production.INFO: count ==3155 [2025-01-09 10:34:24] Production.ERROR: pbx CDR StartTime 2025-01-09 07:34:05 - End Time 2025-01-09 10:34:05 [2025-01-09 10:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208996', 'tblTempUsageDetail_20' ) start [2025-01-09 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14208996', 'tblTempUsageDetail_20' ) end [2025-01-09 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208996', 'tblTempVendorCDR_20' ) start [2025-01-09 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14208996', 'tblTempVendorCDR_20' ) end [2025-01-09 10:34:24] Production.INFO: ProcessCDR(1,14208996,1,1,2) [2025-01-09 10:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14208996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14208996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14208996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14208996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208996', 'tblTempUsageDetail_20' ) start [2025-01-09 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14208996', 'tblTempUsageDetail_20' ) end [2025-01-09 10:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:34:29] Production.INFO: ==17399== Releasing lock... [2025-01-09 10:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:34:29] Production.INFO: 51.5 MB #Memory Used# [2025-01-09 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:35:05 [end_date_ymd] => 2025-01-09 10:35:05 [RateCDR] => 1 ) [2025-01-09 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:35:05' and `end` < '2025-01-09 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:35:24] Production.INFO: count ==3163 [2025-01-09 10:35:25] Production.ERROR: pbx CDR StartTime 2025-01-09 07:35:05 - End Time 2025-01-09 10:35:05 [2025-01-09 10:35:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:35:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209001', 'tblTempUsageDetail_20' ) start [2025-01-09 10:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209001', 'tblTempUsageDetail_20' ) end [2025-01-09 10:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209001', 'tblTempVendorCDR_20' ) start [2025-01-09 10:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209001', 'tblTempVendorCDR_20' ) end [2025-01-09 10:35:26] Production.INFO: ProcessCDR(1,14209001,1,1,2) [2025-01-09 10:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209001', 'tblTempUsageDetail_20' ) start [2025-01-09 10:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209001', 'tblTempUsageDetail_20' ) end [2025-01-09 10:35:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:35:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:35:30] Production.INFO: ==17470== Releasing lock... [2025-01-09 10:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:35:30] Production.INFO: 51.75 MB #Memory Used# [2025-01-09 10:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:36:04 [end_date_ymd] => 2025-01-09 10:36:04 [RateCDR] => 1 ) [2025-01-09 10:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:36:04' and `end` < '2025-01-09 10:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:36:25] Production.INFO: count ==3200 [2025-01-09 10:36:26] Production.ERROR: pbx CDR StartTime 2025-01-09 07:36:04 - End Time 2025-01-09 10:36:04 [2025-01-09 10:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209006', 'tblTempUsageDetail_20' ) start [2025-01-09 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209006', 'tblTempUsageDetail_20' ) end [2025-01-09 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209006', 'tblTempVendorCDR_20' ) start [2025-01-09 10:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209006', 'tblTempVendorCDR_20' ) end [2025-01-09 10:36:26] Production.INFO: ProcessCDR(1,14209006,1,1,2) [2025-01-09 10:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209006', 'tblTempUsageDetail_20' ) start [2025-01-09 10:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209006', 'tblTempUsageDetail_20' ) end [2025-01-09 10:36:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:36:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:36:31] Production.INFO: ==17540== Releasing lock... [2025-01-09 10:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:36:31] Production.INFO: 52 MB #Memory Used# [2025-01-09 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:37:05 [end_date_ymd] => 2025-01-09 10:37:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:37:05' and `end` < '2025-01-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-01-09 10:37:23] Production.INFO: count ==3204 [2025-01-09 10:37:25] Production.ERROR: pbx CDR StartTime 2025-01-09 07:37:05 - End Time 2025-01-09 10:37:05 [2025-01-09 10:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209011', 'tblTempUsageDetail_20' ) start [2025-01-09 10:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209011', 'tblTempUsageDetail_20' ) end [2025-01-09 10:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209011', 'tblTempVendorCDR_20' ) start [2025-01-09 10:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209011', 'tblTempVendorCDR_20' ) end [2025-01-09 10:37:25] Production.INFO: ProcessCDR(1,14209011,1,1,2) [2025-01-09 10:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209011', 'tblTempUsageDetail_20' ) start [2025-01-09 10:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209011', 'tblTempUsageDetail_20' ) end [2025-01-09 10:37:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:37:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:37:29] Production.INFO: ==17611== Releasing lock... [2025-01-09 10:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:37:29] Production.INFO: 52 MB #Memory Used# [2025-01-09 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:38:05 [end_date_ymd] => 2025-01-09 10:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:38:05' and `end` < '2025-01-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-01-09 10:38:18] Production.INFO: count ==3207 [2025-01-09 10:38:19] Production.ERROR: pbx CDR StartTime 2025-01-09 07:38:05 - End Time 2025-01-09 10:38:05 [2025-01-09 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209016', 'tblTempUsageDetail_20' ) start [2025-01-09 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209016', 'tblTempUsageDetail_20' ) end [2025-01-09 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209016', 'tblTempVendorCDR_20' ) start [2025-01-09 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209016', 'tblTempVendorCDR_20' ) end [2025-01-09 10:38:19] Production.INFO: ProcessCDR(1,14209016,1,1,2) [2025-01-09 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209016', 'tblTempUsageDetail_20' ) start [2025-01-09 10:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209016', 'tblTempUsageDetail_20' ) end [2025-01-09 10:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:38:24] Production.INFO: ==17686== Releasing lock... [2025-01-09 10:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:38:24] Production.INFO: 52 MB #Memory Used# [2025-01-09 10:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:39:04 [end_date_ymd] => 2025-01-09 10:39:04 [RateCDR] => 1 ) [2025-01-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-01-09 07:39:04' and `end` < '2025-01-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-01-09 10:39:20] Production.INFO: count ==3215 [2025-01-09 10:39:21] Production.ERROR: pbx CDR StartTime 2025-01-09 07:39:04 - End Time 2025-01-09 10:39:04 [2025-01-09 10:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209021', 'tblTempUsageDetail_20' ) start [2025-01-09 10:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209021', 'tblTempUsageDetail_20' ) end [2025-01-09 10:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209021', 'tblTempVendorCDR_20' ) start [2025-01-09 10:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209021', 'tblTempVendorCDR_20' ) end [2025-01-09 10:39:22] Production.INFO: ProcessCDR(1,14209021,1,1,2) [2025-01-09 10:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209021', 'tblTempUsageDetail_20' ) start [2025-01-09 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209021', 'tblTempUsageDetail_20' ) end [2025-01-09 10:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:39:26] Production.INFO: ==17760== Releasing lock... [2025-01-09 10:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:39:26] Production.INFO: 52.75 MB #Memory Used# [2025-01-09 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:40:04 [end_date_ymd] => 2025-01-09 10:40:04 [RateCDR] => 1 ) [2025-01-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-01-09 07:40:04' and `end` < '2025-01-09 10:40:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:40:26] Production.INFO: count ==3210 [2025-01-09 10:40:27] Production.ERROR: pbx CDR StartTime 2025-01-09 07:40:04 - End Time 2025-01-09 10:40:04 [2025-01-09 10:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209026', 'tblTempUsageDetail_20' ) start [2025-01-09 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209026', 'tblTempUsageDetail_20' ) end [2025-01-09 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209026', 'tblTempVendorCDR_20' ) start [2025-01-09 10:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209026', 'tblTempVendorCDR_20' ) end [2025-01-09 10:40:27] Production.INFO: ProcessCDR(1,14209026,1,1,2) [2025-01-09 10:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:40:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:40:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:40:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209026', 'tblTempUsageDetail_20' ) start [2025-01-09 10:40:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209026', 'tblTempUsageDetail_20' ) end [2025-01-09 10:40:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:40:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:40:31] Production.INFO: ==17833== Releasing lock... [2025-01-09 10:40:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:40:31] Production.INFO: 52.5 MB #Memory Used# [2025-01-09 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:41:05 [end_date_ymd] => 2025-01-09 10:41:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:41:05' and `end` < '2025-01-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-01-09 10:41:23] Production.INFO: count ==3278 [2025-01-09 10:41:25] Production.ERROR: pbx CDR StartTime 2025-01-09 07:41:05 - End Time 2025-01-09 10:41:05 [2025-01-09 10:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209032', 'tblTempUsageDetail_20' ) start [2025-01-09 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209032', 'tblTempUsageDetail_20' ) end [2025-01-09 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209032', 'tblTempVendorCDR_20' ) start [2025-01-09 10:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209032', 'tblTempVendorCDR_20' ) end [2025-01-09 10:41:25] Production.INFO: ProcessCDR(1,14209032,1,1,2) [2025-01-09 10:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209032', 'tblTempUsageDetail_20' ) start [2025-01-09 10:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209032', 'tblTempUsageDetail_20' ) end [2025-01-09 10:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:41:29] Production.INFO: ==17906== Releasing lock... [2025-01-09 10:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:41:29] Production.INFO: 52.5 MB #Memory Used# [2025-01-09 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:42:05 [end_date_ymd] => 2025-01-09 10:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:42:05' and `end` < '2025-01-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-01-09 10:42:21] Production.INFO: count ==3290 [2025-01-09 10:42:23] Production.ERROR: pbx CDR StartTime 2025-01-09 07:42:05 - End Time 2025-01-09 10:42:05 [2025-01-09 10:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209037', 'tblTempUsageDetail_20' ) start [2025-01-09 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209037', 'tblTempUsageDetail_20' ) end [2025-01-09 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209037', 'tblTempVendorCDR_20' ) start [2025-01-09 10:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209037', 'tblTempVendorCDR_20' ) end [2025-01-09 10:42:23] Production.INFO: ProcessCDR(1,14209037,1,1,2) [2025-01-09 10:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209037', 'tblTempUsageDetail_20' ) start [2025-01-09 10:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209037', 'tblTempUsageDetail_20' ) end [2025-01-09 10:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:42:27] Production.INFO: ==17976== Releasing lock... [2025-01-09 10:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:42:27] Production.INFO: 53.5 MB #Memory Used# [2025-01-09 10:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:43:04 [end_date_ymd] => 2025-01-09 10:43:04 [RateCDR] => 1 ) [2025-01-09 10:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:43:04' and `end` < '2025-01-09 10:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:43:24] Production.INFO: count ==3313 [2025-01-09 10:43:25] Production.ERROR: pbx CDR StartTime 2025-01-09 07:43:04 - End Time 2025-01-09 10:43:04 [2025-01-09 10:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209041', 'tblTempUsageDetail_20' ) start [2025-01-09 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209041', 'tblTempUsageDetail_20' ) end [2025-01-09 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209041', 'tblTempVendorCDR_20' ) start [2025-01-09 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209041', 'tblTempVendorCDR_20' ) end [2025-01-09 10:43:26] Production.INFO: ProcessCDR(1,14209041,1,1,2) [2025-01-09 10:43:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209041', 'tblTempUsageDetail_20' ) start [2025-01-09 10:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209041', 'tblTempUsageDetail_20' ) end [2025-01-09 10:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:43:30] Production.INFO: ==18046== Releasing lock... [2025-01-09 10:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:43:30] Production.INFO: 53.25 MB #Memory Used# [2025-01-09 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:44:05 [end_date_ymd] => 2025-01-09 10:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:44:05' and `end` < '2025-01-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-01-09 10:44:21] Production.INFO: count ==3325 [2025-01-09 10:44:22] Production.ERROR: pbx CDR StartTime 2025-01-09 07:44:05 - End Time 2025-01-09 10:44:05 [2025-01-09 10:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209047', 'tblTempUsageDetail_20' ) start [2025-01-09 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209047', 'tblTempUsageDetail_20' ) end [2025-01-09 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209047', 'tblTempVendorCDR_20' ) start [2025-01-09 10:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209047', 'tblTempVendorCDR_20' ) end [2025-01-09 10:44:22] Production.INFO: ProcessCDR(1,14209047,1,1,2) [2025-01-09 10:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209047', 'tblTempUsageDetail_20' ) start [2025-01-09 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209047', 'tblTempUsageDetail_20' ) end [2025-01-09 10:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:44:27] Production.INFO: ==18159== Releasing lock... [2025-01-09 10:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:44:27] Production.INFO: 53.25 MB #Memory Used# [2025-01-09 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:45:05 [end_date_ymd] => 2025-01-09 10:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:45:05' and `end` < '2025-01-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-01-09 10:45:26] Production.INFO: count ==3349 [2025-01-09 10:45:27] Production.ERROR: pbx CDR StartTime 2025-01-09 07:45:05 - End Time 2025-01-09 10:45:05 [2025-01-09 10:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209052', 'tblTempUsageDetail_20' ) start [2025-01-09 10:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209052', 'tblTempUsageDetail_20' ) end [2025-01-09 10:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209052', 'tblTempVendorCDR_20' ) start [2025-01-09 10:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209052', 'tblTempVendorCDR_20' ) end [2025-01-09 10:45:27] Production.INFO: ProcessCDR(1,14209052,1,1,2) [2025-01-09 10:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:45:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209052', 'tblTempUsageDetail_20' ) start [2025-01-09 10:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209052', 'tblTempUsageDetail_20' ) end [2025-01-09 10:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:45:32] Production.INFO: ==18232== Releasing lock... [2025-01-09 10:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:45:32] Production.INFO: 53.5 MB #Memory Used# [2025-01-09 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:46:05 [end_date_ymd] => 2025-01-09 10:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:46:05' and `end` < '2025-01-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-01-09 10:46:36] Production.INFO: count ==3360 [2025-01-09 10:46:38] Production.ERROR: pbx CDR StartTime 2025-01-09 07:46:05 - End Time 2025-01-09 10:46:05 [2025-01-09 10:46:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:46:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209057', 'tblTempUsageDetail_20' ) start [2025-01-09 10:46:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209057', 'tblTempUsageDetail_20' ) end [2025-01-09 10:46:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209057', 'tblTempVendorCDR_20' ) start [2025-01-09 10:46:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209057', 'tblTempVendorCDR_20' ) end [2025-01-09 10:46:38] Production.INFO: ProcessCDR(1,14209057,1,1,2) [2025-01-09 10:46:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:46:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:46:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:46:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:46:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209057', 'tblTempUsageDetail_20' ) start [2025-01-09 10:46:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209057', 'tblTempUsageDetail_20' ) end [2025-01-09 10:46:42] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:46:42] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:46:42] Production.INFO: ==18303== Releasing lock... [2025-01-09 10:46:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:46:42] Production.INFO: 53.75 MB #Memory Used# [2025-01-09 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:47:05 [end_date_ymd] => 2025-01-09 10:47:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:47:05' and `end` < '2025-01-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-01-09 10:47:24] Production.INFO: count ==3365 [2025-01-09 10:47:25] Production.ERROR: pbx CDR StartTime 2025-01-09 07:47:05 - End Time 2025-01-09 10:47:05 [2025-01-09 10:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209062', 'tblTempUsageDetail_20' ) start [2025-01-09 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209062', 'tblTempUsageDetail_20' ) end [2025-01-09 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209062', 'tblTempVendorCDR_20' ) start [2025-01-09 10:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209062', 'tblTempVendorCDR_20' ) end [2025-01-09 10:47:25] Production.INFO: ProcessCDR(1,14209062,1,1,2) [2025-01-09 10:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209062', 'tblTempUsageDetail_20' ) start [2025-01-09 10:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209062', 'tblTempUsageDetail_20' ) end [2025-01-09 10:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:47:30] Production.INFO: ==18373== Releasing lock... [2025-01-09 10:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:47:30] Production.INFO: 53.75 MB #Memory Used# [2025-01-09 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:48:05 [end_date_ymd] => 2025-01-09 10:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:48:05' and `end` < '2025-01-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-01-09 10:48:19] Production.INFO: count ==3365 [2025-01-09 10:48:20] Production.ERROR: pbx CDR StartTime 2025-01-09 07:48:05 - End Time 2025-01-09 10:48:05 [2025-01-09 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209067', 'tblTempUsageDetail_20' ) start [2025-01-09 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209067', 'tblTempUsageDetail_20' ) end [2025-01-09 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209067', 'tblTempVendorCDR_20' ) start [2025-01-09 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209067', 'tblTempVendorCDR_20' ) end [2025-01-09 10:48:21] Production.INFO: ProcessCDR(1,14209067,1,1,2) [2025-01-09 10:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209067', 'tblTempUsageDetail_20' ) start [2025-01-09 10:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209067', 'tblTempUsageDetail_20' ) end [2025-01-09 10:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:48:25] Production.INFO: ==18444== Releasing lock... [2025-01-09 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:48:25] Production.INFO: 53 MB #Memory Used# [2025-01-09 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:49:05 [end_date_ymd] => 2025-01-09 10:49:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:49:05' and `end` < '2025-01-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-01-09 10:49:19] Production.INFO: count ==3390 [2025-01-09 10:49:21] Production.ERROR: pbx CDR StartTime 2025-01-09 07:49:05 - End Time 2025-01-09 10:49:05 [2025-01-09 10:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209072', 'tblTempUsageDetail_20' ) start [2025-01-09 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209072', 'tblTempUsageDetail_20' ) end [2025-01-09 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209072', 'tblTempVendorCDR_20' ) start [2025-01-09 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209072', 'tblTempVendorCDR_20' ) end [2025-01-09 10:49:21] Production.INFO: ProcessCDR(1,14209072,1,1,2) [2025-01-09 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209072', 'tblTempUsageDetail_20' ) start [2025-01-09 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209072', 'tblTempUsageDetail_20' ) end [2025-01-09 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:49:25] Production.INFO: ==18514== Releasing lock... [2025-01-09 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:49:25] Production.INFO: 53.25 MB #Memory Used# [2025-01-09 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:50:06 [end_date_ymd] => 2025-01-09 10:50:06 [RateCDR] => 1 ) [2025-01-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-01-09 07:50:06' and `end` < '2025-01-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-01-09 10:50:35] Production.INFO: count ==3399 [2025-01-09 10:50:37] Production.ERROR: pbx CDR StartTime 2025-01-09 07:50:06 - End Time 2025-01-09 10:50:06 [2025-01-09 10:50:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:50:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209077', 'tblTempUsageDetail_20' ) start [2025-01-09 10:50:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209077', 'tblTempUsageDetail_20' ) end [2025-01-09 10:50:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209077', 'tblTempVendorCDR_20' ) start [2025-01-09 10:50:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209077', 'tblTempVendorCDR_20' ) end [2025-01-09 10:50:37] Production.INFO: ProcessCDR(1,14209077,1,1,2) [2025-01-09 10:50:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:50:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:50:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:50:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209077', 'tblTempUsageDetail_20' ) start [2025-01-09 10:50:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209077', 'tblTempUsageDetail_20' ) end [2025-01-09 10:50:41] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:50:41] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:50:41] Production.INFO: ==18588== Releasing lock... [2025-01-09 10:50:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:50:41] Production.INFO: 53.5 MB #Memory Used# [2025-01-09 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:51:05 [end_date_ymd] => 2025-01-09 10:51:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:51:05' and `end` < '2025-01-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-01-09 10:51:31] Production.INFO: count ==3488 [2025-01-09 10:51:33] Production.ERROR: pbx CDR StartTime 2025-01-09 07:51:05 - End Time 2025-01-09 10:51:05 [2025-01-09 10:51:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209083', 'tblTempUsageDetail_20' ) start [2025-01-09 10:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209083', 'tblTempUsageDetail_20' ) end [2025-01-09 10:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209083', 'tblTempVendorCDR_20' ) start [2025-01-09 10:51:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209083', 'tblTempVendorCDR_20' ) end [2025-01-09 10:51:33] Production.INFO: ProcessCDR(1,14209083,1,1,2) [2025-01-09 10:51:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:51:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:51:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:51:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:51:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209083', 'tblTempUsageDetail_20' ) start [2025-01-09 10:51:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209083', 'tblTempUsageDetail_20' ) end [2025-01-09 10:51:38] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:51:38] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:51:38] Production.INFO: ==18661== Releasing lock... [2025-01-09 10:51:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:51:38] Production.INFO: 54.5 MB #Memory Used# [2025-01-09 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:52:05 [end_date_ymd] => 2025-01-09 10:52:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:52:05' and `end` < '2025-01-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-01-09 10:52:28] Production.INFO: count ==3509 [2025-01-09 10:52:30] Production.ERROR: pbx CDR StartTime 2025-01-09 07:52:05 - End Time 2025-01-09 10:52:05 [2025-01-09 10:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209088', 'tblTempUsageDetail_20' ) start [2025-01-09 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209088', 'tblTempUsageDetail_20' ) end [2025-01-09 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209088', 'tblTempVendorCDR_20' ) start [2025-01-09 10:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209088', 'tblTempVendorCDR_20' ) end [2025-01-09 10:52:30] Production.INFO: ProcessCDR(1,14209088,1,1,2) [2025-01-09 10:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209088', 'tblTempUsageDetail_20' ) start [2025-01-09 10:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209088', 'tblTempUsageDetail_20' ) end [2025-01-09 10:52:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:52:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:52:35] Production.INFO: ==18731== Releasing lock... [2025-01-09 10:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:52:35] Production.INFO: 55 MB #Memory Used# [2025-01-09 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:53:05 [end_date_ymd] => 2025-01-09 10:53:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:53:05' and `end` < '2025-01-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-01-09 10:53:28] Production.INFO: count ==3543 [2025-01-09 10:53:30] Production.ERROR: pbx CDR StartTime 2025-01-09 07:53:05 - End Time 2025-01-09 10:53:05 [2025-01-09 10:53:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209093', 'tblTempUsageDetail_20' ) start [2025-01-09 10:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209093', 'tblTempUsageDetail_20' ) end [2025-01-09 10:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209093', 'tblTempVendorCDR_20' ) start [2025-01-09 10:53:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209093', 'tblTempVendorCDR_20' ) end [2025-01-09 10:53:30] Production.INFO: ProcessCDR(1,14209093,1,1,2) [2025-01-09 10:53:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:53:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:53:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:53:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209093', 'tblTempUsageDetail_20' ) start [2025-01-09 10:53:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209093', 'tblTempUsageDetail_20' ) end [2025-01-09 10:53:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:53:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:53:35] Production.INFO: ==18806== Releasing lock... [2025-01-09 10:53:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:53:35] Production.INFO: 55.25 MB #Memory Used# [2025-01-09 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:54:05 [end_date_ymd] => 2025-01-09 10:54:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:54:05' and `end` < '2025-01-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-01-09 10:54:23] Production.INFO: count ==3563 [2025-01-09 10:54:25] Production.ERROR: pbx CDR StartTime 2025-01-09 07:54:05 - End Time 2025-01-09 10:54:05 [2025-01-09 10:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209098', 'tblTempUsageDetail_20' ) start [2025-01-09 10:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209098', 'tblTempUsageDetail_20' ) end [2025-01-09 10:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209098', 'tblTempVendorCDR_20' ) start [2025-01-09 10:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209098', 'tblTempVendorCDR_20' ) end [2025-01-09 10:54:25] Production.INFO: ProcessCDR(1,14209098,1,1,2) [2025-01-09 10:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209098', 'tblTempUsageDetail_20' ) start [2025-01-09 10:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209098', 'tblTempUsageDetail_20' ) end [2025-01-09 10:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:54:30] Production.INFO: ==18882== Releasing lock... [2025-01-09 10:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:54:30] Production.INFO: 54.75 MB #Memory Used# [2025-01-09 10:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:55:04 [end_date_ymd] => 2025-01-09 10:55:04 [RateCDR] => 1 ) [2025-01-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-01-09 07:55:04' and `end` < '2025-01-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-01-09 10:55:26] Production.INFO: count ==3582 [2025-01-09 10:55:27] Production.ERROR: pbx CDR StartTime 2025-01-09 07:55:04 - End Time 2025-01-09 10:55:04 [2025-01-09 10:55:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209103', 'tblTempUsageDetail_20' ) start [2025-01-09 10:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209103', 'tblTempUsageDetail_20' ) end [2025-01-09 10:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209103', 'tblTempVendorCDR_20' ) start [2025-01-09 10:55:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209103', 'tblTempVendorCDR_20' ) end [2025-01-09 10:55:27] Production.INFO: ProcessCDR(1,14209103,1,1,2) [2025-01-09 10:55:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:55:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:55:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:55:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209103', 'tblTempUsageDetail_20' ) start [2025-01-09 10:55:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209103', 'tblTempUsageDetail_20' ) end [2025-01-09 10:55:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:55:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:55:32] Production.INFO: ==18951== Releasing lock... [2025-01-09 10:55:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:55:32] Production.INFO: 55 MB #Memory Used# [2025-01-09 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:56:05 [end_date_ymd] => 2025-01-09 10:56:05 [RateCDR] => 1 ) [2025-01-09 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:56:05' and `end` < '2025-01-09 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:56:25] Production.INFO: count ==3600 [2025-01-09 10:56:26] Production.ERROR: pbx CDR StartTime 2025-01-09 07:56:05 - End Time 2025-01-09 10:56:05 [2025-01-09 10:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209108', 'tblTempUsageDetail_20' ) start [2025-01-09 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209108', 'tblTempUsageDetail_20' ) end [2025-01-09 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209108', 'tblTempVendorCDR_20' ) start [2025-01-09 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209108', 'tblTempVendorCDR_20' ) end [2025-01-09 10:56:26] Production.INFO: ProcessCDR(1,14209108,1,1,2) [2025-01-09 10:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209108', 'tblTempUsageDetail_20' ) start [2025-01-09 10:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209108', 'tblTempUsageDetail_20' ) end [2025-01-09 10:56:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:56:31] Production.INFO: ==19025== Releasing lock... [2025-01-09 10:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:56:31] Production.INFO: 55.25 MB #Memory Used# [2025-01-09 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:57:05 [end_date_ymd] => 2025-01-09 10:57:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:57:05' and `end` < '2025-01-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-01-09 10:57:25] Production.INFO: count ==3621 [2025-01-09 10:57:26] Production.ERROR: pbx CDR StartTime 2025-01-09 07:57:05 - End Time 2025-01-09 10:57:05 [2025-01-09 10:57:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209113', 'tblTempUsageDetail_20' ) start [2025-01-09 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209113', 'tblTempUsageDetail_20' ) end [2025-01-09 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209113', 'tblTempVendorCDR_20' ) start [2025-01-09 10:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209113', 'tblTempVendorCDR_20' ) end [2025-01-09 10:57:26] Production.INFO: ProcessCDR(1,14209113,1,1,2) [2025-01-09 10:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209113', 'tblTempUsageDetail_20' ) start [2025-01-09 10:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209113', 'tblTempUsageDetail_20' ) end [2025-01-09 10:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:57:31] Production.INFO: ==19097== Releasing lock... [2025-01-09 10:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:57:31] Production.INFO: 55 MB #Memory Used# [2025-01-09 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:58:05 [end_date_ymd] => 2025-01-09 10:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 07:58:05' and `end` < '2025-01-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-01-09 10:58:24] Production.INFO: count ==3625 [2025-01-09 10:58:25] Production.ERROR: pbx CDR StartTime 2025-01-09 07:58:05 - End Time 2025-01-09 10:58:05 [2025-01-09 10:58:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209118', 'tblTempUsageDetail_20' ) start [2025-01-09 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209118', 'tblTempUsageDetail_20' ) end [2025-01-09 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209118', 'tblTempVendorCDR_20' ) start [2025-01-09 10:58:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209118', 'tblTempVendorCDR_20' ) end [2025-01-09 10:58:25] Production.INFO: ProcessCDR(1,14209118,1,1,2) [2025-01-09 10:58:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:58:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:58:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:58:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209118', 'tblTempUsageDetail_20' ) start [2025-01-09 10:58:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209118', 'tblTempUsageDetail_20' ) end [2025-01-09 10:58:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:58:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:58:30] Production.INFO: ==19168== Releasing lock... [2025-01-09 10:58:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:58:30] Production.INFO: 55.25 MB #Memory Used# [2025-01-09 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 07:59:05 [end_date_ymd] => 2025-01-09 10:59:05 [RateCDR] => 1 ) [2025-01-09 10:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 07:59:05' and `end` < '2025-01-09 10:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 10:59:18] Production.INFO: count ==3637 [2025-01-09 10:59:20] Production.ERROR: pbx CDR StartTime 2025-01-09 07:59:05 - End Time 2025-01-09 10:59:05 [2025-01-09 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209123', 'tblTempUsageDetail_20' ) start [2025-01-09 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209123', 'tblTempUsageDetail_20' ) end [2025-01-09 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209123', 'tblTempVendorCDR_20' ) start [2025-01-09 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209123', 'tblTempVendorCDR_20' ) end [2025-01-09 10:59:20] Production.INFO: ProcessCDR(1,14209123,1,1,2) [2025-01-09 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 10:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209123', 'tblTempUsageDetail_20' ) start [2025-01-09 10:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209123', 'tblTempUsageDetail_20' ) end [2025-01-09 10:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 10:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 10:59:23] Production.INFO: ==19279== Releasing lock... [2025-01-09 10:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 10:59:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-09 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:00:05 [end_date_ymd] => 2025-01-09 11:00:05 [RateCDR] => 1 ) [2025-01-09 11:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:00:05' and `end` < '2025-01-09 11:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:00:26] Production.INFO: count ==3649 [2025-01-09 11:00:28] Production.ERROR: pbx CDR StartTime 2025-01-09 08:00:05 - End Time 2025-01-09 11:00:05 [2025-01-09 11:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209129', 'tblTempUsageDetail_20' ) start [2025-01-09 11:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209129', 'tblTempUsageDetail_20' ) end [2025-01-09 11:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209129', 'tblTempVendorCDR_20' ) start [2025-01-09 11:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209129', 'tblTempVendorCDR_20' ) end [2025-01-09 11:00:28] Production.INFO: ProcessCDR(1,14209129,1,1,2) [2025-01-09 11:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209129', 'tblTempUsageDetail_20' ) start [2025-01-09 11:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209129', 'tblTempUsageDetail_20' ) end [2025-01-09 11:00:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:00:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:00:32] Production.INFO: ==19351== Releasing lock... [2025-01-09 11:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:00:32] Production.INFO: 55.25 MB #Memory Used# [2025-01-09 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:01:05 [end_date_ymd] => 2025-01-09 11:01:05 [RateCDR] => 1 ) [2025-01-09 11:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:01:05' and `end` < '2025-01-09 11:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:01:24] Production.INFO: count ==3757 [2025-01-09 11:01:25] Production.ERROR: pbx CDR StartTime 2025-01-09 08:01:05 - End Time 2025-01-09 11:01:05 [2025-01-09 11:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209134', 'tblTempUsageDetail_20' ) start [2025-01-09 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209134', 'tblTempUsageDetail_20' ) end [2025-01-09 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209134', 'tblTempVendorCDR_20' ) start [2025-01-09 11:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209134', 'tblTempVendorCDR_20' ) end [2025-01-09 11:01:26] Production.INFO: ProcessCDR(1,14209134,1,1,2) [2025-01-09 11:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209134', 'tblTempUsageDetail_20' ) start [2025-01-09 11:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209134', 'tblTempUsageDetail_20' ) end [2025-01-09 11:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:01:30] Production.INFO: ==19514== Releasing lock... [2025-01-09 11:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:01:30] Production.INFO: 56 MB #Memory Used# [2025-01-09 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:02:05 [end_date_ymd] => 2025-01-09 11:02:05 [RateCDR] => 1 ) [2025-01-09 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:02:05' and `end` < '2025-01-09 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:02:25] Production.INFO: count ==3779 [2025-01-09 11:02:26] Production.ERROR: pbx CDR StartTime 2025-01-09 08:02:05 - End Time 2025-01-09 11:02:05 [2025-01-09 11:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209139', 'tblTempUsageDetail_20' ) start [2025-01-09 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209139', 'tblTempUsageDetail_20' ) end [2025-01-09 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209139', 'tblTempVendorCDR_20' ) start [2025-01-09 11:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209139', 'tblTempVendorCDR_20' ) end [2025-01-09 11:02:26] Production.INFO: ProcessCDR(1,14209139,1,1,2) [2025-01-09 11:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:02:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:02:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:02:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209139', 'tblTempUsageDetail_20' ) start [2025-01-09 11:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209139', 'tblTempUsageDetail_20' ) end [2025-01-09 11:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:02:31] Production.INFO: ==19583== Releasing lock... [2025-01-09 11:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:02:31] Production.INFO: 56.25 MB #Memory Used# [2025-01-09 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:03:05 [end_date_ymd] => 2025-01-09 11:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:03:05' and `end` < '2025-01-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-01-09 11:03:28] Production.INFO: count ==3794 [2025-01-09 11:03:30] Production.ERROR: pbx CDR StartTime 2025-01-09 08:03:05 - End Time 2025-01-09 11:03:05 [2025-01-09 11:03:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209144', 'tblTempUsageDetail_20' ) start [2025-01-09 11:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209144', 'tblTempUsageDetail_20' ) end [2025-01-09 11:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209144', 'tblTempVendorCDR_20' ) start [2025-01-09 11:03:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209144', 'tblTempVendorCDR_20' ) end [2025-01-09 11:03:30] Production.INFO: ProcessCDR(1,14209144,1,1,2) [2025-01-09 11:03:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209144', 'tblTempUsageDetail_20' ) start [2025-01-09 11:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209144', 'tblTempUsageDetail_20' ) end [2025-01-09 11:03:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:03:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:03:34] Production.INFO: ==19653== Releasing lock... [2025-01-09 11:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:03:34] Production.INFO: 56.5 MB #Memory Used# [2025-01-09 11:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:04:04 [end_date_ymd] => 2025-01-09 11:04:04 [RateCDR] => 1 ) [2025-01-09 11:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:04:04' and `end` < '2025-01-09 11:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:04:25] Production.INFO: count ==3806 [2025-01-09 11:04:27] Production.ERROR: pbx CDR StartTime 2025-01-09 08:04:04 - End Time 2025-01-09 11:04:04 [2025-01-09 11:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209149', 'tblTempUsageDetail_20' ) start [2025-01-09 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209149', 'tblTempUsageDetail_20' ) end [2025-01-09 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209149', 'tblTempVendorCDR_20' ) start [2025-01-09 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209149', 'tblTempVendorCDR_20' ) end [2025-01-09 11:04:27] Production.INFO: ProcessCDR(1,14209149,1,1,2) [2025-01-09 11:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209149', 'tblTempUsageDetail_20' ) start [2025-01-09 11:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209149', 'tblTempUsageDetail_20' ) end [2025-01-09 11:04:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:04:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:04:32] Production.INFO: ==19723== Releasing lock... [2025-01-09 11:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:04:32] Production.INFO: 56.5 MB #Memory Used# [2025-01-09 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:05:05 [end_date_ymd] => 2025-01-09 11:05:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:05:05' and `end` < '2025-01-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-01-09 11:05:25] Production.INFO: count ==3823 [2025-01-09 11:05:26] Production.ERROR: pbx CDR StartTime 2025-01-09 08:05:05 - End Time 2025-01-09 11:05:05 [2025-01-09 11:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209154', 'tblTempUsageDetail_20' ) start [2025-01-09 11:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209154', 'tblTempUsageDetail_20' ) end [2025-01-09 11:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209154', 'tblTempVendorCDR_20' ) start [2025-01-09 11:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209154', 'tblTempVendorCDR_20' ) end [2025-01-09 11:05:26] Production.INFO: ProcessCDR(1,14209154,1,1,2) [2025-01-09 11:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:05:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:05:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209154', 'tblTempUsageDetail_20' ) start [2025-01-09 11:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209154', 'tblTempUsageDetail_20' ) end [2025-01-09 11:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:05:31] Production.INFO: ==19873== Releasing lock... [2025-01-09 11:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:05:31] Production.INFO: 56.75 MB #Memory Used# [2025-01-09 11:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:06:04 [end_date_ymd] => 2025-01-09 11:06:04 [RateCDR] => 1 ) [2025-01-09 11:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:06:04' and `end` < '2025-01-09 11:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:06:18] Production.INFO: count ==3822 [2025-01-09 11:06:20] Production.ERROR: pbx CDR StartTime 2025-01-09 08:06:04 - End Time 2025-01-09 11:06:04 [2025-01-09 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209159', 'tblTempUsageDetail_20' ) start [2025-01-09 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209159', 'tblTempUsageDetail_20' ) end [2025-01-09 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209159', 'tblTempVendorCDR_20' ) start [2025-01-09 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209159', 'tblTempVendorCDR_20' ) end [2025-01-09 11:06:20] Production.INFO: ProcessCDR(1,14209159,1,1,2) [2025-01-09 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209159', 'tblTempUsageDetail_20' ) start [2025-01-09 11:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209159', 'tblTempUsageDetail_20' ) end [2025-01-09 11:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:06:24] Production.INFO: ==19943== Releasing lock... [2025-01-09 11:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:06:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-09 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:07:05 [end_date_ymd] => 2025-01-09 11:07:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:07:05' and `end` < '2025-01-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-01-09 11:07:24] Production.INFO: count ==3832 [2025-01-09 11:07:25] Production.ERROR: pbx CDR StartTime 2025-01-09 08:07:05 - End Time 2025-01-09 11:07:05 [2025-01-09 11:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209164', 'tblTempUsageDetail_20' ) start [2025-01-09 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209164', 'tblTempUsageDetail_20' ) end [2025-01-09 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209164', 'tblTempVendorCDR_20' ) start [2025-01-09 11:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209164', 'tblTempVendorCDR_20' ) end [2025-01-09 11:07:26] Production.INFO: ProcessCDR(1,14209164,1,1,2) [2025-01-09 11:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209164', 'tblTempUsageDetail_20' ) start [2025-01-09 11:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209164', 'tblTempUsageDetail_20' ) end [2025-01-09 11:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:07:30] Production.INFO: ==20012== Releasing lock... [2025-01-09 11:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:07:30] Production.INFO: 56.75 MB #Memory Used# [2025-01-09 11:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:08:04 [end_date_ymd] => 2025-01-09 11:08:04 [RateCDR] => 1 ) [2025-01-09 11:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:08:04' and `end` < '2025-01-09 11:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:08:18] Production.INFO: count ==3834 [2025-01-09 11:08:20] Production.ERROR: pbx CDR StartTime 2025-01-09 08:08:04 - End Time 2025-01-09 11:08:04 [2025-01-09 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209169', 'tblTempUsageDetail_20' ) start [2025-01-09 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209169', 'tblTempUsageDetail_20' ) end [2025-01-09 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209169', 'tblTempVendorCDR_20' ) start [2025-01-09 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209169', 'tblTempVendorCDR_20' ) end [2025-01-09 11:08:20] Production.INFO: ProcessCDR(1,14209169,1,1,2) [2025-01-09 11:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209169', 'tblTempUsageDetail_20' ) start [2025-01-09 11:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209169', 'tblTempUsageDetail_20' ) end [2025-01-09 11:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:08:24] Production.INFO: ==20164== Releasing lock... [2025-01-09 11:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:08:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-09 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:09:05 [end_date_ymd] => 2025-01-09 11:09:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:09:05' and `end` < '2025-01-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-01-09 11:09:23] Production.INFO: count ==3831 [2025-01-09 11:09:25] Production.ERROR: pbx CDR StartTime 2025-01-09 08:09:05 - End Time 2025-01-09 11:09:05 [2025-01-09 11:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209174', 'tblTempUsageDetail_20' ) start [2025-01-09 11:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209174', 'tblTempUsageDetail_20' ) end [2025-01-09 11:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209174', 'tblTempVendorCDR_20' ) start [2025-01-09 11:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209174', 'tblTempVendorCDR_20' ) end [2025-01-09 11:09:25] Production.INFO: ProcessCDR(1,14209174,1,1,2) [2025-01-09 11:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209174', 'tblTempUsageDetail_20' ) start [2025-01-09 11:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209174', 'tblTempUsageDetail_20' ) end [2025-01-09 11:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:09:29] Production.INFO: ==20235== Releasing lock... [2025-01-09 11:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:09:29] Production.INFO: 56.75 MB #Memory Used# [2025-01-09 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:10:05 [end_date_ymd] => 2025-01-09 11:10:05 [RateCDR] => 1 ) [2025-01-09 11:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:10:05' and `end` < '2025-01-09 11:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:10:27] Production.INFO: count ==3839 [2025-01-09 11:10:29] Production.ERROR: pbx CDR StartTime 2025-01-09 08:10:05 - End Time 2025-01-09 11:10:05 [2025-01-09 11:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209179', 'tblTempUsageDetail_20' ) start [2025-01-09 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209179', 'tblTempUsageDetail_20' ) end [2025-01-09 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209179', 'tblTempVendorCDR_20' ) start [2025-01-09 11:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209179', 'tblTempVendorCDR_20' ) end [2025-01-09 11:10:29] Production.INFO: ProcessCDR(1,14209179,1,1,2) [2025-01-09 11:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209179', 'tblTempUsageDetail_20' ) start [2025-01-09 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209179', 'tblTempUsageDetail_20' ) end [2025-01-09 11:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:10:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:10:33] Production.INFO: ==20309== Releasing lock... [2025-01-09 11:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:10:33] Production.INFO: 56.75 MB #Memory Used# [2025-01-09 11:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:11:04 [end_date_ymd] => 2025-01-09 11:11:04 [RateCDR] => 1 ) [2025-01-09 11:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:11:04' and `end` < '2025-01-09 11:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:11:19] Production.INFO: count ==3889 [2025-01-09 11:11:21] Production.ERROR: pbx CDR StartTime 2025-01-09 08:11:04 - End Time 2025-01-09 11:11:04 [2025-01-09 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209185', 'tblTempUsageDetail_20' ) start [2025-01-09 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209185', 'tblTempUsageDetail_20' ) end [2025-01-09 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209185', 'tblTempVendorCDR_20' ) start [2025-01-09 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209185', 'tblTempVendorCDR_20' ) end [2025-01-09 11:11:21] Production.INFO: ProcessCDR(1,14209185,1,1,2) [2025-01-09 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209185', 'tblTempUsageDetail_20' ) start [2025-01-09 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209185', 'tblTempUsageDetail_20' ) end [2025-01-09 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:11:25] Production.INFO: ==20382== Releasing lock... [2025-01-09 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:11:25] Production.INFO: 57 MB #Memory Used# [2025-01-09 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:12:05 [end_date_ymd] => 2025-01-09 11:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:12:05' and `end` < '2025-01-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-01-09 11:12:26] Production.INFO: count ==3905 [2025-01-09 11:12:27] Production.ERROR: pbx CDR StartTime 2025-01-09 08:12:05 - End Time 2025-01-09 11:12:05 [2025-01-09 11:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209190', 'tblTempUsageDetail_20' ) start [2025-01-09 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209190', 'tblTempUsageDetail_20' ) end [2025-01-09 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209190', 'tblTempVendorCDR_20' ) start [2025-01-09 11:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209190', 'tblTempVendorCDR_20' ) end [2025-01-09 11:12:28] Production.INFO: ProcessCDR(1,14209190,1,1,2) [2025-01-09 11:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209190', 'tblTempUsageDetail_20' ) start [2025-01-09 11:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209190', 'tblTempUsageDetail_20' ) end [2025-01-09 11:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:12:32] Production.INFO: ==20530== Releasing lock... [2025-01-09 11:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:12:32] Production.INFO: 57.25 MB #Memory Used# [2025-01-09 11:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:13:04 [end_date_ymd] => 2025-01-09 11:13:04 [RateCDR] => 1 ) [2025-01-09 11:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:13:04' and `end` < '2025-01-09 11:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:13:23] Production.INFO: count ==3932 [2025-01-09 11:13:25] Production.ERROR: pbx CDR StartTime 2025-01-09 08:13:04 - End Time 2025-01-09 11:13:04 [2025-01-09 11:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209195', 'tblTempUsageDetail_20' ) start [2025-01-09 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209195', 'tblTempUsageDetail_20' ) end [2025-01-09 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209195', 'tblTempVendorCDR_20' ) start [2025-01-09 11:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209195', 'tblTempVendorCDR_20' ) end [2025-01-09 11:13:25] Production.INFO: ProcessCDR(1,14209195,1,1,2) [2025-01-09 11:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209195', 'tblTempUsageDetail_20' ) start [2025-01-09 11:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209195', 'tblTempUsageDetail_20' ) end [2025-01-09 11:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:13:30] Production.INFO: ==20599== Releasing lock... [2025-01-09 11:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:13:30] Production.INFO: 57.25 MB #Memory Used# [2025-01-09 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:14:05 [end_date_ymd] => 2025-01-09 11:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:14:05' and `end` < '2025-01-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-01-09 11:14:32] Production.INFO: count ==3947 [2025-01-09 11:14:34] Production.ERROR: pbx CDR StartTime 2025-01-09 08:14:05 - End Time 2025-01-09 11:14:05 [2025-01-09 11:14:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209200', 'tblTempUsageDetail_20' ) start [2025-01-09 11:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209200', 'tblTempUsageDetail_20' ) end [2025-01-09 11:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209200', 'tblTempVendorCDR_20' ) start [2025-01-09 11:14:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209200', 'tblTempVendorCDR_20' ) end [2025-01-09 11:14:34] Production.INFO: ProcessCDR(1,14209200,1,1,2) [2025-01-09 11:14:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:14:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:14:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:14:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:14:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209200', 'tblTempUsageDetail_20' ) start [2025-01-09 11:14:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209200', 'tblTempUsageDetail_20' ) end [2025-01-09 11:14:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:14:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:14:39] Production.INFO: ==20671== Releasing lock... [2025-01-09 11:14:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:14:39] Production.INFO: 57.5 MB #Memory Used# [2025-01-09 11:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:15:04 [end_date_ymd] => 2025-01-09 11:15:04 [RateCDR] => 1 ) [2025-01-09 11:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:15:04' and `end` < '2025-01-09 11:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:15:30] Production.INFO: count ==3944 [2025-01-09 11:15:31] Production.ERROR: pbx CDR StartTime 2025-01-09 08:15:04 - End Time 2025-01-09 11:15:04 [2025-01-09 11:15:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209205', 'tblTempUsageDetail_20' ) start [2025-01-09 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209205', 'tblTempUsageDetail_20' ) end [2025-01-09 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209205', 'tblTempVendorCDR_20' ) start [2025-01-09 11:15:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209205', 'tblTempVendorCDR_20' ) end [2025-01-09 11:15:31] Production.INFO: ProcessCDR(1,14209205,1,1,2) [2025-01-09 11:15:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:15:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209205', 'tblTempUsageDetail_20' ) start [2025-01-09 11:15:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209205', 'tblTempUsageDetail_20' ) end [2025-01-09 11:15:36] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:15:36] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:15:36] Production.INFO: ==20857== Releasing lock... [2025-01-09 11:15:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:15:36] Production.INFO: 57.5 MB #Memory Used# [2025-01-09 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:16:05 [end_date_ymd] => 2025-01-09 11:16:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:16:05' and `end` < '2025-01-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-01-09 11:16:23] Production.INFO: count ==3957 [2025-01-09 11:16:25] Production.ERROR: pbx CDR StartTime 2025-01-09 08:16:05 - End Time 2025-01-09 11:16:05 [2025-01-09 11:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209210', 'tblTempUsageDetail_20' ) start [2025-01-09 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209210', 'tblTempUsageDetail_20' ) end [2025-01-09 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209210', 'tblTempVendorCDR_20' ) start [2025-01-09 11:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209210', 'tblTempVendorCDR_20' ) end [2025-01-09 11:16:25] Production.INFO: ProcessCDR(1,14209210,1,1,2) [2025-01-09 11:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209210', 'tblTempUsageDetail_20' ) start [2025-01-09 11:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209210', 'tblTempUsageDetail_20' ) end [2025-01-09 11:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:16:30] Production.INFO: ==20928== Releasing lock... [2025-01-09 11:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:16:30] Production.INFO: 57.5 MB #Memory Used# [2025-01-09 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:17:04 [end_date_ymd] => 2025-01-09 11:17:04 [RateCDR] => 1 ) [2025-01-09 11:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:17:04' and `end` < '2025-01-09 11:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:17:27] Production.INFO: count ==3974 [2025-01-09 11:17:28] Production.ERROR: pbx CDR StartTime 2025-01-09 08:17:04 - End Time 2025-01-09 11:17:04 [2025-01-09 11:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209215', 'tblTempUsageDetail_20' ) start [2025-01-09 11:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209215', 'tblTempUsageDetail_20' ) end [2025-01-09 11:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209215', 'tblTempVendorCDR_20' ) start [2025-01-09 11:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209215', 'tblTempVendorCDR_20' ) end [2025-01-09 11:17:28] Production.INFO: ProcessCDR(1,14209215,1,1,2) [2025-01-09 11:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209215', 'tblTempUsageDetail_20' ) start [2025-01-09 11:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209215', 'tblTempUsageDetail_20' ) end [2025-01-09 11:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:17:33] Production.INFO: ==20999== Releasing lock... [2025-01-09 11:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:17:33] Production.INFO: 57.75 MB #Memory Used# [2025-01-09 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:18:05 [end_date_ymd] => 2025-01-09 11:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:18:05' and `end` < '2025-01-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-01-09 11:18:23] Production.INFO: count ==4004 [2025-01-09 11:18:25] Production.ERROR: pbx CDR StartTime 2025-01-09 08:18:05 - End Time 2025-01-09 11:18:05 [2025-01-09 11:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209220', 'tblTempUsageDetail_20' ) start [2025-01-09 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209220', 'tblTempUsageDetail_20' ) end [2025-01-09 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209220', 'tblTempVendorCDR_20' ) start [2025-01-09 11:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209220', 'tblTempVendorCDR_20' ) end [2025-01-09 11:18:25] Production.INFO: ProcessCDR(1,14209220,1,1,2) [2025-01-09 11:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209220', 'tblTempUsageDetail_20' ) start [2025-01-09 11:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209220', 'tblTempUsageDetail_20' ) end [2025-01-09 11:18:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:18:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:18:30] Production.INFO: ==21069== Releasing lock... [2025-01-09 11:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:18:30] Production.INFO: 58 MB #Memory Used# [2025-01-09 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:19:04 [end_date_ymd] => 2025-01-09 11:19:04 [RateCDR] => 1 ) [2025-01-09 11:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:19:04' and `end` < '2025-01-09 11:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:19:20] Production.INFO: count ==4022 [2025-01-09 11:19:22] Production.ERROR: pbx CDR StartTime 2025-01-09 08:19:04 - End Time 2025-01-09 11:19:04 [2025-01-09 11:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209225', 'tblTempUsageDetail_20' ) start [2025-01-09 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209225', 'tblTempUsageDetail_20' ) end [2025-01-09 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209225', 'tblTempVendorCDR_20' ) start [2025-01-09 11:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209225', 'tblTempVendorCDR_20' ) end [2025-01-09 11:19:22] Production.INFO: ProcessCDR(1,14209225,1,1,2) [2025-01-09 11:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209225', 'tblTempUsageDetail_20' ) start [2025-01-09 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209225', 'tblTempUsageDetail_20' ) end [2025-01-09 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:19:26] Production.INFO: ==21141== Releasing lock... [2025-01-09 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:19:26] Production.INFO: 58 MB #Memory Used# [2025-01-09 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:20:06 [end_date_ymd] => 2025-01-09 11:20:06 [RateCDR] => 1 ) [2025-01-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-01-09 08:20:06' and `end` < '2025-01-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-01-09 11:20:28] Production.INFO: count ==4024 [2025-01-09 11:20:30] Production.ERROR: pbx CDR StartTime 2025-01-09 08:20:06 - End Time 2025-01-09 11:20:06 [2025-01-09 11:20:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209230', 'tblTempUsageDetail_20' ) start [2025-01-09 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209230', 'tblTempUsageDetail_20' ) end [2025-01-09 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209230', 'tblTempVendorCDR_20' ) start [2025-01-09 11:20:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209230', 'tblTempVendorCDR_20' ) end [2025-01-09 11:20:30] Production.INFO: ProcessCDR(1,14209230,1,1,2) [2025-01-09 11:20:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:20:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:20:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:20:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:20:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209230', 'tblTempUsageDetail_20' ) start [2025-01-09 11:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209230', 'tblTempUsageDetail_20' ) end [2025-01-09 11:20:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:20:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:20:35] Production.INFO: ==21215== Releasing lock... [2025-01-09 11:20:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:20:35] Production.INFO: 58 MB #Memory Used# [2025-01-09 11:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:21:04 [end_date_ymd] => 2025-01-09 11:21:04 [RateCDR] => 1 ) [2025-01-09 11:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:21:04' and `end` < '2025-01-09 11:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:21:24] Production.INFO: count ==4095 [2025-01-09 11:21:25] Production.ERROR: pbx CDR StartTime 2025-01-09 08:21:04 - End Time 2025-01-09 11:21:04 [2025-01-09 11:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209236', 'tblTempUsageDetail_20' ) start [2025-01-09 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209236', 'tblTempUsageDetail_20' ) end [2025-01-09 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209236', 'tblTempVendorCDR_20' ) start [2025-01-09 11:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209236', 'tblTempVendorCDR_20' ) end [2025-01-09 11:21:25] Production.INFO: ProcessCDR(1,14209236,1,1,2) [2025-01-09 11:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209236', 'tblTempUsageDetail_20' ) start [2025-01-09 11:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209236', 'tblTempUsageDetail_20' ) end [2025-01-09 11:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:21:30] Production.INFO: ==21288== Releasing lock... [2025-01-09 11:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:21:30] Production.INFO: 58.5 MB #Memory Used# [2025-01-09 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:22:05 [end_date_ymd] => 2025-01-09 11:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:22:05' and `end` < '2025-01-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-01-09 11:22:24] Production.INFO: count ==4099 [2025-01-09 11:22:26] Production.ERROR: pbx CDR StartTime 2025-01-09 08:22:05 - End Time 2025-01-09 11:22:05 [2025-01-09 11:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209241', 'tblTempUsageDetail_20' ) start [2025-01-09 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209241', 'tblTempUsageDetail_20' ) end [2025-01-09 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209241', 'tblTempVendorCDR_20' ) start [2025-01-09 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209241', 'tblTempVendorCDR_20' ) end [2025-01-09 11:22:26] Production.INFO: ProcessCDR(1,14209241,1,1,2) [2025-01-09 11:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:22:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:22:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:22:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209241', 'tblTempUsageDetail_20' ) start [2025-01-09 11:22:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209241', 'tblTempUsageDetail_20' ) end [2025-01-09 11:22:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:22:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:22:30] Production.INFO: ==21365== Releasing lock... [2025-01-09 11:22:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:22:30] Production.INFO: 58.75 MB #Memory Used# [2025-01-09 11:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:23:04 [end_date_ymd] => 2025-01-09 11:23:04 [RateCDR] => 1 ) [2025-01-09 11:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:23:04' and `end` < '2025-01-09 11:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:23:22] Production.INFO: count ==4112 [2025-01-09 11:23:24] Production.ERROR: pbx CDR StartTime 2025-01-09 08:23:04 - End Time 2025-01-09 11:23:04 [2025-01-09 11:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209246', 'tblTempUsageDetail_20' ) start [2025-01-09 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209246', 'tblTempUsageDetail_20' ) end [2025-01-09 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209246', 'tblTempVendorCDR_20' ) start [2025-01-09 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209246', 'tblTempVendorCDR_20' ) end [2025-01-09 11:23:24] Production.INFO: ProcessCDR(1,14209246,1,1,2) [2025-01-09 11:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209246', 'tblTempUsageDetail_20' ) start [2025-01-09 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209246', 'tblTempUsageDetail_20' ) end [2025-01-09 11:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:23:28] Production.INFO: ==21438== Releasing lock... [2025-01-09 11:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:23:28] Production.INFO: 58.75 MB #Memory Used# [2025-01-09 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:24:05 [end_date_ymd] => 2025-01-09 11:24:05 [RateCDR] => 1 ) [2025-01-09 11:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:24:05' and `end` < '2025-01-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-01-09 11:24:25] Production.INFO: count ==4124 [2025-01-09 11:24:26] Production.ERROR: pbx CDR StartTime 2025-01-09 08:24:05 - End Time 2025-01-09 11:24:05 [2025-01-09 11:24:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209251', 'tblTempUsageDetail_20' ) start [2025-01-09 11:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209251', 'tblTempUsageDetail_20' ) end [2025-01-09 11:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209251', 'tblTempVendorCDR_20' ) start [2025-01-09 11:24:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209251', 'tblTempVendorCDR_20' ) end [2025-01-09 11:24:26] Production.INFO: ProcessCDR(1,14209251,1,1,2) [2025-01-09 11:24:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:24:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:24:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:24:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209251', 'tblTempUsageDetail_20' ) start [2025-01-09 11:24:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209251', 'tblTempUsageDetail_20' ) end [2025-01-09 11:24:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:24:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:24:31] Production.INFO: ==21513== Releasing lock... [2025-01-09 11:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:24:31] Production.INFO: 58.75 MB #Memory Used# [2025-01-09 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:25:05 [end_date_ymd] => 2025-01-09 11:25:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:25:05' and `end` < '2025-01-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-01-09 11:25:25] Production.INFO: count ==4135 [2025-01-09 11:25:26] Production.ERROR: pbx CDR StartTime 2025-01-09 08:25:05 - End Time 2025-01-09 11:25:05 [2025-01-09 11:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209256', 'tblTempUsageDetail_20' ) start [2025-01-09 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209256', 'tblTempUsageDetail_20' ) end [2025-01-09 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209256', 'tblTempVendorCDR_20' ) start [2025-01-09 11:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209256', 'tblTempVendorCDR_20' ) end [2025-01-09 11:25:27] Production.INFO: ProcessCDR(1,14209256,1,1,2) [2025-01-09 11:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209256', 'tblTempUsageDetail_20' ) start [2025-01-09 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209256', 'tblTempUsageDetail_20' ) end [2025-01-09 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:25:31] Production.INFO: ==21585== Releasing lock... [2025-01-09 11:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:25:31] Production.INFO: 59 MB #Memory Used# [2025-01-09 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:26:05 [end_date_ymd] => 2025-01-09 11:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:26:05' and `end` < '2025-01-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-01-09 11:26:19] Production.INFO: count ==4146 [2025-01-09 11:26:20] Production.ERROR: pbx CDR StartTime 2025-01-09 08:26:05 - End Time 2025-01-09 11:26:05 [2025-01-09 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209261', 'tblTempUsageDetail_20' ) start [2025-01-09 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209261', 'tblTempUsageDetail_20' ) end [2025-01-09 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209261', 'tblTempVendorCDR_20' ) start [2025-01-09 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209261', 'tblTempVendorCDR_20' ) end [2025-01-09 11:26:21] Production.INFO: ProcessCDR(1,14209261,1,1,2) [2025-01-09 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209261', 'tblTempUsageDetail_20' ) start [2025-01-09 11:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209261', 'tblTempUsageDetail_20' ) end [2025-01-09 11:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:26:25] Production.INFO: ==21655== Releasing lock... [2025-01-09 11:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:26:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-09 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:27:05 [end_date_ymd] => 2025-01-09 11:27:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:27:05' and `end` < '2025-01-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-01-09 11:27:35] Production.INFO: count ==4182 [2025-01-09 11:27:37] Production.ERROR: pbx CDR StartTime 2025-01-09 08:27:05 - End Time 2025-01-09 11:27:05 [2025-01-09 11:27:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209266', 'tblTempUsageDetail_20' ) start [2025-01-09 11:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209266', 'tblTempUsageDetail_20' ) end [2025-01-09 11:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209266', 'tblTempVendorCDR_20' ) start [2025-01-09 11:27:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209266', 'tblTempVendorCDR_20' ) end [2025-01-09 11:27:37] Production.INFO: ProcessCDR(1,14209266,1,1,2) [2025-01-09 11:27:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:27:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:27:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:27:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:27:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209266', 'tblTempUsageDetail_20' ) start [2025-01-09 11:27:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209266', 'tblTempUsageDetail_20' ) end [2025-01-09 11:27:41] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:27:42] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:27:42] Production.INFO: ==21726== Releasing lock... [2025-01-09 11:27:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:27:42] Production.INFO: 59.25 MB #Memory Used# [2025-01-09 11:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:28:04 [end_date_ymd] => 2025-01-09 11:28:04 [RateCDR] => 1 ) [2025-01-09 11:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:28:04' and `end` < '2025-01-09 11:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:28:28] Production.INFO: count ==4207 [2025-01-09 11:28:29] Production.ERROR: pbx CDR StartTime 2025-01-09 08:28:04 - End Time 2025-01-09 11:28:04 [2025-01-09 11:28:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209271', 'tblTempUsageDetail_20' ) start [2025-01-09 11:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209271', 'tblTempUsageDetail_20' ) end [2025-01-09 11:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209271', 'tblTempVendorCDR_20' ) start [2025-01-09 11:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209271', 'tblTempVendorCDR_20' ) end [2025-01-09 11:28:30] Production.INFO: ProcessCDR(1,14209271,1,1,2) [2025-01-09 11:28:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:28:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:28:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:28:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209271', 'tblTempUsageDetail_20' ) start [2025-01-09 11:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209271', 'tblTempUsageDetail_20' ) end [2025-01-09 11:28:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:28:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:28:34] Production.INFO: ==21799== Releasing lock... [2025-01-09 11:28:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:28:34] Production.INFO: 59.5 MB #Memory Used# [2025-01-09 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:29:05 [end_date_ymd] => 2025-01-09 11:29:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:29:05' and `end` < '2025-01-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-01-09 11:29:22] Production.INFO: count ==4242 [2025-01-09 11:29:24] Production.ERROR: pbx CDR StartTime 2025-01-09 08:29:05 - End Time 2025-01-09 11:29:05 [2025-01-09 11:29:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209276', 'tblTempUsageDetail_20' ) start [2025-01-09 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209276', 'tblTempUsageDetail_20' ) end [2025-01-09 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209276', 'tblTempVendorCDR_20' ) start [2025-01-09 11:29:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209276', 'tblTempVendorCDR_20' ) end [2025-01-09 11:29:24] Production.INFO: ProcessCDR(1,14209276,1,1,2) [2025-01-09 11:29:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209276', 'tblTempUsageDetail_20' ) start [2025-01-09 11:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209276', 'tblTempUsageDetail_20' ) end [2025-01-09 11:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:29:29] Production.INFO: ==21870== Releasing lock... [2025-01-09 11:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:29:29] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:30:05 [end_date_ymd] => 2025-01-09 11:30:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:30:05' and `end` < '2025-01-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-01-09 11:30:24] Production.INFO: count ==4249 [2025-01-09 11:30:26] Production.ERROR: pbx CDR StartTime 2025-01-09 08:30:05 - End Time 2025-01-09 11:30:05 [2025-01-09 11:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209281', 'tblTempUsageDetail_20' ) start [2025-01-09 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209281', 'tblTempUsageDetail_20' ) end [2025-01-09 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209281', 'tblTempVendorCDR_20' ) start [2025-01-09 11:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209281', 'tblTempVendorCDR_20' ) end [2025-01-09 11:30:26] Production.INFO: ProcessCDR(1,14209281,1,1,2) [2025-01-09 11:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:30:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:30:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:30:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209281', 'tblTempUsageDetail_20' ) start [2025-01-09 11:30:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209281', 'tblTempUsageDetail_20' ) end [2025-01-09 11:30:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:30:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:30:30] Production.INFO: ==21981== Releasing lock... [2025-01-09 11:30:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:30:30] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:31:04 [end_date_ymd] => 2025-01-09 11:31:04 [RateCDR] => 1 ) [2025-01-09 11:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:31:04' and `end` < '2025-01-09 11:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:31:21] Production.INFO: count ==4324 [2025-01-09 11:31:23] Production.ERROR: pbx CDR StartTime 2025-01-09 08:31:04 - End Time 2025-01-09 11:31:04 [2025-01-09 11:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209287', 'tblTempUsageDetail_20' ) start [2025-01-09 11:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209287', 'tblTempUsageDetail_20' ) end [2025-01-09 11:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209287', 'tblTempVendorCDR_20' ) start [2025-01-09 11:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209287', 'tblTempVendorCDR_20' ) end [2025-01-09 11:31:23] Production.INFO: ProcessCDR(1,14209287,1,1,2) [2025-01-09 11:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209287', 'tblTempUsageDetail_20' ) start [2025-01-09 11:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209287', 'tblTempUsageDetail_20' ) end [2025-01-09 11:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:31:28] Production.INFO: ==22056== Releasing lock... [2025-01-09 11:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:31:28] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:32:05 [end_date_ymd] => 2025-01-09 11:32:05 [RateCDR] => 1 ) [2025-01-09 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:32:05' and `end` < '2025-01-09 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:32:30] Production.INFO: count ==4326 [2025-01-09 11:32:31] Production.ERROR: pbx CDR StartTime 2025-01-09 08:32:05 - End Time 2025-01-09 11:32:05 [2025-01-09 11:32:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209292', 'tblTempUsageDetail_20' ) start [2025-01-09 11:32:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209292', 'tblTempUsageDetail_20' ) end [2025-01-09 11:32:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209292', 'tblTempVendorCDR_20' ) start [2025-01-09 11:32:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209292', 'tblTempVendorCDR_20' ) end [2025-01-09 11:32:32] Production.INFO: ProcessCDR(1,14209292,1,1,2) [2025-01-09 11:32:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:32:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:32:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:32:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209292', 'tblTempUsageDetail_20' ) start [2025-01-09 11:32:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209292', 'tblTempUsageDetail_20' ) end [2025-01-09 11:32:36] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:32:36] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:32:36] Production.INFO: ==22126== Releasing lock... [2025-01-09 11:32:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:32:36] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:33:05 [end_date_ymd] => 2025-01-09 11:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:33:05' and `end` < '2025-01-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-01-09 11:33:20] Production.INFO: count ==4317 [2025-01-09 11:33:22] Production.ERROR: pbx CDR StartTime 2025-01-09 08:33:05 - End Time 2025-01-09 11:33:05 [2025-01-09 11:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209297', 'tblTempUsageDetail_20' ) start [2025-01-09 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209297', 'tblTempUsageDetail_20' ) end [2025-01-09 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209297', 'tblTempVendorCDR_20' ) start [2025-01-09 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209297', 'tblTempVendorCDR_20' ) end [2025-01-09 11:33:22] Production.INFO: ProcessCDR(1,14209297,1,1,2) [2025-01-09 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209297', 'tblTempUsageDetail_20' ) start [2025-01-09 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209297', 'tblTempUsageDetail_20' ) end [2025-01-09 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:33:26] Production.INFO: ==22197== Releasing lock... [2025-01-09 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:33:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:34:05 [end_date_ymd] => 2025-01-09 11:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:34:05' and `end` < '2025-01-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-01-09 11:34:21] Production.INFO: count ==4326 [2025-01-09 11:34:23] Production.ERROR: pbx CDR StartTime 2025-01-09 08:34:05 - End Time 2025-01-09 11:34:05 [2025-01-09 11:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209302', 'tblTempUsageDetail_20' ) start [2025-01-09 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209302', 'tblTempUsageDetail_20' ) end [2025-01-09 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209302', 'tblTempVendorCDR_20' ) start [2025-01-09 11:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209302', 'tblTempVendorCDR_20' ) end [2025-01-09 11:34:23] Production.INFO: ProcessCDR(1,14209302,1,1,2) [2025-01-09 11:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209302', 'tblTempUsageDetail_20' ) start [2025-01-09 11:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209302', 'tblTempUsageDetail_20' ) end [2025-01-09 11:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:34:28] Production.INFO: ==22272== Releasing lock... [2025-01-09 11:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:34:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:35:04 [end_date_ymd] => 2025-01-09 11:35:04 [RateCDR] => 1 ) [2025-01-09 11:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:35:04' and `end` < '2025-01-09 11:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:35:27] Production.INFO: count ==4337 [2025-01-09 11:35:29] Production.ERROR: pbx CDR StartTime 2025-01-09 08:35:04 - End Time 2025-01-09 11:35:04 [2025-01-09 11:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209307', 'tblTempUsageDetail_20' ) start [2025-01-09 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209307', 'tblTempUsageDetail_20' ) end [2025-01-09 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209307', 'tblTempVendorCDR_20' ) start [2025-01-09 11:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209307', 'tblTempVendorCDR_20' ) end [2025-01-09 11:35:29] Production.INFO: ProcessCDR(1,14209307,1,1,2) [2025-01-09 11:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209307', 'tblTempUsageDetail_20' ) start [2025-01-09 11:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209307', 'tblTempUsageDetail_20' ) end [2025-01-09 11:35:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:35:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:35:34] Production.INFO: ==22341== Releasing lock... [2025-01-09 11:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:35:34] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 11:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:36:04 [end_date_ymd] => 2025-01-09 11:36:04 [RateCDR] => 1 ) [2025-01-09 11:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:36:04' and `end` < '2025-01-09 11:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:36:26] Production.INFO: count ==4358 [2025-01-09 11:36:28] Production.ERROR: pbx CDR StartTime 2025-01-09 08:36:04 - End Time 2025-01-09 11:36:04 [2025-01-09 11:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209312', 'tblTempUsageDetail_20' ) start [2025-01-09 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209312', 'tblTempUsageDetail_20' ) end [2025-01-09 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209312', 'tblTempVendorCDR_20' ) start [2025-01-09 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209312', 'tblTempVendorCDR_20' ) end [2025-01-09 11:36:28] Production.INFO: ProcessCDR(1,14209312,1,1,2) [2025-01-09 11:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209312', 'tblTempUsageDetail_20' ) start [2025-01-09 11:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209312', 'tblTempUsageDetail_20' ) end [2025-01-09 11:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:36:32] Production.INFO: ==22414== Releasing lock... [2025-01-09 11:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:36:32] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:37:05 [end_date_ymd] => 2025-01-09 11:37:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:37:05' and `end` < '2025-01-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-01-09 11:37:23] Production.INFO: count ==4372 [2025-01-09 11:37:24] Production.ERROR: pbx CDR StartTime 2025-01-09 08:37:05 - End Time 2025-01-09 11:37:05 [2025-01-09 11:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209317', 'tblTempUsageDetail_20' ) start [2025-01-09 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209317', 'tblTempUsageDetail_20' ) end [2025-01-09 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209317', 'tblTempVendorCDR_20' ) start [2025-01-09 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209317', 'tblTempVendorCDR_20' ) end [2025-01-09 11:37:25] Production.INFO: ProcessCDR(1,14209317,1,1,2) [2025-01-09 11:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209317', 'tblTempUsageDetail_20' ) start [2025-01-09 11:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209317', 'tblTempUsageDetail_20' ) end [2025-01-09 11:37:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:37:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:37:29] Production.INFO: ==22492== Releasing lock... [2025-01-09 11:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:37:29] Production.INFO: 60.75 MB #Memory Used# [2025-01-09 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:38:05 [end_date_ymd] => 2025-01-09 11:38:05 [RateCDR] => 1 ) [2025-01-09 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:38:05' and `end` < '2025-01-09 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:38:19] Production.INFO: count ==4375 [2025-01-09 11:38:21] Production.ERROR: pbx CDR StartTime 2025-01-09 08:38:05 - End Time 2025-01-09 11:38:05 [2025-01-09 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209322', 'tblTempUsageDetail_20' ) start [2025-01-09 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209322', 'tblTempUsageDetail_20' ) end [2025-01-09 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209322', 'tblTempVendorCDR_20' ) start [2025-01-09 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209322', 'tblTempVendorCDR_20' ) end [2025-01-09 11:38:21] Production.INFO: ProcessCDR(1,14209322,1,1,2) [2025-01-09 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209322', 'tblTempUsageDetail_20' ) start [2025-01-09 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209322', 'tblTempUsageDetail_20' ) end [2025-01-09 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:38:26] Production.INFO: ==22565== Releasing lock... [2025-01-09 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:38:26] Production.INFO: 61 MB #Memory Used# [2025-01-09 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:39:04 [end_date_ymd] => 2025-01-09 11:39:04 [RateCDR] => 1 ) [2025-01-09 11:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:39:04' and `end` < '2025-01-09 11:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:39:19] Production.INFO: count ==4384 [2025-01-09 11:39:21] Production.ERROR: pbx CDR StartTime 2025-01-09 08:39:04 - End Time 2025-01-09 11:39:04 [2025-01-09 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209324', 'tblTempUsageDetail_20' ) start [2025-01-09 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209324', 'tblTempUsageDetail_20' ) end [2025-01-09 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209324', 'tblTempVendorCDR_20' ) start [2025-01-09 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209324', 'tblTempVendorCDR_20' ) end [2025-01-09 11:39:21] Production.INFO: ProcessCDR(1,14209324,1,1,2) [2025-01-09 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209324', 'tblTempUsageDetail_20' ) start [2025-01-09 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209324', 'tblTempUsageDetail_20' ) end [2025-01-09 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:39:25] Production.INFO: ==22639== Releasing lock... [2025-01-09 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:39:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-09 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:40:05 [end_date_ymd] => 2025-01-09 11:40:05 [RateCDR] => 1 ) [2025-01-09 11:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:40:05' and `end` < '2025-01-09 11:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:40:24] Production.INFO: count ==4392 [2025-01-09 11:40:25] Production.ERROR: pbx CDR StartTime 2025-01-09 08:40:05 - End Time 2025-01-09 11:40:05 [2025-01-09 11:40:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209333', 'tblTempUsageDetail_20' ) start [2025-01-09 11:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209333', 'tblTempUsageDetail_20' ) end [2025-01-09 11:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209333', 'tblTempVendorCDR_20' ) start [2025-01-09 11:40:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209333', 'tblTempVendorCDR_20' ) end [2025-01-09 11:40:25] Production.INFO: ProcessCDR(1,14209333,1,1,2) [2025-01-09 11:40:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:40:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:40:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209333', 'tblTempUsageDetail_20' ) start [2025-01-09 11:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209333', 'tblTempUsageDetail_20' ) end [2025-01-09 11:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:40:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:40:30] Production.INFO: ==22714== Releasing lock... [2025-01-09 11:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:40:30] Production.INFO: 60.75 MB #Memory Used# [2025-01-09 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:41:05 [end_date_ymd] => 2025-01-09 11:41:05 [RateCDR] => 1 ) [2025-01-09 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:41:05' and `end` < '2025-01-09 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:41:19] Production.INFO: count ==4455 [2025-01-09 11:41:20] Production.ERROR: pbx CDR StartTime 2025-01-09 08:41:05 - End Time 2025-01-09 11:41:05 [2025-01-09 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209338', 'tblTempUsageDetail_20' ) start [2025-01-09 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209338', 'tblTempUsageDetail_20' ) end [2025-01-09 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209338', 'tblTempVendorCDR_20' ) start [2025-01-09 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209338', 'tblTempVendorCDR_20' ) end [2025-01-09 11:41:20] Production.INFO: ProcessCDR(1,14209338,1,1,2) [2025-01-09 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209338', 'tblTempUsageDetail_20' ) start [2025-01-09 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209338', 'tblTempUsageDetail_20' ) end [2025-01-09 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:41:25] Production.INFO: ==22792== Releasing lock... [2025-01-09 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:41:25] Production.INFO: 61.25 MB #Memory Used# [2025-01-09 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:42:05 [end_date_ymd] => 2025-01-09 11:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:42:05' and `end` < '2025-01-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-01-09 11:42:22] Production.INFO: count ==4468 [2025-01-09 11:42:24] Production.ERROR: pbx CDR StartTime 2025-01-09 08:42:05 - End Time 2025-01-09 11:42:05 [2025-01-09 11:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209343', 'tblTempUsageDetail_20' ) start [2025-01-09 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209343', 'tblTempUsageDetail_20' ) end [2025-01-09 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209343', 'tblTempVendorCDR_20' ) start [2025-01-09 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209343', 'tblTempVendorCDR_20' ) end [2025-01-09 11:42:24] Production.INFO: ProcessCDR(1,14209343,1,1,2) [2025-01-09 11:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209343', 'tblTempUsageDetail_20' ) start [2025-01-09 11:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209343', 'tblTempUsageDetail_20' ) end [2025-01-09 11:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:42:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:42:28] Production.INFO: ==22871== Releasing lock... [2025-01-09 11:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:42:28] Production.INFO: 61.5 MB #Memory Used# [2025-01-09 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:43:05 [end_date_ymd] => 2025-01-09 11:43:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:43:05' and `end` < '2025-01-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-01-09 11:43:22] Production.INFO: count ==4472 [2025-01-09 11:43:24] Production.ERROR: pbx CDR StartTime 2025-01-09 08:43:05 - End Time 2025-01-09 11:43:05 [2025-01-09 11:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209348', 'tblTempUsageDetail_20' ) start [2025-01-09 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209348', 'tblTempUsageDetail_20' ) end [2025-01-09 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209348', 'tblTempVendorCDR_20' ) start [2025-01-09 11:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209348', 'tblTempVendorCDR_20' ) end [2025-01-09 11:43:24] Production.INFO: ProcessCDR(1,14209348,1,1,2) [2025-01-09 11:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:43:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:43:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209348', 'tblTempUsageDetail_20' ) start [2025-01-09 11:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209348', 'tblTempUsageDetail_20' ) end [2025-01-09 11:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:43:28] Production.INFO: ==22953== Releasing lock... [2025-01-09 11:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:43:28] Production.INFO: 61.5 MB #Memory Used# [2025-01-09 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:44:05 [end_date_ymd] => 2025-01-09 11:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:44:05' and `end` < '2025-01-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-01-09 11:44:32] Production.INFO: count ==4479 [2025-01-09 11:44:34] Production.ERROR: pbx CDR StartTime 2025-01-09 08:44:05 - End Time 2025-01-09 11:44:05 [2025-01-09 11:44:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209353', 'tblTempUsageDetail_20' ) start [2025-01-09 11:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209353', 'tblTempUsageDetail_20' ) end [2025-01-09 11:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209353', 'tblTempVendorCDR_20' ) start [2025-01-09 11:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209353', 'tblTempVendorCDR_20' ) end [2025-01-09 11:44:34] Production.INFO: ProcessCDR(1,14209353,1,1,2) [2025-01-09 11:44:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:44:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:44:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:44:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:44:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209353', 'tblTempUsageDetail_20' ) start [2025-01-09 11:44:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209353', 'tblTempUsageDetail_20' ) end [2025-01-09 11:44:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:44:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:44:39] Production.INFO: ==23039== Releasing lock... [2025-01-09 11:44:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:44:39] Production.INFO: 61.5 MB #Memory Used# [2025-01-09 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:45:04 [end_date_ymd] => 2025-01-09 11:45:04 [RateCDR] => 1 ) [2025-01-09 11:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:45:04' and `end` < '2025-01-09 11:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:45:37] Production.INFO: count ==4503 [2025-01-09 11:45:39] Production.ERROR: pbx CDR StartTime 2025-01-09 08:45:04 - End Time 2025-01-09 11:45:04 [2025-01-09 11:45:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209358', 'tblTempUsageDetail_20' ) start [2025-01-09 11:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209358', 'tblTempUsageDetail_20' ) end [2025-01-09 11:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209358', 'tblTempVendorCDR_20' ) start [2025-01-09 11:45:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209358', 'tblTempVendorCDR_20' ) end [2025-01-09 11:45:39] Production.INFO: ProcessCDR(1,14209358,1,1,2) [2025-01-09 11:45:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:45:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:45:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:45:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:45:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209358', 'tblTempUsageDetail_20' ) start [2025-01-09 11:45:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209358', 'tblTempUsageDetail_20' ) end [2025-01-09 11:45:43] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:45:43] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:45:43] Production.INFO: ==23116== Releasing lock... [2025-01-09 11:45:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:45:43] Production.INFO: 61.75 MB #Memory Used# [2025-01-09 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:46:05 [end_date_ymd] => 2025-01-09 11:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:46:05' and `end` < '2025-01-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-01-09 11:46:32] Production.INFO: count ==4494 [2025-01-09 11:46:34] Production.ERROR: pbx CDR StartTime 2025-01-09 08:46:05 - End Time 2025-01-09 11:46:05 [2025-01-09 11:46:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209363', 'tblTempUsageDetail_20' ) start [2025-01-09 11:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209363', 'tblTempUsageDetail_20' ) end [2025-01-09 11:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209363', 'tblTempVendorCDR_20' ) start [2025-01-09 11:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209363', 'tblTempVendorCDR_20' ) end [2025-01-09 11:46:34] Production.INFO: ProcessCDR(1,14209363,1,1,2) [2025-01-09 11:46:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:46:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:46:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:46:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:46:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209363', 'tblTempUsageDetail_20' ) start [2025-01-09 11:46:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209363', 'tblTempUsageDetail_20' ) end [2025-01-09 11:46:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:46:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:46:39] Production.INFO: ==23241== Releasing lock... [2025-01-09 11:46:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:46:39] Production.INFO: 61.5 MB #Memory Used# [2025-01-09 11:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:47:04 [end_date_ymd] => 2025-01-09 11:47:04 [RateCDR] => 1 ) [2025-01-09 11:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:47:04' and `end` < '2025-01-09 11:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:47:25] Production.INFO: count ==4491 [2025-01-09 11:47:27] Production.ERROR: pbx CDR StartTime 2025-01-09 08:47:04 - End Time 2025-01-09 11:47:04 [2025-01-09 11:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209368', 'tblTempUsageDetail_20' ) start [2025-01-09 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209368', 'tblTempUsageDetail_20' ) end [2025-01-09 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209368', 'tblTempVendorCDR_20' ) start [2025-01-09 11:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209368', 'tblTempVendorCDR_20' ) end [2025-01-09 11:47:27] Production.INFO: ProcessCDR(1,14209368,1,1,2) [2025-01-09 11:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209368', 'tblTempUsageDetail_20' ) start [2025-01-09 11:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209368', 'tblTempUsageDetail_20' ) end [2025-01-09 11:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:47:32] Production.INFO: ==23318== Releasing lock... [2025-01-09 11:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:47:32] Production.INFO: 61.5 MB #Memory Used# [2025-01-09 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:48:05 [end_date_ymd] => 2025-01-09 11:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:48:05' and `end` < '2025-01-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-01-09 11:48:28] Production.INFO: count ==4500 [2025-01-09 11:48:30] Production.ERROR: pbx CDR StartTime 2025-01-09 08:48:05 - End Time 2025-01-09 11:48:05 [2025-01-09 11:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209373', 'tblTempUsageDetail_20' ) start [2025-01-09 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209373', 'tblTempUsageDetail_20' ) end [2025-01-09 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209373', 'tblTempVendorCDR_20' ) start [2025-01-09 11:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209373', 'tblTempVendorCDR_20' ) end [2025-01-09 11:48:30] Production.INFO: ProcessCDR(1,14209373,1,1,2) [2025-01-09 11:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:48:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209373', 'tblTempUsageDetail_20' ) start [2025-01-09 11:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209373', 'tblTempUsageDetail_20' ) end [2025-01-09 11:48:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:48:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:48:35] Production.INFO: ==23404== Releasing lock... [2025-01-09 11:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:48:35] Production.INFO: 61.75 MB #Memory Used# [2025-01-09 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:49:05 [end_date_ymd] => 2025-01-09 11:49:05 [RateCDR] => 1 ) [2025-01-09 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:49:05' and `end` < '2025-01-09 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:49:23] Production.INFO: count ==4519 [2025-01-09 11:49:25] Production.ERROR: pbx CDR StartTime 2025-01-09 08:49:05 - End Time 2025-01-09 11:49:05 [2025-01-09 11:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209378', 'tblTempUsageDetail_20' ) start [2025-01-09 11:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209378', 'tblTempUsageDetail_20' ) end [2025-01-09 11:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209378', 'tblTempVendorCDR_20' ) start [2025-01-09 11:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209378', 'tblTempVendorCDR_20' ) end [2025-01-09 11:49:25] Production.INFO: ProcessCDR(1,14209378,1,1,2) [2025-01-09 11:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209378', 'tblTempUsageDetail_20' ) start [2025-01-09 11:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209378', 'tblTempUsageDetail_20' ) end [2025-01-09 11:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:49:29] Production.INFO: ==23487== Releasing lock... [2025-01-09 11:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:49:29] Production.INFO: 61.75 MB #Memory Used# [2025-01-09 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:50:06 [end_date_ymd] => 2025-01-09 11:50:06 [RateCDR] => 1 ) [2025-01-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-01-09 08:50:06' and `end` < '2025-01-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-01-09 11:50:25] Production.INFO: count ==4522 [2025-01-09 11:50:27] Production.ERROR: pbx CDR StartTime 2025-01-09 08:50:06 - End Time 2025-01-09 11:50:06 [2025-01-09 11:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209384', 'tblTempUsageDetail_20' ) start [2025-01-09 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209384', 'tblTempUsageDetail_20' ) end [2025-01-09 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209384', 'tblTempVendorCDR_20' ) start [2025-01-09 11:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209384', 'tblTempVendorCDR_20' ) end [2025-01-09 11:50:27] Production.INFO: ProcessCDR(1,14209384,1,1,2) [2025-01-09 11:50:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:50:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:50:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:50:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209384', 'tblTempUsageDetail_20' ) start [2025-01-09 11:50:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209384', 'tblTempUsageDetail_20' ) end [2025-01-09 11:50:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:50:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:50:31] Production.INFO: ==23570== Releasing lock... [2025-01-09 11:50:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:50:31] Production.INFO: 61.75 MB #Memory Used# [2025-01-09 11:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:51:04 [end_date_ymd] => 2025-01-09 11:51:04 [RateCDR] => 1 ) [2025-01-09 11:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:51:04' and `end` < '2025-01-09 11:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:51:20] Production.INFO: count ==4565 [2025-01-09 11:51:22] Production.ERROR: pbx CDR StartTime 2025-01-09 08:51:04 - End Time 2025-01-09 11:51:04 [2025-01-09 11:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209389', 'tblTempUsageDetail_20' ) start [2025-01-09 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209389', 'tblTempUsageDetail_20' ) end [2025-01-09 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209389', 'tblTempVendorCDR_20' ) start [2025-01-09 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209389', 'tblTempVendorCDR_20' ) end [2025-01-09 11:51:22] Production.INFO: ProcessCDR(1,14209389,1,1,2) [2025-01-09 11:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209389', 'tblTempUsageDetail_20' ) start [2025-01-09 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209389', 'tblTempUsageDetail_20' ) end [2025-01-09 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:51:27] Production.INFO: ==23655== Releasing lock... [2025-01-09 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:51:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:52:05 [end_date_ymd] => 2025-01-09 11:52:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:52:05' and `end` < '2025-01-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-01-09 11:52:20] Production.INFO: count ==4573 [2025-01-09 11:52:22] Production.ERROR: pbx CDR StartTime 2025-01-09 08:52:05 - End Time 2025-01-09 11:52:05 [2025-01-09 11:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209394', 'tblTempUsageDetail_20' ) start [2025-01-09 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209394', 'tblTempUsageDetail_20' ) end [2025-01-09 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209394', 'tblTempVendorCDR_20' ) start [2025-01-09 11:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209394', 'tblTempVendorCDR_20' ) end [2025-01-09 11:52:23] Production.INFO: ProcessCDR(1,14209394,1,1,2) [2025-01-09 11:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209394', 'tblTempUsageDetail_20' ) start [2025-01-09 11:52:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209394', 'tblTempUsageDetail_20' ) end [2025-01-09 11:52:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:52:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:52:28] Production.INFO: ==23733== Releasing lock... [2025-01-09 11:52:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:52:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:53:05 [end_date_ymd] => 2025-01-09 11:53:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:53:05' and `end` < '2025-01-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-01-09 11:53:24] Production.INFO: count ==4584 [2025-01-09 11:53:25] Production.ERROR: pbx CDR StartTime 2025-01-09 08:53:05 - End Time 2025-01-09 11:53:05 [2025-01-09 11:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209399', 'tblTempUsageDetail_20' ) start [2025-01-09 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209399', 'tblTempUsageDetail_20' ) end [2025-01-09 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209399', 'tblTempVendorCDR_20' ) start [2025-01-09 11:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209399', 'tblTempVendorCDR_20' ) end [2025-01-09 11:53:25] Production.INFO: ProcessCDR(1,14209399,1,1,2) [2025-01-09 11:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209399', 'tblTempUsageDetail_20' ) start [2025-01-09 11:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209399', 'tblTempUsageDetail_20' ) end [2025-01-09 11:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:53:30] Production.INFO: ==23813== Releasing lock... [2025-01-09 11:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:53:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:54:05 [end_date_ymd] => 2025-01-09 11:54:05 [RateCDR] => 1 ) [2025-01-09 11:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:54:05' and `end` < '2025-01-09 11:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:54:26] Production.INFO: count ==4590 [2025-01-09 11:54:28] Production.ERROR: pbx CDR StartTime 2025-01-09 08:54:05 - End Time 2025-01-09 11:54:05 [2025-01-09 11:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209404', 'tblTempUsageDetail_20' ) start [2025-01-09 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209404', 'tblTempUsageDetail_20' ) end [2025-01-09 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209404', 'tblTempVendorCDR_20' ) start [2025-01-09 11:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209404', 'tblTempVendorCDR_20' ) end [2025-01-09 11:54:28] Production.INFO: ProcessCDR(1,14209404,1,1,2) [2025-01-09 11:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:54:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:54:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209404', 'tblTempUsageDetail_20' ) start [2025-01-09 11:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209404', 'tblTempUsageDetail_20' ) end [2025-01-09 11:54:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:54:33] Production.INFO: ==23902== Releasing lock... [2025-01-09 11:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:54:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:55:05 [end_date_ymd] => 2025-01-09 11:55:05 [RateCDR] => 1 ) [2025-01-09 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 08:55:05' and `end` < '2025-01-09 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 11:55:24] Production.INFO: count ==4592 [2025-01-09 11:55:26] Production.ERROR: pbx CDR StartTime 2025-01-09 08:55:05 - End Time 2025-01-09 11:55:05 [2025-01-09 11:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209409', 'tblTempUsageDetail_20' ) start [2025-01-09 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209409', 'tblTempUsageDetail_20' ) end [2025-01-09 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209409', 'tblTempVendorCDR_20' ) start [2025-01-09 11:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209409', 'tblTempVendorCDR_20' ) end [2025-01-09 11:55:26] Production.INFO: ProcessCDR(1,14209409,1,1,2) [2025-01-09 11:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:55:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:55:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:55:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209409', 'tblTempUsageDetail_20' ) start [2025-01-09 11:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209409', 'tblTempUsageDetail_20' ) end [2025-01-09 11:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:55:31] Production.INFO: ==23981== Releasing lock... [2025-01-09 11:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:55:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:56:05 [end_date_ymd] => 2025-01-09 11:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:56:05' and `end` < '2025-01-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-01-09 11:56:20] Production.INFO: count ==4589 [2025-01-09 11:56:22] Production.ERROR: pbx CDR StartTime 2025-01-09 08:56:05 - End Time 2025-01-09 11:56:05 [2025-01-09 11:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209414', 'tblTempUsageDetail_20' ) start [2025-01-09 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209414', 'tblTempUsageDetail_20' ) end [2025-01-09 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209414', 'tblTempVendorCDR_20' ) start [2025-01-09 11:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209414', 'tblTempVendorCDR_20' ) end [2025-01-09 11:56:22] Production.INFO: ProcessCDR(1,14209414,1,1,2) [2025-01-09 11:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209414', 'tblTempUsageDetail_20' ) start [2025-01-09 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209414', 'tblTempUsageDetail_20' ) end [2025-01-09 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:56:27] Production.INFO: ==24063== Releasing lock... [2025-01-09 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:56:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:57:05 [end_date_ymd] => 2025-01-09 11:57:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:57:05' and `end` < '2025-01-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-01-09 11:57:36] Production.INFO: count ==4601 [2025-01-09 11:57:38] Production.ERROR: pbx CDR StartTime 2025-01-09 08:57:05 - End Time 2025-01-09 11:57:05 [2025-01-09 11:57:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:57:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209419', 'tblTempUsageDetail_20' ) start [2025-01-09 11:57:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209419', 'tblTempUsageDetail_20' ) end [2025-01-09 11:57:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209419', 'tblTempVendorCDR_20' ) start [2025-01-09 11:57:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209419', 'tblTempVendorCDR_20' ) end [2025-01-09 11:57:38] Production.INFO: ProcessCDR(1,14209419,1,1,2) [2025-01-09 11:57:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:57:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:57:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:57:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:57:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209419', 'tblTempUsageDetail_20' ) start [2025-01-09 11:57:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209419', 'tblTempUsageDetail_20' ) end [2025-01-09 11:57:47] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:57:47] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:57:47] Production.INFO: ==24145== Releasing lock... [2025-01-09 11:57:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:57:47] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:58:05 [end_date_ymd] => 2025-01-09 11:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:58:05' and `end` < '2025-01-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-01-09 11:58:24] Production.INFO: count ==4617 [2025-01-09 11:58:26] Production.ERROR: pbx CDR StartTime 2025-01-09 08:58:05 - End Time 2025-01-09 11:58:05 [2025-01-09 11:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209424', 'tblTempUsageDetail_20' ) start [2025-01-09 11:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209424', 'tblTempUsageDetail_20' ) end [2025-01-09 11:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209424', 'tblTempVendorCDR_20' ) start [2025-01-09 11:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209424', 'tblTempVendorCDR_20' ) end [2025-01-09 11:58:26] Production.INFO: ProcessCDR(1,14209424,1,1,2) [2025-01-09 11:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209424', 'tblTempUsageDetail_20' ) start [2025-01-09 11:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209424', 'tblTempUsageDetail_20' ) end [2025-01-09 11:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:58:31] Production.INFO: ==24231== Releasing lock... [2025-01-09 11:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:58:31] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 08:59:05 [end_date_ymd] => 2025-01-09 11:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 08:59:05' and `end` < '2025-01-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-01-09 11:59:23] Production.INFO: count ==4626 [2025-01-09 11:59:25] Production.ERROR: pbx CDR StartTime 2025-01-09 08:59:05 - End Time 2025-01-09 11:59:05 [2025-01-09 11:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209429', 'tblTempUsageDetail_20' ) start [2025-01-09 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209429', 'tblTempUsageDetail_20' ) end [2025-01-09 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209429', 'tblTempVendorCDR_20' ) start [2025-01-09 11:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209429', 'tblTempVendorCDR_20' ) end [2025-01-09 11:59:25] Production.INFO: ProcessCDR(1,14209429,1,1,2) [2025-01-09 11:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 11:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:59:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 11:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209429', 'tblTempUsageDetail_20' ) start [2025-01-09 11:59:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209429', 'tblTempUsageDetail_20' ) end [2025-01-09 11:59:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 11:59:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 11:59:30] Production.INFO: ==24314== Releasing lock... [2025-01-09 11:59:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 11:59:30] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:00:06 [end_date_ymd] => 2025-01-09 12:00:06 [RateCDR] => 1 ) [2025-01-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-01-09 09:00:06' and `end` < '2025-01-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-01-09 12:00:27] Production.INFO: count ==4637 [2025-01-09 12:00:28] Production.ERROR: pbx CDR StartTime 2025-01-09 09:00:06 - End Time 2025-01-09 12:00:06 [2025-01-09 12:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209435', 'tblTempUsageDetail_20' ) start [2025-01-09 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209435', 'tblTempUsageDetail_20' ) end [2025-01-09 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209435', 'tblTempVendorCDR_20' ) start [2025-01-09 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209435', 'tblTempVendorCDR_20' ) end [2025-01-09 12:00:29] Production.INFO: ProcessCDR(1,14209435,1,1,2) [2025-01-09 12:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209435', 'tblTempUsageDetail_20' ) start [2025-01-09 12:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209435', 'tblTempUsageDetail_20' ) end [2025-01-09 12:00:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:00:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:00:33] Production.INFO: ==24400== Releasing lock... [2025-01-09 12:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:00:33] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:01:04 [end_date_ymd] => 2025-01-09 12:01:04 [RateCDR] => 1 ) [2025-01-09 12:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:01:04' and `end` < '2025-01-09 12:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:01:24] Production.INFO: count ==4656 [2025-01-09 12:01:25] Production.ERROR: pbx CDR StartTime 2025-01-09 09:01:04 - End Time 2025-01-09 12:01:04 [2025-01-09 12:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209440', 'tblTempUsageDetail_20' ) start [2025-01-09 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209440', 'tblTempUsageDetail_20' ) end [2025-01-09 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209440', 'tblTempVendorCDR_20' ) start [2025-01-09 12:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209440', 'tblTempVendorCDR_20' ) end [2025-01-09 12:01:26] Production.INFO: ProcessCDR(1,14209440,1,1,2) [2025-01-09 12:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209440', 'tblTempUsageDetail_20' ) start [2025-01-09 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209440', 'tblTempUsageDetail_20' ) end [2025-01-09 12:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:01:30] Production.INFO: ==24492== Releasing lock... [2025-01-09 12:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:01:30] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:02:05 [end_date_ymd] => 2025-01-09 12:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:02:05' and `end` < '2025-01-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-01-09 12:02:21] Production.INFO: count ==4634 [2025-01-09 12:02:23] Production.ERROR: pbx CDR StartTime 2025-01-09 09:02:05 - End Time 2025-01-09 12:02:05 [2025-01-09 12:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209445', 'tblTempUsageDetail_20' ) start [2025-01-09 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209445', 'tblTempUsageDetail_20' ) end [2025-01-09 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209445', 'tblTempVendorCDR_20' ) start [2025-01-09 12:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209445', 'tblTempVendorCDR_20' ) end [2025-01-09 12:02:23] Production.INFO: ProcessCDR(1,14209445,1,1,2) [2025-01-09 12:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209445', 'tblTempUsageDetail_20' ) start [2025-01-09 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209445', 'tblTempUsageDetail_20' ) end [2025-01-09 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:02:27] Production.INFO: ==24614== Releasing lock... [2025-01-09 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:02:27] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:03:04 [end_date_ymd] => 2025-01-09 12:03:04 [RateCDR] => 1 ) [2025-01-09 12:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:03:04' and `end` < '2025-01-09 12:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:03:23] Production.INFO: count ==4624 [2025-01-09 12:03:25] Production.ERROR: pbx CDR StartTime 2025-01-09 09:03:04 - End Time 2025-01-09 12:03:04 [2025-01-09 12:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209450', 'tblTempUsageDetail_20' ) start [2025-01-09 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209450', 'tblTempUsageDetail_20' ) end [2025-01-09 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209450', 'tblTempVendorCDR_20' ) start [2025-01-09 12:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209450', 'tblTempVendorCDR_20' ) end [2025-01-09 12:03:25] Production.INFO: ProcessCDR(1,14209450,1,1,2) [2025-01-09 12:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:03:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209450', 'tblTempUsageDetail_20' ) start [2025-01-09 12:03:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209450', 'tblTempUsageDetail_20' ) end [2025-01-09 12:03:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:03:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:03:29] Production.INFO: ==24691== Releasing lock... [2025-01-09 12:03:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:03:29] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:04:05 [end_date_ymd] => 2025-01-09 12:04:05 [RateCDR] => 1 ) [2025-01-09 12:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:04:05' and `end` < '2025-01-09 12:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:04:21] Production.INFO: count ==4622 [2025-01-09 12:04:23] Production.ERROR: pbx CDR StartTime 2025-01-09 09:04:05 - End Time 2025-01-09 12:04:05 [2025-01-09 12:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209455', 'tblTempUsageDetail_20' ) start [2025-01-09 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209455', 'tblTempUsageDetail_20' ) end [2025-01-09 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209455', 'tblTempVendorCDR_20' ) start [2025-01-09 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209455', 'tblTempVendorCDR_20' ) end [2025-01-09 12:04:23] Production.INFO: ProcessCDR(1,14209455,1,1,2) [2025-01-09 12:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209455', 'tblTempUsageDetail_20' ) start [2025-01-09 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209455', 'tblTempUsageDetail_20' ) end [2025-01-09 12:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:04:28] Production.INFO: ==24768== Releasing lock... [2025-01-09 12:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:04:28] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:05:04 [end_date_ymd] => 2025-01-09 12:05:04 [RateCDR] => 1 ) [2025-01-09 12:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:05:04' and `end` < '2025-01-09 12:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:05:28] Production.INFO: count ==4621 [2025-01-09 12:05:30] Production.ERROR: pbx CDR StartTime 2025-01-09 09:05:04 - End Time 2025-01-09 12:05:04 [2025-01-09 12:05:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209460', 'tblTempUsageDetail_20' ) start [2025-01-09 12:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209460', 'tblTempUsageDetail_20' ) end [2025-01-09 12:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209460', 'tblTempVendorCDR_20' ) start [2025-01-09 12:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209460', 'tblTempVendorCDR_20' ) end [2025-01-09 12:05:30] Production.INFO: ProcessCDR(1,14209460,1,1,2) [2025-01-09 12:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:05:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209460', 'tblTempUsageDetail_20' ) start [2025-01-09 12:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209460', 'tblTempUsageDetail_20' ) end [2025-01-09 12:05:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:05:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:05:35] Production.INFO: ==24844== Releasing lock... [2025-01-09 12:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:05:35] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:06:05 [end_date_ymd] => 2025-01-09 12:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:06:05' and `end` < '2025-01-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-01-09 12:06:27] Production.INFO: count ==4623 [2025-01-09 12:06:29] Production.ERROR: pbx CDR StartTime 2025-01-09 09:06:05 - End Time 2025-01-09 12:06:05 [2025-01-09 12:06:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209465', 'tblTempUsageDetail_20' ) start [2025-01-09 12:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209465', 'tblTempUsageDetail_20' ) end [2025-01-09 12:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209465', 'tblTempVendorCDR_20' ) start [2025-01-09 12:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209465', 'tblTempVendorCDR_20' ) end [2025-01-09 12:06:29] Production.INFO: ProcessCDR(1,14209465,1,1,2) [2025-01-09 12:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:06:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209465', 'tblTempUsageDetail_20' ) start [2025-01-09 12:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209465', 'tblTempUsageDetail_20' ) end [2025-01-09 12:06:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:06:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:06:34] Production.INFO: ==24919== Releasing lock... [2025-01-09 12:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:06:34] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:07:05 [end_date_ymd] => 2025-01-09 12:07:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:07:05' and `end` < '2025-01-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-01-09 12:07:21] Production.INFO: count ==4641 [2025-01-09 12:07:23] Production.ERROR: pbx CDR StartTime 2025-01-09 09:07:05 - End Time 2025-01-09 12:07:05 [2025-01-09 12:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209470', 'tblTempUsageDetail_20' ) start [2025-01-09 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209470', 'tblTempUsageDetail_20' ) end [2025-01-09 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209470', 'tblTempVendorCDR_20' ) start [2025-01-09 12:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209470', 'tblTempVendorCDR_20' ) end [2025-01-09 12:07:23] Production.INFO: ProcessCDR(1,14209470,1,1,2) [2025-01-09 12:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209470', 'tblTempUsageDetail_20' ) start [2025-01-09 12:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209470', 'tblTempUsageDetail_20' ) end [2025-01-09 12:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:07:28] Production.INFO: ==24990== Releasing lock... [2025-01-09 12:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:07:28] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:08:04 [end_date_ymd] => 2025-01-09 12:08:04 [RateCDR] => 1 ) [2025-01-09 12:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:08:04' and `end` < '2025-01-09 12:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:08:24] Production.INFO: count ==4638 [2025-01-09 12:08:26] Production.ERROR: pbx CDR StartTime 2025-01-09 09:08:04 - End Time 2025-01-09 12:08:04 [2025-01-09 12:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209475', 'tblTempUsageDetail_20' ) start [2025-01-09 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209475', 'tblTempUsageDetail_20' ) end [2025-01-09 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209475', 'tblTempVendorCDR_20' ) start [2025-01-09 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209475', 'tblTempVendorCDR_20' ) end [2025-01-09 12:08:26] Production.INFO: ProcessCDR(1,14209475,1,1,2) [2025-01-09 12:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209475', 'tblTempUsageDetail_20' ) start [2025-01-09 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209475', 'tblTempUsageDetail_20' ) end [2025-01-09 12:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:08:31] Production.INFO: ==25061== Releasing lock... [2025-01-09 12:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:08:31] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:09:06 [end_date_ymd] => 2025-01-09 12:09:06 [RateCDR] => 1 ) [2025-01-09 12:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:09:06' and `end` < '2025-01-09 12:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:09:30] Production.INFO: count ==4620 [2025-01-09 12:09:32] Production.ERROR: pbx CDR StartTime 2025-01-09 09:09:06 - End Time 2025-01-09 12:09:06 [2025-01-09 12:09:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209480', 'tblTempUsageDetail_20' ) start [2025-01-09 12:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209480', 'tblTempUsageDetail_20' ) end [2025-01-09 12:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209480', 'tblTempVendorCDR_20' ) start [2025-01-09 12:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209480', 'tblTempVendorCDR_20' ) end [2025-01-09 12:09:32] Production.INFO: ProcessCDR(1,14209480,1,1,2) [2025-01-09 12:09:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:09:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:09:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:09:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:09:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209480', 'tblTempUsageDetail_20' ) start [2025-01-09 12:09:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209480', 'tblTempUsageDetail_20' ) end [2025-01-09 12:09:37] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:09:37] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:09:37] Production.INFO: ==25133== Releasing lock... [2025-01-09 12:09:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:09:37] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:10:06 [end_date_ymd] => 2025-01-09 12:10:06 [RateCDR] => 1 ) [2025-01-09 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:10:06' and `end` < '2025-01-09 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:10:28] Production.INFO: count ==4604 [2025-01-09 12:10:30] Production.ERROR: pbx CDR StartTime 2025-01-09 09:10:06 - End Time 2025-01-09 12:10:06 [2025-01-09 12:10:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209486', 'tblTempUsageDetail_20' ) start [2025-01-09 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209486', 'tblTempUsageDetail_20' ) end [2025-01-09 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209486', 'tblTempVendorCDR_20' ) start [2025-01-09 12:10:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209486', 'tblTempVendorCDR_20' ) end [2025-01-09 12:10:30] Production.INFO: ProcessCDR(1,14209486,1,1,2) [2025-01-09 12:10:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209486', 'tblTempUsageDetail_20' ) start [2025-01-09 12:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209486', 'tblTempUsageDetail_20' ) end [2025-01-09 12:10:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:10:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:10:34] Production.INFO: ==25206== Releasing lock... [2025-01-09 12:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:10:34] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:11:04 [end_date_ymd] => 2025-01-09 12:11:04 [RateCDR] => 1 ) [2025-01-09 12:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:11:04' and `end` < '2025-01-09 12:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:11:22] Production.INFO: count ==4637 [2025-01-09 12:11:24] Production.ERROR: pbx CDR StartTime 2025-01-09 09:11:04 - End Time 2025-01-09 12:11:04 [2025-01-09 12:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209491', 'tblTempUsageDetail_20' ) start [2025-01-09 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209491', 'tblTempUsageDetail_20' ) end [2025-01-09 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209491', 'tblTempVendorCDR_20' ) start [2025-01-09 12:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209491', 'tblTempVendorCDR_20' ) end [2025-01-09 12:11:24] Production.INFO: ProcessCDR(1,14209491,1,1,2) [2025-01-09 12:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:11:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:11:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209491', 'tblTempUsageDetail_20' ) start [2025-01-09 12:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209491', 'tblTempUsageDetail_20' ) end [2025-01-09 12:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:11:29] Production.INFO: ==25279== Releasing lock... [2025-01-09 12:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:11:29] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:12:05 [end_date_ymd] => 2025-01-09 12:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:12:05' and `end` < '2025-01-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-01-09 12:12:20] Production.INFO: count ==4643 [2025-01-09 12:12:22] Production.ERROR: pbx CDR StartTime 2025-01-09 09:12:05 - End Time 2025-01-09 12:12:05 [2025-01-09 12:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209496', 'tblTempUsageDetail_20' ) start [2025-01-09 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209496', 'tblTempUsageDetail_20' ) end [2025-01-09 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209496', 'tblTempVendorCDR_20' ) start [2025-01-09 12:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209496', 'tblTempVendorCDR_20' ) end [2025-01-09 12:12:22] Production.INFO: ProcessCDR(1,14209496,1,1,2) [2025-01-09 12:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209496', 'tblTempUsageDetail_20' ) start [2025-01-09 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209496', 'tblTempUsageDetail_20' ) end [2025-01-09 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:12:26] Production.INFO: ==25348== Releasing lock... [2025-01-09 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:12:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:13:05 [end_date_ymd] => 2025-01-09 12:13:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:13:05' and `end` < '2025-01-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-01-09 12:13:27] Production.INFO: count ==4654 [2025-01-09 12:13:29] Production.ERROR: pbx CDR StartTime 2025-01-09 09:13:05 - End Time 2025-01-09 12:13:05 [2025-01-09 12:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209501', 'tblTempUsageDetail_20' ) start [2025-01-09 12:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209501', 'tblTempUsageDetail_20' ) end [2025-01-09 12:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209501', 'tblTempVendorCDR_20' ) start [2025-01-09 12:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209501', 'tblTempVendorCDR_20' ) end [2025-01-09 12:13:29] Production.INFO: ProcessCDR(1,14209501,1,1,2) [2025-01-09 12:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209501', 'tblTempUsageDetail_20' ) start [2025-01-09 12:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209501', 'tblTempUsageDetail_20' ) end [2025-01-09 12:13:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:13:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:13:34] Production.INFO: ==25418== Releasing lock... [2025-01-09 12:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:13:34] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:14:05 [end_date_ymd] => 2025-01-09 12:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:14:05' and `end` < '2025-01-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-01-09 12:14:28] Production.INFO: count ==4669 [2025-01-09 12:14:30] Production.ERROR: pbx CDR StartTime 2025-01-09 09:14:05 - End Time 2025-01-09 12:14:05 [2025-01-09 12:14:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209506', 'tblTempUsageDetail_20' ) start [2025-01-09 12:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209506', 'tblTempUsageDetail_20' ) end [2025-01-09 12:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209506', 'tblTempVendorCDR_20' ) start [2025-01-09 12:14:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209506', 'tblTempVendorCDR_20' ) end [2025-01-09 12:14:30] Production.INFO: ProcessCDR(1,14209506,1,1,2) [2025-01-09 12:14:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:14:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:14:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:14:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:14:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209506', 'tblTempUsageDetail_20' ) start [2025-01-09 12:14:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209506', 'tblTempUsageDetail_20' ) end [2025-01-09 12:14:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:14:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:14:35] Production.INFO: ==25493== Releasing lock... [2025-01-09 12:14:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:14:35] Production.INFO: 63 MB #Memory Used# [2025-01-09 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:15:05 [end_date_ymd] => 2025-01-09 12:15:05 [RateCDR] => 1 ) [2025-01-09 12:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:15:05' and `end` < '2025-01-09 12:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:15:28] Production.INFO: count ==4684 [2025-01-09 12:15:30] Production.ERROR: pbx CDR StartTime 2025-01-09 09:15:05 - End Time 2025-01-09 12:15:05 [2025-01-09 12:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209511', 'tblTempUsageDetail_20' ) start [2025-01-09 12:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209511', 'tblTempUsageDetail_20' ) end [2025-01-09 12:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209511', 'tblTempVendorCDR_20' ) start [2025-01-09 12:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209511', 'tblTempVendorCDR_20' ) end [2025-01-09 12:15:30] Production.INFO: ProcessCDR(1,14209511,1,1,2) [2025-01-09 12:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209511', 'tblTempUsageDetail_20' ) start [2025-01-09 12:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209511', 'tblTempUsageDetail_20' ) end [2025-01-09 12:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:15:35] Production.INFO: ==25565== Releasing lock... [2025-01-09 12:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:15:35] Production.INFO: 63 MB #Memory Used# [2025-01-09 12:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:16:04 [end_date_ymd] => 2025-01-09 12:16:04 [RateCDR] => 1 ) [2025-01-09 12:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:16:04' and `end` < '2025-01-09 12:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:16:32] Production.INFO: count ==4675 [2025-01-09 12:16:34] Production.ERROR: pbx CDR StartTime 2025-01-09 09:16:04 - End Time 2025-01-09 12:16:04 [2025-01-09 12:16:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209516', 'tblTempUsageDetail_20' ) start [2025-01-09 12:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209516', 'tblTempUsageDetail_20' ) end [2025-01-09 12:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209516', 'tblTempVendorCDR_20' ) start [2025-01-09 12:16:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209516', 'tblTempVendorCDR_20' ) end [2025-01-09 12:16:34] Production.INFO: ProcessCDR(1,14209516,1,1,2) [2025-01-09 12:16:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:16:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:16:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:16:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209516', 'tblTempUsageDetail_20' ) start [2025-01-09 12:16:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209516', 'tblTempUsageDetail_20' ) end [2025-01-09 12:16:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:16:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:16:39] Production.INFO: ==25635== Releasing lock... [2025-01-09 12:16:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:16:39] Production.INFO: 63 MB #Memory Used# [2025-01-09 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:17:05 [end_date_ymd] => 2025-01-09 12:17:05 [RateCDR] => 1 ) [2025-01-09 12:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:17:05' and `end` < '2025-01-09 12:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:17:34] Production.INFO: count ==4677 [2025-01-09 12:17:36] Production.ERROR: pbx CDR StartTime 2025-01-09 09:17:05 - End Time 2025-01-09 12:17:05 [2025-01-09 12:17:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:17:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209521', 'tblTempUsageDetail_20' ) start [2025-01-09 12:17:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209521', 'tblTempUsageDetail_20' ) end [2025-01-09 12:17:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209521', 'tblTempVendorCDR_20' ) start [2025-01-09 12:17:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209521', 'tblTempVendorCDR_20' ) end [2025-01-09 12:17:36] Production.INFO: ProcessCDR(1,14209521,1,1,2) [2025-01-09 12:17:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:17:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:17:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:17:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:17:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209521', 'tblTempUsageDetail_20' ) start [2025-01-09 12:17:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209521', 'tblTempUsageDetail_20' ) end [2025-01-09 12:17:41] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:17:41] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:17:41] Production.INFO: ==25744== Releasing lock... [2025-01-09 12:17:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:17:41] Production.INFO: 63 MB #Memory Used# [2025-01-09 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:18:05 [end_date_ymd] => 2025-01-09 12:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:18:05' and `end` < '2025-01-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-01-09 12:18:23] Production.INFO: count ==4684 [2025-01-09 12:18:25] Production.ERROR: pbx CDR StartTime 2025-01-09 09:18:05 - End Time 2025-01-09 12:18:05 [2025-01-09 12:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209526', 'tblTempUsageDetail_20' ) start [2025-01-09 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209526', 'tblTempUsageDetail_20' ) end [2025-01-09 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209526', 'tblTempVendorCDR_20' ) start [2025-01-09 12:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209526', 'tblTempVendorCDR_20' ) end [2025-01-09 12:18:25] Production.INFO: ProcessCDR(1,14209526,1,1,2) [2025-01-09 12:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:18:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:18:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:18:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209526', 'tblTempUsageDetail_20' ) start [2025-01-09 12:18:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209526', 'tblTempUsageDetail_20' ) end [2025-01-09 12:18:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:18:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:18:30] Production.INFO: ==25825== Releasing lock... [2025-01-09 12:18:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:18:30] Production.INFO: 63 MB #Memory Used# [2025-01-09 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:19:05 [end_date_ymd] => 2025-01-09 12:19:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:19:05' and `end` < '2025-01-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-01-09 12:19:28] Production.INFO: count ==4681 [2025-01-09 12:19:30] Production.ERROR: pbx CDR StartTime 2025-01-09 09:19:05 - End Time 2025-01-09 12:19:05 [2025-01-09 12:19:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209531', 'tblTempUsageDetail_20' ) start [2025-01-09 12:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209531', 'tblTempUsageDetail_20' ) end [2025-01-09 12:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209531', 'tblTempVendorCDR_20' ) start [2025-01-09 12:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209531', 'tblTempVendorCDR_20' ) end [2025-01-09 12:19:30] Production.INFO: ProcessCDR(1,14209531,1,1,2) [2025-01-09 12:19:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:19:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:19:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:19:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209531', 'tblTempUsageDetail_20' ) start [2025-01-09 12:19:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209531', 'tblTempUsageDetail_20' ) end [2025-01-09 12:19:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:19:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:19:35] Production.INFO: ==25900== Releasing lock... [2025-01-09 12:19:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:19:35] Production.INFO: 63 MB #Memory Used# [2025-01-09 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:20:06 [end_date_ymd] => 2025-01-09 12:20:06 [RateCDR] => 1 ) [2025-01-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-01-09 09:20:06' and `end` < '2025-01-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-01-09 12:20:26] Production.INFO: count ==4661 [2025-01-09 12:20:28] Production.ERROR: pbx CDR StartTime 2025-01-09 09:20:06 - End Time 2025-01-09 12:20:06 [2025-01-09 12:20:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209537', 'tblTempUsageDetail_20' ) start [2025-01-09 12:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209537', 'tblTempUsageDetail_20' ) end [2025-01-09 12:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209537', 'tblTempVendorCDR_20' ) start [2025-01-09 12:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209537', 'tblTempVendorCDR_20' ) end [2025-01-09 12:20:28] Production.INFO: ProcessCDR(1,14209537,1,1,2) [2025-01-09 12:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209537', 'tblTempUsageDetail_20' ) start [2025-01-09 12:20:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209537', 'tblTempUsageDetail_20' ) end [2025-01-09 12:20:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:20:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:20:33] Production.INFO: ==25972== Releasing lock... [2025-01-09 12:20:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:20:33] Production.INFO: 63 MB #Memory Used# [2025-01-09 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:21:05 [end_date_ymd] => 2025-01-09 12:21:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:21:05' and `end` < '2025-01-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-01-09 12:21:19] Production.INFO: count ==4665 [2025-01-09 12:21:21] Production.ERROR: pbx CDR StartTime 2025-01-09 09:21:05 - End Time 2025-01-09 12:21:05 [2025-01-09 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209542', 'tblTempUsageDetail_20' ) start [2025-01-09 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209542', 'tblTempUsageDetail_20' ) end [2025-01-09 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209542', 'tblTempVendorCDR_20' ) start [2025-01-09 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209542', 'tblTempVendorCDR_20' ) end [2025-01-09 12:21:21] Production.INFO: ProcessCDR(1,14209542,1,1,2) [2025-01-09 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209542', 'tblTempUsageDetail_20' ) start [2025-01-09 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209542', 'tblTempUsageDetail_20' ) end [2025-01-09 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:21:26] Production.INFO: ==26045== Releasing lock... [2025-01-09 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:21:26] Production.INFO: 63 MB #Memory Used# [2025-01-09 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:22:05 [end_date_ymd] => 2025-01-09 12:22:05 [RateCDR] => 1 ) [2025-01-09 12:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:22:05' and `end` < '2025-01-09 12:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:22:19] Production.INFO: count ==4665 [2025-01-09 12:22:21] Production.ERROR: pbx CDR StartTime 2025-01-09 09:22:05 - End Time 2025-01-09 12:22:05 [2025-01-09 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209547', 'tblTempUsageDetail_20' ) start [2025-01-09 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209547', 'tblTempUsageDetail_20' ) end [2025-01-09 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209547', 'tblTempVendorCDR_20' ) start [2025-01-09 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209547', 'tblTempVendorCDR_20' ) end [2025-01-09 12:22:21] Production.INFO: ProcessCDR(1,14209547,1,1,2) [2025-01-09 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209547', 'tblTempUsageDetail_20' ) start [2025-01-09 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209547', 'tblTempUsageDetail_20' ) end [2025-01-09 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:22:26] Production.INFO: ==26117== Releasing lock... [2025-01-09 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:22:26] Production.INFO: 63 MB #Memory Used# [2025-01-09 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:23:05 [end_date_ymd] => 2025-01-09 12:23:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:23:05' and `end` < '2025-01-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-01-09 12:23:28] Production.INFO: count ==4703 [2025-01-09 12:23:30] Production.ERROR: pbx CDR StartTime 2025-01-09 09:23:05 - End Time 2025-01-09 12:23:05 [2025-01-09 12:23:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209552', 'tblTempUsageDetail_20' ) start [2025-01-09 12:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209552', 'tblTempUsageDetail_20' ) end [2025-01-09 12:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209552', 'tblTempVendorCDR_20' ) start [2025-01-09 12:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209552', 'tblTempVendorCDR_20' ) end [2025-01-09 12:23:30] Production.INFO: ProcessCDR(1,14209552,1,1,2) [2025-01-09 12:23:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:23:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:23:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:23:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209552', 'tblTempUsageDetail_20' ) start [2025-01-09 12:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209552', 'tblTempUsageDetail_20' ) end [2025-01-09 12:23:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:23:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:23:35] Production.INFO: ==26187== Releasing lock... [2025-01-09 12:23:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:23:35] Production.INFO: 63.25 MB #Memory Used# [2025-01-09 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:24:05 [end_date_ymd] => 2025-01-09 12:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:24:05' and `end` < '2025-01-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-01-09 12:24:33] Production.INFO: count ==4663 [2025-01-09 12:24:35] Production.ERROR: pbx CDR StartTime 2025-01-09 09:24:05 - End Time 2025-01-09 12:24:05 [2025-01-09 12:24:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209557', 'tblTempUsageDetail_20' ) start [2025-01-09 12:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209557', 'tblTempUsageDetail_20' ) end [2025-01-09 12:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209557', 'tblTempVendorCDR_20' ) start [2025-01-09 12:24:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209557', 'tblTempVendorCDR_20' ) end [2025-01-09 12:24:35] Production.INFO: ProcessCDR(1,14209557,1,1,2) [2025-01-09 12:24:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:24:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:24:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:24:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209557', 'tblTempUsageDetail_20' ) start [2025-01-09 12:24:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209557', 'tblTempUsageDetail_20' ) end [2025-01-09 12:24:40] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:24:40] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:24:40] Production.INFO: ==26260== Releasing lock... [2025-01-09 12:24:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:24:40] Production.INFO: 63 MB #Memory Used# [2025-01-09 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:25:04 [end_date_ymd] => 2025-01-09 12:25:04 [RateCDR] => 1 ) [2025-01-09 12:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:25:04' and `end` < '2025-01-09 12:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:25:34] Production.INFO: count ==4642 [2025-01-09 12:25:35] Production.ERROR: pbx CDR StartTime 2025-01-09 09:25:04 - End Time 2025-01-09 12:25:04 [2025-01-09 12:25:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:25:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209562', 'tblTempUsageDetail_20' ) start [2025-01-09 12:25:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209562', 'tblTempUsageDetail_20' ) end [2025-01-09 12:25:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209562', 'tblTempVendorCDR_20' ) start [2025-01-09 12:25:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209562', 'tblTempVendorCDR_20' ) end [2025-01-09 12:25:36] Production.INFO: ProcessCDR(1,14209562,1,1,2) [2025-01-09 12:25:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:25:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:25:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:25:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209562', 'tblTempUsageDetail_20' ) start [2025-01-09 12:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209562', 'tblTempUsageDetail_20' ) end [2025-01-09 12:25:40] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:25:40] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:25:40] Production.INFO: ==26336== Releasing lock... [2025-01-09 12:25:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:25:40] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:26:05 [end_date_ymd] => 2025-01-09 12:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:26:05' and `end` < '2025-01-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-01-09 12:26:25] Production.INFO: count ==4626 [2025-01-09 12:26:27] Production.ERROR: pbx CDR StartTime 2025-01-09 09:26:05 - End Time 2025-01-09 12:26:05 [2025-01-09 12:26:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209567', 'tblTempUsageDetail_20' ) start [2025-01-09 12:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209567', 'tblTempUsageDetail_20' ) end [2025-01-09 12:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209567', 'tblTempVendorCDR_20' ) start [2025-01-09 12:26:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209567', 'tblTempVendorCDR_20' ) end [2025-01-09 12:26:27] Production.INFO: ProcessCDR(1,14209567,1,1,2) [2025-01-09 12:26:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209567', 'tblTempUsageDetail_20' ) start [2025-01-09 12:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209567', 'tblTempUsageDetail_20' ) end [2025-01-09 12:26:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:26:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:26:30] Production.INFO: ==26415== Releasing lock... [2025-01-09 12:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:26:30] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:27:05 [end_date_ymd] => 2025-01-09 12:27:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:27:05' and `end` < '2025-01-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-01-09 12:27:22] Production.INFO: count ==4609 [2025-01-09 12:27:24] Production.ERROR: pbx CDR StartTime 2025-01-09 09:27:05 - End Time 2025-01-09 12:27:05 [2025-01-09 12:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209572', 'tblTempUsageDetail_20' ) start [2025-01-09 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209572', 'tblTempUsageDetail_20' ) end [2025-01-09 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209572', 'tblTempVendorCDR_20' ) start [2025-01-09 12:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209572', 'tblTempVendorCDR_20' ) end [2025-01-09 12:27:24] Production.INFO: ProcessCDR(1,14209572,1,1,2) [2025-01-09 12:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209572', 'tblTempUsageDetail_20' ) start [2025-01-09 12:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209572', 'tblTempUsageDetail_20' ) end [2025-01-09 12:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:27:29] Production.INFO: ==26486== Releasing lock... [2025-01-09 12:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:27:29] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:28:05 [end_date_ymd] => 2025-01-09 12:28:05 [RateCDR] => 1 ) [2025-01-09 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:28:05' and `end` < '2025-01-09 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:28:19] Production.INFO: count ==4585 [2025-01-09 12:28:21] Production.ERROR: pbx CDR StartTime 2025-01-09 09:28:05 - End Time 2025-01-09 12:28:05 [2025-01-09 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209577', 'tblTempUsageDetail_20' ) start [2025-01-09 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209577', 'tblTempUsageDetail_20' ) end [2025-01-09 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209577', 'tblTempVendorCDR_20' ) start [2025-01-09 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209577', 'tblTempVendorCDR_20' ) end [2025-01-09 12:28:21] Production.INFO: ProcessCDR(1,14209577,1,1,2) [2025-01-09 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209577', 'tblTempUsageDetail_20' ) start [2025-01-09 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209577', 'tblTempUsageDetail_20' ) end [2025-01-09 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:28:26] Production.INFO: ==26565== Releasing lock... [2025-01-09 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:28:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:29:05 [end_date_ymd] => 2025-01-09 12:29:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:29:05' and `end` < '2025-01-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-01-09 12:29:24] Production.INFO: count ==4586 [2025-01-09 12:29:26] Production.ERROR: pbx CDR StartTime 2025-01-09 09:29:05 - End Time 2025-01-09 12:29:05 [2025-01-09 12:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209582', 'tblTempUsageDetail_20' ) start [2025-01-09 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209582', 'tblTempUsageDetail_20' ) end [2025-01-09 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209582', 'tblTempVendorCDR_20' ) start [2025-01-09 12:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209582', 'tblTempVendorCDR_20' ) end [2025-01-09 12:29:26] Production.INFO: ProcessCDR(1,14209582,1,1,2) [2025-01-09 12:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209582', 'tblTempUsageDetail_20' ) start [2025-01-09 12:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209582', 'tblTempUsageDetail_20' ) end [2025-01-09 12:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:29:31] Production.INFO: ==26649== Releasing lock... [2025-01-09 12:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:29:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:30:05 [end_date_ymd] => 2025-01-09 12:30:05 [RateCDR] => 1 ) [2025-01-09 12:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:30:05' and `end` < '2025-01-09 12:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:30:22] Production.INFO: count ==4599 [2025-01-09 12:30:24] Production.ERROR: pbx CDR StartTime 2025-01-09 09:30:05 - End Time 2025-01-09 12:30:05 [2025-01-09 12:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209588', 'tblTempUsageDetail_20' ) start [2025-01-09 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209588', 'tblTempUsageDetail_20' ) end [2025-01-09 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209588', 'tblTempVendorCDR_20' ) start [2025-01-09 12:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209588', 'tblTempVendorCDR_20' ) end [2025-01-09 12:30:24] Production.INFO: ProcessCDR(1,14209588,1,1,2) [2025-01-09 12:30:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209588', 'tblTempUsageDetail_20' ) start [2025-01-09 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209588', 'tblTempUsageDetail_20' ) end [2025-01-09 12:30:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:30:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:30:28] Production.INFO: ==26738== Releasing lock... [2025-01-09 12:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:30:28] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:31:05 [end_date_ymd] => 2025-01-09 12:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:31:05' and `end` < '2025-01-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-01-09 12:31:29] Production.INFO: count ==4620 [2025-01-09 12:31:31] Production.ERROR: pbx CDR StartTime 2025-01-09 09:31:05 - End Time 2025-01-09 12:31:05 [2025-01-09 12:31:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209593', 'tblTempUsageDetail_20' ) start [2025-01-09 12:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209593', 'tblTempUsageDetail_20' ) end [2025-01-09 12:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209593', 'tblTempVendorCDR_20' ) start [2025-01-09 12:31:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209593', 'tblTempVendorCDR_20' ) end [2025-01-09 12:31:31] Production.INFO: ProcessCDR(1,14209593,1,1,2) [2025-01-09 12:31:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:31:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:31:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:31:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209593', 'tblTempUsageDetail_20' ) start [2025-01-09 12:31:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209593', 'tblTempUsageDetail_20' ) end [2025-01-09 12:31:36] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:31:36] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:31:36] Production.INFO: ==26825== Releasing lock... [2025-01-09 12:31:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:31:36] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:32:05 [end_date_ymd] => 2025-01-09 12:32:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:32:05' and `end` < '2025-01-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-01-09 12:32:22] Production.INFO: count ==4611 [2025-01-09 12:32:23] Production.ERROR: pbx CDR StartTime 2025-01-09 09:32:05 - End Time 2025-01-09 12:32:05 [2025-01-09 12:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209598', 'tblTempUsageDetail_20' ) start [2025-01-09 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209598', 'tblTempUsageDetail_20' ) end [2025-01-09 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209598', 'tblTempVendorCDR_20' ) start [2025-01-09 12:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209598', 'tblTempVendorCDR_20' ) end [2025-01-09 12:32:24] Production.INFO: ProcessCDR(1,14209598,1,1,2) [2025-01-09 12:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209598', 'tblTempUsageDetail_20' ) start [2025-01-09 12:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209598', 'tblTempUsageDetail_20' ) end [2025-01-09 12:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:32:28] Production.INFO: ==26906== Releasing lock... [2025-01-09 12:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:32:28] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:33:05 [end_date_ymd] => 2025-01-09 12:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:33:05' and `end` < '2025-01-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-01-09 12:33:20] Production.INFO: count ==4599 [2025-01-09 12:33:22] Production.ERROR: pbx CDR StartTime 2025-01-09 09:33:05 - End Time 2025-01-09 12:33:05 [2025-01-09 12:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209603', 'tblTempUsageDetail_20' ) start [2025-01-09 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209603', 'tblTempUsageDetail_20' ) end [2025-01-09 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209603', 'tblTempVendorCDR_20' ) start [2025-01-09 12:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209603', 'tblTempVendorCDR_20' ) end [2025-01-09 12:33:22] Production.INFO: ProcessCDR(1,14209603,1,1,2) [2025-01-09 12:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209603', 'tblTempUsageDetail_20' ) start [2025-01-09 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209603', 'tblTempUsageDetail_20' ) end [2025-01-09 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:33:27] Production.INFO: ==27036== Releasing lock... [2025-01-09 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:33:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:34:04 [end_date_ymd] => 2025-01-09 12:34:04 [RateCDR] => 1 ) [2025-01-09 12:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:34:04' and `end` < '2025-01-09 12:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:34:19] Production.INFO: count ==4596 [2025-01-09 12:34:21] Production.ERROR: pbx CDR StartTime 2025-01-09 09:34:04 - End Time 2025-01-09 12:34:04 [2025-01-09 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209608', 'tblTempUsageDetail_20' ) start [2025-01-09 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209608', 'tblTempUsageDetail_20' ) end [2025-01-09 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209608', 'tblTempVendorCDR_20' ) start [2025-01-09 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209608', 'tblTempVendorCDR_20' ) end [2025-01-09 12:34:21] Production.INFO: ProcessCDR(1,14209608,1,1,2) [2025-01-09 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209608', 'tblTempUsageDetail_20' ) start [2025-01-09 12:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209608', 'tblTempUsageDetail_20' ) end [2025-01-09 12:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:34:26] Production.INFO: ==27121== Releasing lock... [2025-01-09 12:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:34:26] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:35:04 [end_date_ymd] => 2025-01-09 12:35:04 [RateCDR] => 1 ) [2025-01-09 12:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:35:04' and `end` < '2025-01-09 12:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:35:19] Production.INFO: count ==4586 [2025-01-09 12:35:21] Production.ERROR: pbx CDR StartTime 2025-01-09 09:35:04 - End Time 2025-01-09 12:35:04 [2025-01-09 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209613', 'tblTempUsageDetail_20' ) start [2025-01-09 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209613', 'tblTempUsageDetail_20' ) end [2025-01-09 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209613', 'tblTempVendorCDR_20' ) start [2025-01-09 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209613', 'tblTempVendorCDR_20' ) end [2025-01-09 12:35:21] Production.INFO: ProcessCDR(1,14209613,1,1,2) [2025-01-09 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209613', 'tblTempUsageDetail_20' ) start [2025-01-09 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209613', 'tblTempUsageDetail_20' ) end [2025-01-09 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:35:26] Production.INFO: ==27207== Releasing lock... [2025-01-09 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:35:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:36:05 [end_date_ymd] => 2025-01-09 12:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:36:05' and `end` < '2025-01-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-01-09 12:36:22] Production.INFO: count ==4582 [2025-01-09 12:36:24] Production.ERROR: pbx CDR StartTime 2025-01-09 09:36:05 - End Time 2025-01-09 12:36:05 [2025-01-09 12:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209618', 'tblTempUsageDetail_20' ) start [2025-01-09 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209618', 'tblTempUsageDetail_20' ) end [2025-01-09 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209618', 'tblTempVendorCDR_20' ) start [2025-01-09 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209618', 'tblTempVendorCDR_20' ) end [2025-01-09 12:36:24] Production.INFO: ProcessCDR(1,14209618,1,1,2) [2025-01-09 12:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209618', 'tblTempUsageDetail_20' ) start [2025-01-09 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209618', 'tblTempUsageDetail_20' ) end [2025-01-09 12:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:36:29] Production.INFO: ==27291== Releasing lock... [2025-01-09 12:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:36:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:37:05 [end_date_ymd] => 2025-01-09 12:37:05 [RateCDR] => 1 ) [2025-01-09 12:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:37:05' and `end` < '2025-01-09 12:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:37:22] Production.INFO: count ==4567 [2025-01-09 12:37:24] Production.ERROR: pbx CDR StartTime 2025-01-09 09:37:05 - End Time 2025-01-09 12:37:05 [2025-01-09 12:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209623', 'tblTempUsageDetail_20' ) start [2025-01-09 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209623', 'tblTempUsageDetail_20' ) end [2025-01-09 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209623', 'tblTempVendorCDR_20' ) start [2025-01-09 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209623', 'tblTempVendorCDR_20' ) end [2025-01-09 12:37:24] Production.INFO: ProcessCDR(1,14209623,1,1,2) [2025-01-09 12:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:37:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:37:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:37:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209623', 'tblTempUsageDetail_20' ) start [2025-01-09 12:37:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209623', 'tblTempUsageDetail_20' ) end [2025-01-09 12:37:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:37:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:37:28] Production.INFO: ==27377== Releasing lock... [2025-01-09 12:37:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:37:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:38:05 [end_date_ymd] => 2025-01-09 12:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:38:05' and `end` < '2025-01-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-01-09 12:38:20] Production.INFO: count ==4587 [2025-01-09 12:38:22] Production.ERROR: pbx CDR StartTime 2025-01-09 09:38:05 - End Time 2025-01-09 12:38:05 [2025-01-09 12:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209628', 'tblTempUsageDetail_20' ) start [2025-01-09 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209628', 'tblTempUsageDetail_20' ) end [2025-01-09 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209628', 'tblTempVendorCDR_20' ) start [2025-01-09 12:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209628', 'tblTempVendorCDR_20' ) end [2025-01-09 12:38:22] Production.INFO: ProcessCDR(1,14209628,1,1,2) [2025-01-09 12:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209628', 'tblTempUsageDetail_20' ) start [2025-01-09 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209628', 'tblTempUsageDetail_20' ) end [2025-01-09 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:38:27] Production.INFO: ==27464== Releasing lock... [2025-01-09 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:38:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 12:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:39:04 [end_date_ymd] => 2025-01-09 12:39:04 [RateCDR] => 1 ) [2025-01-09 12:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:39:04' and `end` < '2025-01-09 12:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:39:18] Production.INFO: count ==4598 [2025-01-09 12:39:20] Production.ERROR: pbx CDR StartTime 2025-01-09 09:39:04 - End Time 2025-01-09 12:39:04 [2025-01-09 12:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209633', 'tblTempUsageDetail_20' ) start [2025-01-09 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209633', 'tblTempUsageDetail_20' ) end [2025-01-09 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209633', 'tblTempVendorCDR_20' ) start [2025-01-09 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209633', 'tblTempVendorCDR_20' ) end [2025-01-09 12:39:21] Production.INFO: ProcessCDR(1,14209633,1,1,2) [2025-01-09 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209633', 'tblTempUsageDetail_20' ) start [2025-01-09 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209633', 'tblTempUsageDetail_20' ) end [2025-01-09 12:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:39:25] Production.INFO: ==27546== Releasing lock... [2025-01-09 12:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:39:25] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:40:06 [end_date_ymd] => 2025-01-09 12:40:06 [RateCDR] => 1 ) [2025-01-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-01-09 09:40:06' and `end` < '2025-01-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-01-09 12:40:39] Production.INFO: count ==4618 [2025-01-09 12:40:41] Production.ERROR: pbx CDR StartTime 2025-01-09 09:40:06 - End Time 2025-01-09 12:40:06 [2025-01-09 12:40:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:40:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209639', 'tblTempUsageDetail_20' ) start [2025-01-09 12:40:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209639', 'tblTempUsageDetail_20' ) end [2025-01-09 12:40:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209639', 'tblTempVendorCDR_20' ) start [2025-01-09 12:40:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209639', 'tblTempVendorCDR_20' ) end [2025-01-09 12:40:41] Production.INFO: ProcessCDR(1,14209639,1,1,2) [2025-01-09 12:40:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:40:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:40:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:40:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:40:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209639', 'tblTempUsageDetail_20' ) start [2025-01-09 12:40:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209639', 'tblTempUsageDetail_20' ) end [2025-01-09 12:40:46] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:40:46] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:40:46] Production.INFO: ==27636== Releasing lock... [2025-01-09 12:40:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:40:46] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:41:04 [end_date_ymd] => 2025-01-09 12:41:04 [RateCDR] => 1 ) [2025-01-09 12:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:41:04' and `end` < '2025-01-09 12:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:41:26] Production.INFO: count ==4666 [2025-01-09 12:41:28] Production.ERROR: pbx CDR StartTime 2025-01-09 09:41:04 - End Time 2025-01-09 12:41:04 [2025-01-09 12:41:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209644', 'tblTempUsageDetail_20' ) start [2025-01-09 12:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209644', 'tblTempUsageDetail_20' ) end [2025-01-09 12:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209644', 'tblTempVendorCDR_20' ) start [2025-01-09 12:41:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209644', 'tblTempVendorCDR_20' ) end [2025-01-09 12:41:28] Production.INFO: ProcessCDR(1,14209644,1,1,2) [2025-01-09 12:41:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:41:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:41:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:41:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209644', 'tblTempUsageDetail_20' ) start [2025-01-09 12:41:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209644', 'tblTempUsageDetail_20' ) end [2025-01-09 12:41:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:41:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:41:33] Production.INFO: ==27722== Releasing lock... [2025-01-09 12:41:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:41:33] Production.INFO: 63 MB #Memory Used# [2025-01-09 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:42:05 [end_date_ymd] => 2025-01-09 12:42:05 [RateCDR] => 1 ) [2025-01-09 12:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:42:05' and `end` < '2025-01-09 12:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:42:24] Production.INFO: count ==4645 [2025-01-09 12:42:25] Production.ERROR: pbx CDR StartTime 2025-01-09 09:42:05 - End Time 2025-01-09 12:42:05 [2025-01-09 12:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209649', 'tblTempUsageDetail_20' ) start [2025-01-09 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209649', 'tblTempUsageDetail_20' ) end [2025-01-09 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209649', 'tblTempVendorCDR_20' ) start [2025-01-09 12:42:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209649', 'tblTempVendorCDR_20' ) end [2025-01-09 12:42:26] Production.INFO: ProcessCDR(1,14209649,1,1,2) [2025-01-09 12:42:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:42:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:42:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:42:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209649', 'tblTempUsageDetail_20' ) start [2025-01-09 12:42:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209649', 'tblTempUsageDetail_20' ) end [2025-01-09 12:42:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:42:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:42:30] Production.INFO: ==27808== Releasing lock... [2025-01-09 12:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:42:30] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:43:04 [end_date_ymd] => 2025-01-09 12:43:04 [RateCDR] => 1 ) [2025-01-09 12:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:43:04' and `end` < '2025-01-09 12:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:43:20] Production.INFO: count ==4633 [2025-01-09 12:43:22] Production.ERROR: pbx CDR StartTime 2025-01-09 09:43:04 - End Time 2025-01-09 12:43:04 [2025-01-09 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209654', 'tblTempUsageDetail_20' ) start [2025-01-09 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209654', 'tblTempUsageDetail_20' ) end [2025-01-09 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209654', 'tblTempVendorCDR_20' ) start [2025-01-09 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209654', 'tblTempVendorCDR_20' ) end [2025-01-09 12:43:22] Production.INFO: ProcessCDR(1,14209654,1,1,2) [2025-01-09 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209654', 'tblTempUsageDetail_20' ) start [2025-01-09 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209654', 'tblTempUsageDetail_20' ) end [2025-01-09 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:43:27] Production.INFO: ==27893== Releasing lock... [2025-01-09 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:43:27] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:44:05 [end_date_ymd] => 2025-01-09 12:44:05 [RateCDR] => 1 ) [2025-01-09 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:44:05' and `end` < '2025-01-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-01-09 12:44:21] Production.INFO: count ==4629 [2025-01-09 12:44:23] Production.ERROR: pbx CDR StartTime 2025-01-09 09:44:05 - End Time 2025-01-09 12:44:05 [2025-01-09 12:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209659', 'tblTempUsageDetail_20' ) start [2025-01-09 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209659', 'tblTempUsageDetail_20' ) end [2025-01-09 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209659', 'tblTempVendorCDR_20' ) start [2025-01-09 12:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209659', 'tblTempVendorCDR_20' ) end [2025-01-09 12:44:23] Production.INFO: ProcessCDR(1,14209659,1,1,2) [2025-01-09 12:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209659', 'tblTempUsageDetail_20' ) start [2025-01-09 12:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209659', 'tblTempUsageDetail_20' ) end [2025-01-09 12:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:44:28] Production.INFO: ==27981== Releasing lock... [2025-01-09 12:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:44:28] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:45:05 [end_date_ymd] => 2025-01-09 12:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:45:05' and `end` < '2025-01-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-01-09 12:45:19] Production.INFO: count ==4630 [2025-01-09 12:45:21] Production.ERROR: pbx CDR StartTime 2025-01-09 09:45:05 - End Time 2025-01-09 12:45:05 [2025-01-09 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209664', 'tblTempUsageDetail_20' ) start [2025-01-09 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209664', 'tblTempUsageDetail_20' ) end [2025-01-09 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209664', 'tblTempVendorCDR_20' ) start [2025-01-09 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209664', 'tblTempVendorCDR_20' ) end [2025-01-09 12:45:21] Production.INFO: ProcessCDR(1,14209664,1,1,2) [2025-01-09 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209664', 'tblTempUsageDetail_20' ) start [2025-01-09 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209664', 'tblTempUsageDetail_20' ) end [2025-01-09 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:45:26] Production.INFO: ==28071== Releasing lock... [2025-01-09 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:45:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:46:05 [end_date_ymd] => 2025-01-09 12:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:46:05' and `end` < '2025-01-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-01-09 12:46:27] Production.INFO: count ==4637 [2025-01-09 12:46:29] Production.ERROR: pbx CDR StartTime 2025-01-09 09:46:05 - End Time 2025-01-09 12:46:05 [2025-01-09 12:46:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209669', 'tblTempUsageDetail_20' ) start [2025-01-09 12:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209669', 'tblTempUsageDetail_20' ) end [2025-01-09 12:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209669', 'tblTempVendorCDR_20' ) start [2025-01-09 12:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209669', 'tblTempVendorCDR_20' ) end [2025-01-09 12:46:29] Production.INFO: ProcessCDR(1,14209669,1,1,2) [2025-01-09 12:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:46:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:46:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209669', 'tblTempUsageDetail_20' ) start [2025-01-09 12:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209669', 'tblTempUsageDetail_20' ) end [2025-01-09 12:46:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:46:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:46:34] Production.INFO: ==28154== Releasing lock... [2025-01-09 12:46:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:46:34] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:47:05 [end_date_ymd] => 2025-01-09 12:47:05 [RateCDR] => 1 ) [2025-01-09 12:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:47:05' and `end` < '2025-01-09 12:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:47:25] Production.INFO: count ==4637 [2025-01-09 12:47:27] Production.ERROR: pbx CDR StartTime 2025-01-09 09:47:05 - End Time 2025-01-09 12:47:05 [2025-01-09 12:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209674', 'tblTempUsageDetail_20' ) start [2025-01-09 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209674', 'tblTempUsageDetail_20' ) end [2025-01-09 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209674', 'tblTempVendorCDR_20' ) start [2025-01-09 12:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209674', 'tblTempVendorCDR_20' ) end [2025-01-09 12:47:27] Production.INFO: ProcessCDR(1,14209674,1,1,2) [2025-01-09 12:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:47:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:47:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209674', 'tblTempUsageDetail_20' ) start [2025-01-09 12:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209674', 'tblTempUsageDetail_20' ) end [2025-01-09 12:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:47:32] Production.INFO: ==28242== Releasing lock... [2025-01-09 12:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:47:32] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:48:04 [end_date_ymd] => 2025-01-09 12:48:04 [RateCDR] => 1 ) [2025-01-09 12:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:48:04' and `end` < '2025-01-09 12:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:48:30] Production.INFO: count ==4638 [2025-01-09 12:48:32] Production.ERROR: pbx CDR StartTime 2025-01-09 09:48:04 - End Time 2025-01-09 12:48:04 [2025-01-09 12:48:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209679', 'tblTempUsageDetail_20' ) start [2025-01-09 12:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209679', 'tblTempUsageDetail_20' ) end [2025-01-09 12:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209679', 'tblTempVendorCDR_20' ) start [2025-01-09 12:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209679', 'tblTempVendorCDR_20' ) end [2025-01-09 12:48:32] Production.INFO: ProcessCDR(1,14209679,1,1,2) [2025-01-09 12:48:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:48:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:48:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:48:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209679', 'tblTempUsageDetail_20' ) start [2025-01-09 12:48:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209679', 'tblTempUsageDetail_20' ) end [2025-01-09 12:48:36] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:48:36] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:48:36] Production.INFO: ==28365== Releasing lock... [2025-01-09 12:48:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:48:36] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:49:05 [end_date_ymd] => 2025-01-09 12:49:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:49:05' and `end` < '2025-01-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-01-09 12:49:25] Production.INFO: count ==4654 [2025-01-09 12:49:27] Production.ERROR: pbx CDR StartTime 2025-01-09 09:49:05 - End Time 2025-01-09 12:49:05 [2025-01-09 12:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209684', 'tblTempUsageDetail_20' ) start [2025-01-09 12:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209684', 'tblTempUsageDetail_20' ) end [2025-01-09 12:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209684', 'tblTempVendorCDR_20' ) start [2025-01-09 12:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209684', 'tblTempVendorCDR_20' ) end [2025-01-09 12:49:27] Production.INFO: ProcessCDR(1,14209684,1,1,2) [2025-01-09 12:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:49:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:49:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:49:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209684', 'tblTempUsageDetail_20' ) start [2025-01-09 12:49:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209684', 'tblTempUsageDetail_20' ) end [2025-01-09 12:49:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:49:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:49:32] Production.INFO: ==28450== Releasing lock... [2025-01-09 12:49:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:49:32] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:50:05 [end_date_ymd] => 2025-01-09 12:50:05 [RateCDR] => 1 ) [2025-01-09 12:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:50:05' and `end` < '2025-01-09 12:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:50:27] Production.INFO: count ==4653 [2025-01-09 12:50:29] Production.ERROR: pbx CDR StartTime 2025-01-09 09:50:05 - End Time 2025-01-09 12:50:05 [2025-01-09 12:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209690', 'tblTempUsageDetail_20' ) start [2025-01-09 12:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209690', 'tblTempUsageDetail_20' ) end [2025-01-09 12:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209690', 'tblTempVendorCDR_20' ) start [2025-01-09 12:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209690', 'tblTempVendorCDR_20' ) end [2025-01-09 12:50:29] Production.INFO: ProcessCDR(1,14209690,1,1,2) [2025-01-09 12:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209690', 'tblTempUsageDetail_20' ) start [2025-01-09 12:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209690', 'tblTempUsageDetail_20' ) end [2025-01-09 12:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:50:33] Production.INFO: ==28528== Releasing lock... [2025-01-09 12:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:50:33] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:51:04 [end_date_ymd] => 2025-01-09 12:51:04 [RateCDR] => 1 ) [2025-01-09 12:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:51:04' and `end` < '2025-01-09 12:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:51:22] Production.INFO: count ==4661 [2025-01-09 12:51:24] Production.ERROR: pbx CDR StartTime 2025-01-09 09:51:04 - End Time 2025-01-09 12:51:04 [2025-01-09 12:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209695', 'tblTempUsageDetail_20' ) start [2025-01-09 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209695', 'tblTempUsageDetail_20' ) end [2025-01-09 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209695', 'tblTempVendorCDR_20' ) start [2025-01-09 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209695', 'tblTempVendorCDR_20' ) end [2025-01-09 12:51:24] Production.INFO: ProcessCDR(1,14209695,1,1,2) [2025-01-09 12:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209695', 'tblTempUsageDetail_20' ) start [2025-01-09 12:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209695', 'tblTempUsageDetail_20' ) end [2025-01-09 12:51:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:51:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:51:29] Production.INFO: ==28606== Releasing lock... [2025-01-09 12:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:51:29] Production.INFO: 63 MB #Memory Used# [2025-01-09 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:52:05 [end_date_ymd] => 2025-01-09 12:52:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:52:05' and `end` < '2025-01-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-01-09 12:52:19] Production.INFO: count ==4648 [2025-01-09 12:52:21] Production.ERROR: pbx CDR StartTime 2025-01-09 09:52:05 - End Time 2025-01-09 12:52:05 [2025-01-09 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209700', 'tblTempUsageDetail_20' ) start [2025-01-09 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209700', 'tblTempUsageDetail_20' ) end [2025-01-09 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209700', 'tblTempVendorCDR_20' ) start [2025-01-09 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209700', 'tblTempVendorCDR_20' ) end [2025-01-09 12:52:21] Production.INFO: ProcessCDR(1,14209700,1,1,2) [2025-01-09 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209700', 'tblTempUsageDetail_20' ) start [2025-01-09 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209700', 'tblTempUsageDetail_20' ) end [2025-01-09 12:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:52:25] Production.INFO: ==28681== Releasing lock... [2025-01-09 12:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:52:25] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:53:04 [end_date_ymd] => 2025-01-09 12:53:04 [RateCDR] => 1 ) [2025-01-09 12:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:53:04' and `end` < '2025-01-09 12:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:53:25] Production.INFO: count ==4641 [2025-01-09 12:53:27] Production.ERROR: pbx CDR StartTime 2025-01-09 09:53:04 - End Time 2025-01-09 12:53:04 [2025-01-09 12:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209705', 'tblTempUsageDetail_20' ) start [2025-01-09 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209705', 'tblTempUsageDetail_20' ) end [2025-01-09 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209705', 'tblTempVendorCDR_20' ) start [2025-01-09 12:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209705', 'tblTempVendorCDR_20' ) end [2025-01-09 12:53:27] Production.INFO: ProcessCDR(1,14209705,1,1,2) [2025-01-09 12:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:53:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:53:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209705', 'tblTempUsageDetail_20' ) start [2025-01-09 12:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209705', 'tblTempUsageDetail_20' ) end [2025-01-09 12:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:53:32] Production.INFO: ==28751== Releasing lock... [2025-01-09 12:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:53:32] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:54:06 [end_date_ymd] => 2025-01-09 12:54:06 [RateCDR] => 1 ) [2025-01-09 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:54:06' and `end` < '2025-01-09 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:54:23] Production.INFO: count ==4640 [2025-01-09 12:54:25] Production.ERROR: pbx CDR StartTime 2025-01-09 09:54:06 - End Time 2025-01-09 12:54:06 [2025-01-09 12:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209710', 'tblTempUsageDetail_20' ) start [2025-01-09 12:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209710', 'tblTempUsageDetail_20' ) end [2025-01-09 12:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209710', 'tblTempVendorCDR_20' ) start [2025-01-09 12:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209710', 'tblTempVendorCDR_20' ) end [2025-01-09 12:54:25] Production.INFO: ProcessCDR(1,14209710,1,1,2) [2025-01-09 12:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209710', 'tblTempUsageDetail_20' ) start [2025-01-09 12:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209710', 'tblTempUsageDetail_20' ) end [2025-01-09 12:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:54:30] Production.INFO: ==28843== Releasing lock... [2025-01-09 12:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:54:30] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:55:05 [end_date_ymd] => 2025-01-09 12:55:05 [RateCDR] => 1 ) [2025-01-09 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:55:05' and `end` < '2025-01-09 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:55:19] Production.INFO: count ==4644 [2025-01-09 12:55:21] Production.ERROR: pbx CDR StartTime 2025-01-09 09:55:05 - End Time 2025-01-09 12:55:05 [2025-01-09 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209715', 'tblTempUsageDetail_20' ) start [2025-01-09 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209715', 'tblTempUsageDetail_20' ) end [2025-01-09 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209715', 'tblTempVendorCDR_20' ) start [2025-01-09 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209715', 'tblTempVendorCDR_20' ) end [2025-01-09 12:55:22] Production.INFO: ProcessCDR(1,14209715,1,1,2) [2025-01-09 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209715', 'tblTempUsageDetail_20' ) start [2025-01-09 12:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209715', 'tblTempUsageDetail_20' ) end [2025-01-09 12:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:55:27] Production.INFO: ==28916== Releasing lock... [2025-01-09 12:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:55:27] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:56:05 [end_date_ymd] => 2025-01-09 12:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:56:05' and `end` < '2025-01-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-01-09 12:56:28] Production.INFO: count ==4625 [2025-01-09 12:56:30] Production.ERROR: pbx CDR StartTime 2025-01-09 09:56:05 - End Time 2025-01-09 12:56:05 [2025-01-09 12:56:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209720', 'tblTempUsageDetail_20' ) start [2025-01-09 12:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209720', 'tblTempUsageDetail_20' ) end [2025-01-09 12:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209720', 'tblTempVendorCDR_20' ) start [2025-01-09 12:56:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209720', 'tblTempVendorCDR_20' ) end [2025-01-09 12:56:30] Production.INFO: ProcessCDR(1,14209720,1,1,2) [2025-01-09 12:56:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:56:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:56:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:56:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209720', 'tblTempUsageDetail_20' ) start [2025-01-09 12:56:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209720', 'tblTempUsageDetail_20' ) end [2025-01-09 12:56:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:56:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:56:34] Production.INFO: ==28989== Releasing lock... [2025-01-09 12:56:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:56:34] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:57:04 [end_date_ymd] => 2025-01-09 12:57:04 [RateCDR] => 1 ) [2025-01-09 12:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:57:04' and `end` < '2025-01-09 12:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:57:21] Production.INFO: count ==4616 [2025-01-09 12:57:23] Production.ERROR: pbx CDR StartTime 2025-01-09 09:57:04 - End Time 2025-01-09 12:57:04 [2025-01-09 12:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209725', 'tblTempUsageDetail_20' ) start [2025-01-09 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209725', 'tblTempUsageDetail_20' ) end [2025-01-09 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209725', 'tblTempVendorCDR_20' ) start [2025-01-09 12:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209725', 'tblTempVendorCDR_20' ) end [2025-01-09 12:57:23] Production.INFO: ProcessCDR(1,14209725,1,1,2) [2025-01-09 12:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209725', 'tblTempUsageDetail_20' ) start [2025-01-09 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209725', 'tblTempUsageDetail_20' ) end [2025-01-09 12:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:57:27] Production.INFO: ==29061== Releasing lock... [2025-01-09 12:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:57:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:58:05 [end_date_ymd] => 2025-01-09 12:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 09:58:05' and `end` < '2025-01-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-01-09 12:58:20] Production.INFO: count ==4605 [2025-01-09 12:58:21] Production.ERROR: pbx CDR StartTime 2025-01-09 09:58:05 - End Time 2025-01-09 12:58:05 [2025-01-09 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209730', 'tblTempUsageDetail_20' ) start [2025-01-09 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209730', 'tblTempUsageDetail_20' ) end [2025-01-09 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209730', 'tblTempVendorCDR_20' ) start [2025-01-09 12:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209730', 'tblTempVendorCDR_20' ) end [2025-01-09 12:58:22] Production.INFO: ProcessCDR(1,14209730,1,1,2) [2025-01-09 12:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209730', 'tblTempUsageDetail_20' ) start [2025-01-09 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209730', 'tblTempUsageDetail_20' ) end [2025-01-09 12:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:58:26] Production.INFO: ==29131== Releasing lock... [2025-01-09 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:58:26] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 12:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 09:59:04 [end_date_ymd] => 2025-01-09 12:59:04 [RateCDR] => 1 ) [2025-01-09 12:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 09:59:04' and `end` < '2025-01-09 12:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 12:59:23] Production.INFO: count ==4591 [2025-01-09 12:59:24] Production.ERROR: pbx CDR StartTime 2025-01-09 09:59:04 - End Time 2025-01-09 12:59:04 [2025-01-09 12:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 12:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209735', 'tblTempUsageDetail_20' ) start [2025-01-09 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209735', 'tblTempUsageDetail_20' ) end [2025-01-09 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209735', 'tblTempVendorCDR_20' ) start [2025-01-09 12:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209735', 'tblTempVendorCDR_20' ) end [2025-01-09 12:59:25] Production.INFO: ProcessCDR(1,14209735,1,1,2) [2025-01-09 12:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 12:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 12:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209735', 'tblTempUsageDetail_20' ) start [2025-01-09 12:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209735', 'tblTempUsageDetail_20' ) end [2025-01-09 12:59:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 12:59:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 12:59:29] Production.INFO: ==29203== Releasing lock... [2025-01-09 12:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 12:59:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:00:06 [end_date_ymd] => 2025-01-09 13:00:06 [RateCDR] => 1 ) [2025-01-09 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:00:06' and `end` < '2025-01-09 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:00:31] Production.INFO: count ==4560 [2025-01-09 13:00:33] Production.ERROR: pbx CDR StartTime 2025-01-09 10:00:06 - End Time 2025-01-09 13:00:06 [2025-01-09 13:00:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209741', 'tblTempUsageDetail_20' ) start [2025-01-09 13:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209741', 'tblTempUsageDetail_20' ) end [2025-01-09 13:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209741', 'tblTempVendorCDR_20' ) start [2025-01-09 13:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209741', 'tblTempVendorCDR_20' ) end [2025-01-09 13:00:33] Production.INFO: ProcessCDR(1,14209741,1,1,2) [2025-01-09 13:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:00:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:00:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209741', 'tblTempUsageDetail_20' ) start [2025-01-09 13:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209741', 'tblTempUsageDetail_20' ) end [2025-01-09 13:00:38] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:00:38] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:00:38] Production.INFO: ==29280== Releasing lock... [2025-01-09 13:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:00:38] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 13:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:01:04 [end_date_ymd] => 2025-01-09 13:01:04 [RateCDR] => 1 ) [2025-01-09 13:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:01:04' and `end` < '2025-01-09 13:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:01:24] Production.INFO: count ==4516 [2025-01-09 13:01:25] Production.ERROR: pbx CDR StartTime 2025-01-09 10:01:04 - End Time 2025-01-09 13:01:04 [2025-01-09 13:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209746', 'tblTempUsageDetail_20' ) start [2025-01-09 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209746', 'tblTempUsageDetail_20' ) end [2025-01-09 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209746', 'tblTempVendorCDR_20' ) start [2025-01-09 13:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209746', 'tblTempVendorCDR_20' ) end [2025-01-09 13:01:26] Production.INFO: ProcessCDR(1,14209746,1,1,2) [2025-01-09 13:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209746', 'tblTempUsageDetail_20' ) start [2025-01-09 13:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209746', 'tblTempUsageDetail_20' ) end [2025-01-09 13:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:01:30] Production.INFO: ==29366== Releasing lock... [2025-01-09 13:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:01:30] Production.INFO: 61.75 MB #Memory Used# [2025-01-09 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:02:05 [end_date_ymd] => 2025-01-09 13:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:02:05' and `end` < '2025-01-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-01-09 13:02:21] Production.INFO: count ==4499 [2025-01-09 13:02:23] Production.ERROR: pbx CDR StartTime 2025-01-09 10:02:05 - End Time 2025-01-09 13:02:05 [2025-01-09 13:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209751', 'tblTempUsageDetail_20' ) start [2025-01-09 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209751', 'tblTempUsageDetail_20' ) end [2025-01-09 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209751', 'tblTempVendorCDR_20' ) start [2025-01-09 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209751', 'tblTempVendorCDR_20' ) end [2025-01-09 13:02:23] Production.INFO: ProcessCDR(1,14209751,1,1,2) [2025-01-09 13:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209751', 'tblTempUsageDetail_20' ) start [2025-01-09 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209751', 'tblTempUsageDetail_20' ) end [2025-01-09 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:02:28] Production.INFO: ==29443== Releasing lock... [2025-01-09 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:02:28] Production.INFO: 61.75 MB #Memory Used# [2025-01-09 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:03:05 [end_date_ymd] => 2025-01-09 13:03:05 [RateCDR] => 1 ) [2025-01-09 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:03:05' and `end` < '2025-01-09 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:03:19] Production.INFO: count ==4509 [2025-01-09 13:03:21] Production.ERROR: pbx CDR StartTime 2025-01-09 10:03:05 - End Time 2025-01-09 13:03:05 [2025-01-09 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209756', 'tblTempUsageDetail_20' ) start [2025-01-09 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209756', 'tblTempUsageDetail_20' ) end [2025-01-09 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209756', 'tblTempVendorCDR_20' ) start [2025-01-09 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209756', 'tblTempVendorCDR_20' ) end [2025-01-09 13:03:21] Production.INFO: ProcessCDR(1,14209756,1,1,2) [2025-01-09 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209756', 'tblTempUsageDetail_20' ) start [2025-01-09 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209756', 'tblTempUsageDetail_20' ) end [2025-01-09 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:03:26] Production.INFO: ==29516== Releasing lock... [2025-01-09 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:03:26] Production.INFO: 61.75 MB #Memory Used# [2025-01-09 13:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:04:04 [end_date_ymd] => 2025-01-09 13:04:04 [RateCDR] => 1 ) [2025-01-09 13:04:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:04:04' and `end` < '2025-01-09 13:04:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:04:24] Production.INFO: count ==4516 [2025-01-09 13:04:26] Production.ERROR: pbx CDR StartTime 2025-01-09 10:04:04 - End Time 2025-01-09 13:04:04 [2025-01-09 13:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209761', 'tblTempUsageDetail_20' ) start [2025-01-09 13:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209761', 'tblTempUsageDetail_20' ) end [2025-01-09 13:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209761', 'tblTempVendorCDR_20' ) start [2025-01-09 13:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209761', 'tblTempVendorCDR_20' ) end [2025-01-09 13:04:26] Production.INFO: ProcessCDR(1,14209761,1,1,2) [2025-01-09 13:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209761', 'tblTempUsageDetail_20' ) start [2025-01-09 13:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209761', 'tblTempUsageDetail_20' ) end [2025-01-09 13:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:04:31] Production.INFO: ==29626== Releasing lock... [2025-01-09 13:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:04:31] Production.INFO: 61.75 MB #Memory Used# [2025-01-09 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:05:05 [end_date_ymd] => 2025-01-09 13:05:05 [RateCDR] => 1 ) [2025-01-09 13:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:05:05' and `end` < '2025-01-09 13:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:05:21] Production.INFO: count ==4512 [2025-01-09 13:05:22] Production.ERROR: pbx CDR StartTime 2025-01-09 10:05:05 - End Time 2025-01-09 13:05:05 [2025-01-09 13:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209765', 'tblTempUsageDetail_20' ) start [2025-01-09 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209765', 'tblTempUsageDetail_20' ) end [2025-01-09 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209765', 'tblTempVendorCDR_20' ) start [2025-01-09 13:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209765', 'tblTempVendorCDR_20' ) end [2025-01-09 13:05:23] Production.INFO: ProcessCDR(1,14209765,1,1,2) [2025-01-09 13:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209765', 'tblTempUsageDetail_20' ) start [2025-01-09 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209765', 'tblTempUsageDetail_20' ) end [2025-01-09 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:05:27] Production.INFO: ==29701== Releasing lock... [2025-01-09 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:05:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-09 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:06:05 [end_date_ymd] => 2025-01-09 13:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:06:05' and `end` < '2025-01-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-01-09 13:06:29] Production.INFO: count ==4505 [2025-01-09 13:06:31] Production.ERROR: pbx CDR StartTime 2025-01-09 10:06:05 - End Time 2025-01-09 13:06:05 [2025-01-09 13:06:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209771', 'tblTempUsageDetail_20' ) start [2025-01-09 13:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209771', 'tblTempUsageDetail_20' ) end [2025-01-09 13:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209771', 'tblTempVendorCDR_20' ) start [2025-01-09 13:06:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209771', 'tblTempVendorCDR_20' ) end [2025-01-09 13:06:31] Production.INFO: ProcessCDR(1,14209771,1,1,2) [2025-01-09 13:06:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:06:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:06:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209771', 'tblTempUsageDetail_20' ) start [2025-01-09 13:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209771', 'tblTempUsageDetail_20' ) end [2025-01-09 13:06:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:06:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:06:35] Production.INFO: ==29782== Releasing lock... [2025-01-09 13:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:06:35] Production.INFO: 61.75 MB #Memory Used# [2025-01-09 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:07:05 [end_date_ymd] => 2025-01-09 13:07:05 [RateCDR] => 1 ) [2025-01-09 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:07:05' and `end` < '2025-01-09 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:07:22] Production.INFO: count ==4506 [2025-01-09 13:07:24] Production.ERROR: pbx CDR StartTime 2025-01-09 10:07:05 - End Time 2025-01-09 13:07:05 [2025-01-09 13:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209776', 'tblTempUsageDetail_20' ) start [2025-01-09 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209776', 'tblTempUsageDetail_20' ) end [2025-01-09 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209776', 'tblTempVendorCDR_20' ) start [2025-01-09 13:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209776', 'tblTempVendorCDR_20' ) end [2025-01-09 13:07:24] Production.INFO: ProcessCDR(1,14209776,1,1,2) [2025-01-09 13:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209776', 'tblTempUsageDetail_20' ) start [2025-01-09 13:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209776', 'tblTempUsageDetail_20' ) end [2025-01-09 13:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:07:29] Production.INFO: ==29861== Releasing lock... [2025-01-09 13:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:07:29] Production.INFO: 61.75 MB #Memory Used# [2025-01-09 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:08:05 [end_date_ymd] => 2025-01-09 13:08:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:08:05' and `end` < '2025-01-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-01-09 13:08:20] Production.INFO: count ==4488 [2025-01-09 13:08:22] Production.ERROR: pbx CDR StartTime 2025-01-09 10:08:05 - End Time 2025-01-09 13:08:05 [2025-01-09 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209781', 'tblTempUsageDetail_20' ) start [2025-01-09 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209781', 'tblTempUsageDetail_20' ) end [2025-01-09 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209781', 'tblTempVendorCDR_20' ) start [2025-01-09 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209781', 'tblTempVendorCDR_20' ) end [2025-01-09 13:08:22] Production.INFO: ProcessCDR(1,14209781,1,1,2) [2025-01-09 13:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209781', 'tblTempUsageDetail_20' ) start [2025-01-09 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209781', 'tblTempUsageDetail_20' ) end [2025-01-09 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:08:27] Production.INFO: ==29935== Releasing lock... [2025-01-09 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:08:27] Production.INFO: 61.5 MB #Memory Used# [2025-01-09 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:09:04 [end_date_ymd] => 2025-01-09 13:09:04 [RateCDR] => 1 ) [2025-01-09 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:09:04' and `end` < '2025-01-09 13:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:09:18] Production.INFO: count ==4487 [2025-01-09 13:09:20] Production.ERROR: pbx CDR StartTime 2025-01-09 10:09:04 - End Time 2025-01-09 13:09:04 [2025-01-09 13:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209786', 'tblTempUsageDetail_20' ) start [2025-01-09 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209786', 'tblTempUsageDetail_20' ) end [2025-01-09 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209786', 'tblTempVendorCDR_20' ) start [2025-01-09 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209786', 'tblTempVendorCDR_20' ) end [2025-01-09 13:09:21] Production.INFO: ProcessCDR(1,14209786,1,1,2) [2025-01-09 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209786', 'tblTempUsageDetail_20' ) start [2025-01-09 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209786', 'tblTempUsageDetail_20' ) end [2025-01-09 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:09:26] Production.INFO: ==30007== Releasing lock... [2025-01-09 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:09:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-09 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:10:06 [end_date_ymd] => 2025-01-09 13:10:06 [RateCDR] => 1 ) [2025-01-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-01-09 10:10:06' and `end` < '2025-01-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-01-09 13:10:21] Production.INFO: count ==4490 [2025-01-09 13:10:22] Production.ERROR: pbx CDR StartTime 2025-01-09 10:10:06 - End Time 2025-01-09 13:10:06 [2025-01-09 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209792', 'tblTempUsageDetail_20' ) start [2025-01-09 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209792', 'tblTempUsageDetail_20' ) end [2025-01-09 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209792', 'tblTempVendorCDR_20' ) start [2025-01-09 13:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209792', 'tblTempVendorCDR_20' ) end [2025-01-09 13:10:23] Production.INFO: ProcessCDR(1,14209792,1,1,2) [2025-01-09 13:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209792', 'tblTempUsageDetail_20' ) start [2025-01-09 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209792', 'tblTempUsageDetail_20' ) end [2025-01-09 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:10:28] Production.INFO: ==30084== Releasing lock... [2025-01-09 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:10:28] Production.INFO: 61.5 MB #Memory Used# [2025-01-09 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:11:05 [end_date_ymd] => 2025-01-09 13:11:05 [RateCDR] => 1 ) [2025-01-09 13:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:11:05' and `end` < '2025-01-09 13:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:11:21] Production.INFO: count ==4553 [2025-01-09 13:11:23] Production.ERROR: pbx CDR StartTime 2025-01-09 10:11:05 - End Time 2025-01-09 13:11:05 [2025-01-09 13:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209797', 'tblTempUsageDetail_20' ) start [2025-01-09 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209797', 'tblTempUsageDetail_20' ) end [2025-01-09 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209797', 'tblTempVendorCDR_20' ) start [2025-01-09 13:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209797', 'tblTempVendorCDR_20' ) end [2025-01-09 13:11:23] Production.INFO: ProcessCDR(1,14209797,1,1,2) [2025-01-09 13:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209797', 'tblTempUsageDetail_20' ) start [2025-01-09 13:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209797', 'tblTempUsageDetail_20' ) end [2025-01-09 13:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:11:28] Production.INFO: ==30159== Releasing lock... [2025-01-09 13:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:11:28] Production.INFO: 62 MB #Memory Used# [2025-01-09 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:12:05 [end_date_ymd] => 2025-01-09 13:12:05 [RateCDR] => 1 ) [2025-01-09 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:12:05' and `end` < '2025-01-09 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:12:29] Production.INFO: count ==4552 [2025-01-09 13:12:30] Production.ERROR: pbx CDR StartTime 2025-01-09 10:12:05 - End Time 2025-01-09 13:12:05 [2025-01-09 13:12:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209802', 'tblTempUsageDetail_20' ) start [2025-01-09 13:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209802', 'tblTempUsageDetail_20' ) end [2025-01-09 13:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209802', 'tblTempVendorCDR_20' ) start [2025-01-09 13:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209802', 'tblTempVendorCDR_20' ) end [2025-01-09 13:12:31] Production.INFO: ProcessCDR(1,14209802,1,1,2) [2025-01-09 13:12:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:12:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:12:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:12:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209802', 'tblTempUsageDetail_20' ) start [2025-01-09 13:12:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209802', 'tblTempUsageDetail_20' ) end [2025-01-09 13:12:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:12:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:12:35] Production.INFO: ==30234== Releasing lock... [2025-01-09 13:12:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:12:35] Production.INFO: 62 MB #Memory Used# [2025-01-09 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:13:05 [end_date_ymd] => 2025-01-09 13:13:05 [RateCDR] => 1 ) [2025-01-09 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:13:05' and `end` < '2025-01-09 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:13:28] Production.INFO: count ==4555 [2025-01-09 13:13:29] Production.ERROR: pbx CDR StartTime 2025-01-09 10:13:05 - End Time 2025-01-09 13:13:05 [2025-01-09 13:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209807', 'tblTempUsageDetail_20' ) start [2025-01-09 13:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209807', 'tblTempUsageDetail_20' ) end [2025-01-09 13:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209807', 'tblTempVendorCDR_20' ) start [2025-01-09 13:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209807', 'tblTempVendorCDR_20' ) end [2025-01-09 13:13:30] Production.INFO: ProcessCDR(1,14209807,1,1,2) [2025-01-09 13:13:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:13:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:13:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209807', 'tblTempUsageDetail_20' ) start [2025-01-09 13:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209807', 'tblTempUsageDetail_20' ) end [2025-01-09 13:13:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:13:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:13:34] Production.INFO: ==30311== Releasing lock... [2025-01-09 13:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:13:34] Production.INFO: 62 MB #Memory Used# [2025-01-09 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:14:05 [end_date_ymd] => 2025-01-09 13:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:14:05' and `end` < '2025-01-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-01-09 13:14:24] Production.INFO: count ==4572 [2025-01-09 13:14:26] Production.ERROR: pbx CDR StartTime 2025-01-09 10:14:05 - End Time 2025-01-09 13:14:05 [2025-01-09 13:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209812', 'tblTempUsageDetail_20' ) start [2025-01-09 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209812', 'tblTempUsageDetail_20' ) end [2025-01-09 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209812', 'tblTempVendorCDR_20' ) start [2025-01-09 13:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209812', 'tblTempVendorCDR_20' ) end [2025-01-09 13:14:26] Production.INFO: ProcessCDR(1,14209812,1,1,2) [2025-01-09 13:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:14:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:14:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:14:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209812', 'tblTempUsageDetail_20' ) start [2025-01-09 13:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209812', 'tblTempUsageDetail_20' ) end [2025-01-09 13:14:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:14:30] Production.INFO: ==30387== Releasing lock... [2025-01-09 13:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:14:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 13:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:15:04 [end_date_ymd] => 2025-01-09 13:15:04 [RateCDR] => 1 ) [2025-01-09 13:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:15:04' and `end` < '2025-01-09 13:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:15:27] Production.INFO: count ==4538 [2025-01-09 13:15:29] Production.ERROR: pbx CDR StartTime 2025-01-09 10:15:04 - End Time 2025-01-09 13:15:04 [2025-01-09 13:15:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209817', 'tblTempUsageDetail_20' ) start [2025-01-09 13:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209817', 'tblTempUsageDetail_20' ) end [2025-01-09 13:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209817', 'tblTempVendorCDR_20' ) start [2025-01-09 13:15:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209817', 'tblTempVendorCDR_20' ) end [2025-01-09 13:15:29] Production.INFO: ProcessCDR(1,14209817,1,1,2) [2025-01-09 13:15:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:15:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:15:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:15:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209817', 'tblTempUsageDetail_20' ) start [2025-01-09 13:15:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209817', 'tblTempUsageDetail_20' ) end [2025-01-09 13:15:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:15:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:15:34] Production.INFO: ==30460== Releasing lock... [2025-01-09 13:15:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:15:34] Production.INFO: 62 MB #Memory Used# [2025-01-09 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:16:05 [end_date_ymd] => 2025-01-09 13:16:05 [RateCDR] => 1 ) [2025-01-09 13:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:16:05' and `end` < '2025-01-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-01-09 13:16:27] Production.INFO: count ==4523 [2025-01-09 13:16:29] Production.ERROR: pbx CDR StartTime 2025-01-09 10:16:05 - End Time 2025-01-09 13:16:05 [2025-01-09 13:16:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209822', 'tblTempUsageDetail_20' ) start [2025-01-09 13:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209822', 'tblTempUsageDetail_20' ) end [2025-01-09 13:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209822', 'tblTempVendorCDR_20' ) start [2025-01-09 13:16:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209822', 'tblTempVendorCDR_20' ) end [2025-01-09 13:16:29] Production.INFO: ProcessCDR(1,14209822,1,1,2) [2025-01-09 13:16:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:16:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:16:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:16:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209822', 'tblTempUsageDetail_20' ) start [2025-01-09 13:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209822', 'tblTempUsageDetail_20' ) end [2025-01-09 13:16:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:16:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:16:34] Production.INFO: ==30537== Releasing lock... [2025-01-09 13:16:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:16:34] Production.INFO: 61.75 MB #Memory Used# [2025-01-09 13:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:17:04 [end_date_ymd] => 2025-01-09 13:17:04 [RateCDR] => 1 ) [2025-01-09 13:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:17:04' and `end` < '2025-01-09 13:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:17:20] Production.INFO: count ==4543 [2025-01-09 13:17:22] Production.ERROR: pbx CDR StartTime 2025-01-09 10:17:04 - End Time 2025-01-09 13:17:04 [2025-01-09 13:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209827', 'tblTempUsageDetail_20' ) start [2025-01-09 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209827', 'tblTempUsageDetail_20' ) end [2025-01-09 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209827', 'tblTempVendorCDR_20' ) start [2025-01-09 13:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209827', 'tblTempVendorCDR_20' ) end [2025-01-09 13:17:22] Production.INFO: ProcessCDR(1,14209827,1,1,2) [2025-01-09 13:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209827', 'tblTempUsageDetail_20' ) start [2025-01-09 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209827', 'tblTempUsageDetail_20' ) end [2025-01-09 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:17:27] Production.INFO: ==30608== Releasing lock... [2025-01-09 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:17:27] Production.INFO: 62 MB #Memory Used# [2025-01-09 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:18:05 [end_date_ymd] => 2025-01-09 13:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:18:05' and `end` < '2025-01-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-01-09 13:18:23] Production.INFO: count ==4549 [2025-01-09 13:18:25] Production.ERROR: pbx CDR StartTime 2025-01-09 10:18:05 - End Time 2025-01-09 13:18:05 [2025-01-09 13:18:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209832', 'tblTempUsageDetail_20' ) start [2025-01-09 13:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209832', 'tblTempUsageDetail_20' ) end [2025-01-09 13:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209832', 'tblTempVendorCDR_20' ) start [2025-01-09 13:18:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209832', 'tblTempVendorCDR_20' ) end [2025-01-09 13:18:25] Production.INFO: ProcessCDR(1,14209832,1,1,2) [2025-01-09 13:18:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:18:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:18:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209832', 'tblTempUsageDetail_20' ) start [2025-01-09 13:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209832', 'tblTempUsageDetail_20' ) end [2025-01-09 13:18:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:18:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:18:29] Production.INFO: ==30677== Releasing lock... [2025-01-09 13:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:18:29] Production.INFO: 62 MB #Memory Used# [2025-01-09 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:19:05 [end_date_ymd] => 2025-01-09 13:19:05 [RateCDR] => 1 ) [2025-01-09 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:19:05' and `end` < '2025-01-09 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:19:18] Production.INFO: count ==4552 [2025-01-09 13:19:20] Production.ERROR: pbx CDR StartTime 2025-01-09 10:19:05 - End Time 2025-01-09 13:19:05 [2025-01-09 13:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209837', 'tblTempUsageDetail_20' ) start [2025-01-09 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209837', 'tblTempUsageDetail_20' ) end [2025-01-09 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209837', 'tblTempVendorCDR_20' ) start [2025-01-09 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209837', 'tblTempVendorCDR_20' ) end [2025-01-09 13:19:21] Production.INFO: ProcessCDR(1,14209837,1,1,2) [2025-01-09 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209837', 'tblTempUsageDetail_20' ) start [2025-01-09 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209837', 'tblTempUsageDetail_20' ) end [2025-01-09 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:19:26] Production.INFO: ==30748== Releasing lock... [2025-01-09 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:19:26] Production.INFO: 62 MB #Memory Used# [2025-01-09 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:20:06 [end_date_ymd] => 2025-01-09 13:20:06 [RateCDR] => 1 ) [2025-01-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-01-09 10:20:06' and `end` < '2025-01-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-01-09 13:20:30] Production.INFO: count ==4538 [2025-01-09 13:20:32] Production.ERROR: pbx CDR StartTime 2025-01-09 10:20:06 - End Time 2025-01-09 13:20:06 [2025-01-09 13:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209843', 'tblTempUsageDetail_20' ) start [2025-01-09 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209843', 'tblTempUsageDetail_20' ) end [2025-01-09 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209843', 'tblTempVendorCDR_20' ) start [2025-01-09 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209843', 'tblTempVendorCDR_20' ) end [2025-01-09 13:20:32] Production.INFO: ProcessCDR(1,14209843,1,1,2) [2025-01-09 13:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209843', 'tblTempUsageDetail_20' ) start [2025-01-09 13:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209843', 'tblTempUsageDetail_20' ) end [2025-01-09 13:20:36] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:20:37] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:20:37] Production.INFO: ==30864== Releasing lock... [2025-01-09 13:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:20:37] Production.INFO: 62 MB #Memory Used# [2025-01-09 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:21:05 [end_date_ymd] => 2025-01-09 13:21:05 [RateCDR] => 1 ) [2025-01-09 13:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:21:05' and `end` < '2025-01-09 13:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:21:25] Production.INFO: count ==4544 [2025-01-09 13:21:26] Production.ERROR: pbx CDR StartTime 2025-01-09 10:21:05 - End Time 2025-01-09 13:21:05 [2025-01-09 13:21:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209848', 'tblTempUsageDetail_20' ) start [2025-01-09 13:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209848', 'tblTempUsageDetail_20' ) end [2025-01-09 13:21:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209848', 'tblTempVendorCDR_20' ) start [2025-01-09 13:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209848', 'tblTempVendorCDR_20' ) end [2025-01-09 13:21:27] Production.INFO: ProcessCDR(1,14209848,1,1,2) [2025-01-09 13:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:21:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:21:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209848', 'tblTempUsageDetail_20' ) start [2025-01-09 13:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209848', 'tblTempUsageDetail_20' ) end [2025-01-09 13:21:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:21:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:21:31] Production.INFO: ==30944== Releasing lock... [2025-01-09 13:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:21:31] Production.INFO: 62 MB #Memory Used# [2025-01-09 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:22:05 [end_date_ymd] => 2025-01-09 13:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:22:05' and `end` < '2025-01-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-01-09 13:22:21] Production.INFO: count ==4554 [2025-01-09 13:22:22] Production.ERROR: pbx CDR StartTime 2025-01-09 10:22:05 - End Time 2025-01-09 13:22:05 [2025-01-09 13:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209853', 'tblTempUsageDetail_20' ) start [2025-01-09 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209853', 'tblTempUsageDetail_20' ) end [2025-01-09 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209853', 'tblTempVendorCDR_20' ) start [2025-01-09 13:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209853', 'tblTempVendorCDR_20' ) end [2025-01-09 13:22:23] Production.INFO: ProcessCDR(1,14209853,1,1,2) [2025-01-09 13:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209853', 'tblTempUsageDetail_20' ) start [2025-01-09 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209853', 'tblTempUsageDetail_20' ) end [2025-01-09 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:22:27] Production.INFO: ==31013== Releasing lock... [2025-01-09 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:22:27] Production.INFO: 62 MB #Memory Used# [2025-01-09 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:23:05 [end_date_ymd] => 2025-01-09 13:23:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:23:05' and `end` < '2025-01-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-01-09 13:23:28] Production.INFO: count ==4562 [2025-01-09 13:23:29] Production.ERROR: pbx CDR StartTime 2025-01-09 10:23:05 - End Time 2025-01-09 13:23:05 [2025-01-09 13:23:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209858', 'tblTempUsageDetail_20' ) start [2025-01-09 13:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209858', 'tblTempUsageDetail_20' ) end [2025-01-09 13:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209858', 'tblTempVendorCDR_20' ) start [2025-01-09 13:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209858', 'tblTempVendorCDR_20' ) end [2025-01-09 13:23:30] Production.INFO: ProcessCDR(1,14209858,1,1,2) [2025-01-09 13:23:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:23:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:23:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:23:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209858', 'tblTempUsageDetail_20' ) start [2025-01-09 13:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209858', 'tblTempUsageDetail_20' ) end [2025-01-09 13:23:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:23:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:23:34] Production.INFO: ==31086== Releasing lock... [2025-01-09 13:23:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:23:34] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 13:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:24:04 [end_date_ymd] => 2025-01-09 13:24:04 [RateCDR] => 1 ) [2025-01-09 13:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:24:04' and `end` < '2025-01-09 13:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:24:25] Production.INFO: count ==4561 [2025-01-09 13:24:27] Production.ERROR: pbx CDR StartTime 2025-01-09 10:24:04 - End Time 2025-01-09 13:24:04 [2025-01-09 13:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209863', 'tblTempUsageDetail_20' ) start [2025-01-09 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209863', 'tblTempUsageDetail_20' ) end [2025-01-09 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209863', 'tblTempVendorCDR_20' ) start [2025-01-09 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209863', 'tblTempVendorCDR_20' ) end [2025-01-09 13:24:27] Production.INFO: ProcessCDR(1,14209863,1,1,2) [2025-01-09 13:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209863', 'tblTempUsageDetail_20' ) start [2025-01-09 13:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209863', 'tblTempUsageDetail_20' ) end [2025-01-09 13:24:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:24:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:24:32] Production.INFO: ==31163== Releasing lock... [2025-01-09 13:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:24:32] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:25:05 [end_date_ymd] => 2025-01-09 13:25:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:25:05' and `end` < '2025-01-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-01-09 13:25:25] Production.INFO: count ==4579 [2025-01-09 13:25:27] Production.ERROR: pbx CDR StartTime 2025-01-09 10:25:05 - End Time 2025-01-09 13:25:05 [2025-01-09 13:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209868', 'tblTempUsageDetail_20' ) start [2025-01-09 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209868', 'tblTempUsageDetail_20' ) end [2025-01-09 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209868', 'tblTempVendorCDR_20' ) start [2025-01-09 13:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209868', 'tblTempVendorCDR_20' ) end [2025-01-09 13:25:27] Production.INFO: ProcessCDR(1,14209868,1,1,2) [2025-01-09 13:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209868', 'tblTempUsageDetail_20' ) start [2025-01-09 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209868', 'tblTempUsageDetail_20' ) end [2025-01-09 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:25:32] Production.INFO: ==31237== Releasing lock... [2025-01-09 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:25:32] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:26:05 [end_date_ymd] => 2025-01-09 13:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:26:05' and `end` < '2025-01-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-01-09 13:26:22] Production.INFO: count ==4576 [2025-01-09 13:26:24] Production.ERROR: pbx CDR StartTime 2025-01-09 10:26:05 - End Time 2025-01-09 13:26:05 [2025-01-09 13:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209873', 'tblTempUsageDetail_20' ) start [2025-01-09 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209873', 'tblTempUsageDetail_20' ) end [2025-01-09 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209873', 'tblTempVendorCDR_20' ) start [2025-01-09 13:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209873', 'tblTempVendorCDR_20' ) end [2025-01-09 13:26:24] Production.INFO: ProcessCDR(1,14209873,1,1,2) [2025-01-09 13:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:26:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:26:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209873', 'tblTempUsageDetail_20' ) start [2025-01-09 13:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209873', 'tblTempUsageDetail_20' ) end [2025-01-09 13:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:26:29] Production.INFO: ==31310== Releasing lock... [2025-01-09 13:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:26:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:27:05 [end_date_ymd] => 2025-01-09 13:27:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:27:05' and `end` < '2025-01-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-01-09 13:27:26] Production.INFO: count ==4539 [2025-01-09 13:27:28] Production.ERROR: pbx CDR StartTime 2025-01-09 10:27:05 - End Time 2025-01-09 13:27:05 [2025-01-09 13:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209878', 'tblTempUsageDetail_20' ) start [2025-01-09 13:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209878', 'tblTempUsageDetail_20' ) end [2025-01-09 13:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209878', 'tblTempVendorCDR_20' ) start [2025-01-09 13:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209878', 'tblTempVendorCDR_20' ) end [2025-01-09 13:27:28] Production.INFO: ProcessCDR(1,14209878,1,1,2) [2025-01-09 13:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:27:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209878', 'tblTempUsageDetail_20' ) start [2025-01-09 13:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209878', 'tblTempUsageDetail_20' ) end [2025-01-09 13:27:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:27:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:27:33] Production.INFO: ==31382== Releasing lock... [2025-01-09 13:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:27:33] Production.INFO: 62 MB #Memory Used# [2025-01-09 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:28:05 [end_date_ymd] => 2025-01-09 13:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:28:05' and `end` < '2025-01-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-01-09 13:28:24] Production.INFO: count ==4542 [2025-01-09 13:28:26] Production.ERROR: pbx CDR StartTime 2025-01-09 10:28:05 - End Time 2025-01-09 13:28:05 [2025-01-09 13:28:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209883', 'tblTempUsageDetail_20' ) start [2025-01-09 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209883', 'tblTempUsageDetail_20' ) end [2025-01-09 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209883', 'tblTempVendorCDR_20' ) start [2025-01-09 13:28:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209883', 'tblTempVendorCDR_20' ) end [2025-01-09 13:28:26] Production.INFO: ProcessCDR(1,14209883,1,1,2) [2025-01-09 13:28:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209883', 'tblTempUsageDetail_20' ) start [2025-01-09 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209883', 'tblTempUsageDetail_20' ) end [2025-01-09 13:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:28:31] Production.INFO: ==31453== Releasing lock... [2025-01-09 13:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:28:31] Production.INFO: 62 MB #Memory Used# [2025-01-09 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:29:05 [end_date_ymd] => 2025-01-09 13:29:05 [RateCDR] => 1 ) [2025-01-09 13:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:29:05' and `end` < '2025-01-09 13:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:29:23] Production.INFO: count ==4548 [2025-01-09 13:29:25] Production.ERROR: pbx CDR StartTime 2025-01-09 10:29:05 - End Time 2025-01-09 13:29:05 [2025-01-09 13:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209888', 'tblTempUsageDetail_20' ) start [2025-01-09 13:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209888', 'tblTempUsageDetail_20' ) end [2025-01-09 13:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209888', 'tblTempVendorCDR_20' ) start [2025-01-09 13:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209888', 'tblTempVendorCDR_20' ) end [2025-01-09 13:29:25] Production.INFO: ProcessCDR(1,14209888,1,1,2) [2025-01-09 13:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209888', 'tblTempUsageDetail_20' ) start [2025-01-09 13:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209888', 'tblTempUsageDetail_20' ) end [2025-01-09 13:29:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:29:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:29:30] Production.INFO: ==31524== Releasing lock... [2025-01-09 13:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:29:30] Production.INFO: 62 MB #Memory Used# [2025-01-09 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:30:05 [end_date_ymd] => 2025-01-09 13:30:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:30:05' and `end` < '2025-01-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-01-09 13:30:23] Production.INFO: count ==4562 [2025-01-09 13:30:24] Production.ERROR: pbx CDR StartTime 2025-01-09 10:30:05 - End Time 2025-01-09 13:30:05 [2025-01-09 13:30:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:30:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209893', 'tblTempUsageDetail_20' ) start [2025-01-09 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209893', 'tblTempUsageDetail_20' ) end [2025-01-09 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209893', 'tblTempVendorCDR_20' ) start [2025-01-09 13:30:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209893', 'tblTempVendorCDR_20' ) end [2025-01-09 13:30:25] Production.INFO: ProcessCDR(1,14209893,1,1,2) [2025-01-09 13:30:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:30:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:30:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209893', 'tblTempUsageDetail_20' ) start [2025-01-09 13:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209893', 'tblTempUsageDetail_20' ) end [2025-01-09 13:30:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:30:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:30:29] Production.INFO: ==31596== Releasing lock... [2025-01-09 13:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:30:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 13:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:31:04 [end_date_ymd] => 2025-01-09 13:31:04 [RateCDR] => 1 ) [2025-01-09 13:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:31:04' and `end` < '2025-01-09 13:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:31:35] Production.INFO: count ==4571 [2025-01-09 13:31:36] Production.ERROR: pbx CDR StartTime 2025-01-09 10:31:04 - End Time 2025-01-09 13:31:04 [2025-01-09 13:31:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209899', 'tblTempUsageDetail_20' ) start [2025-01-09 13:31:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209899', 'tblTempUsageDetail_20' ) end [2025-01-09 13:31:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209899', 'tblTempVendorCDR_20' ) start [2025-01-09 13:31:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209899', 'tblTempVendorCDR_20' ) end [2025-01-09 13:31:37] Production.INFO: ProcessCDR(1,14209899,1,1,2) [2025-01-09 13:31:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:31:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:31:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:31:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:31:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209899', 'tblTempUsageDetail_20' ) start [2025-01-09 13:31:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209899', 'tblTempUsageDetail_20' ) end [2025-01-09 13:31:41] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:31:41] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:31:41] Production.INFO: ==31674== Releasing lock... [2025-01-09 13:31:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:31:41] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:32:05 [end_date_ymd] => 2025-01-09 13:32:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:32:05' and `end` < '2025-01-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-01-09 13:32:27] Production.INFO: count ==4563 [2025-01-09 13:32:29] Production.ERROR: pbx CDR StartTime 2025-01-09 10:32:05 - End Time 2025-01-09 13:32:05 [2025-01-09 13:32:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209904', 'tblTempUsageDetail_20' ) start [2025-01-09 13:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209904', 'tblTempUsageDetail_20' ) end [2025-01-09 13:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209904', 'tblTempVendorCDR_20' ) start [2025-01-09 13:32:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209904', 'tblTempVendorCDR_20' ) end [2025-01-09 13:32:29] Production.INFO: ProcessCDR(1,14209904,1,1,2) [2025-01-09 13:32:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:32:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:32:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:32:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209904', 'tblTempUsageDetail_20' ) start [2025-01-09 13:32:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209904', 'tblTempUsageDetail_20' ) end [2025-01-09 13:32:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:32:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:32:34] Production.INFO: ==31744== Releasing lock... [2025-01-09 13:32:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:32:34] Production.INFO: 62.25 MB #Memory Used# [2025-01-09 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:33:05 [end_date_ymd] => 2025-01-09 13:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:33:05' and `end` < '2025-01-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-01-09 13:33:32] Production.INFO: count ==4608 [2025-01-09 13:33:33] Production.ERROR: pbx CDR StartTime 2025-01-09 10:33:05 - End Time 2025-01-09 13:33:05 [2025-01-09 13:33:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:33:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209909', 'tblTempUsageDetail_20' ) start [2025-01-09 13:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209909', 'tblTempUsageDetail_20' ) end [2025-01-09 13:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209909', 'tblTempVendorCDR_20' ) start [2025-01-09 13:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209909', 'tblTempVendorCDR_20' ) end [2025-01-09 13:33:34] Production.INFO: ProcessCDR(1,14209909,1,1,2) [2025-01-09 13:33:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:33:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:33:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:33:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:33:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209909', 'tblTempUsageDetail_20' ) start [2025-01-09 13:33:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209909', 'tblTempUsageDetail_20' ) end [2025-01-09 13:33:38] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:33:38] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:33:38] Production.INFO: ==31815== Releasing lock... [2025-01-09 13:33:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:33:38] Production.INFO: 62.5 MB #Memory Used# [2025-01-09 13:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:34:04 [end_date_ymd] => 2025-01-09 13:34:04 [RateCDR] => 1 ) [2025-01-09 13:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:34:04' and `end` < '2025-01-09 13:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:34:23] Production.INFO: count ==4628 [2025-01-09 13:34:25] Production.ERROR: pbx CDR StartTime 2025-01-09 10:34:04 - End Time 2025-01-09 13:34:04 [2025-01-09 13:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209914', 'tblTempUsageDetail_20' ) start [2025-01-09 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209914', 'tblTempUsageDetail_20' ) end [2025-01-09 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209914', 'tblTempVendorCDR_20' ) start [2025-01-09 13:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209914', 'tblTempVendorCDR_20' ) end [2025-01-09 13:34:25] Production.INFO: ProcessCDR(1,14209914,1,1,2) [2025-01-09 13:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:34:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209914', 'tblTempUsageDetail_20' ) start [2025-01-09 13:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209914', 'tblTempUsageDetail_20' ) end [2025-01-09 13:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:34:30] Production.INFO: ==31889== Releasing lock... [2025-01-09 13:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:34:30] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:35:05 [end_date_ymd] => 2025-01-09 13:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:35:05' and `end` < '2025-01-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-01-09 13:35:30] Production.INFO: count ==4640 [2025-01-09 13:35:32] Production.ERROR: pbx CDR StartTime 2025-01-09 10:35:05 - End Time 2025-01-09 13:35:05 [2025-01-09 13:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209919', 'tblTempUsageDetail_20' ) start [2025-01-09 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209919', 'tblTempUsageDetail_20' ) end [2025-01-09 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209919', 'tblTempVendorCDR_20' ) start [2025-01-09 13:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209919', 'tblTempVendorCDR_20' ) end [2025-01-09 13:35:32] Production.INFO: ProcessCDR(1,14209919,1,1,2) [2025-01-09 13:35:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:35:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:35:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209919', 'tblTempUsageDetail_20' ) start [2025-01-09 13:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209919', 'tblTempUsageDetail_20' ) end [2025-01-09 13:35:36] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:35:36] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:35:36] Production.INFO: ==32003== Releasing lock... [2025-01-09 13:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:35:36] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 13:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:36:04 [end_date_ymd] => 2025-01-09 13:36:04 [RateCDR] => 1 ) [2025-01-09 13:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:36:04' and `end` < '2025-01-09 13:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:36:22] Production.INFO: count ==4637 [2025-01-09 13:36:24] Production.ERROR: pbx CDR StartTime 2025-01-09 10:36:04 - End Time 2025-01-09 13:36:04 [2025-01-09 13:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209924', 'tblTempUsageDetail_20' ) start [2025-01-09 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209924', 'tblTempUsageDetail_20' ) end [2025-01-09 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209924', 'tblTempVendorCDR_20' ) start [2025-01-09 13:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209924', 'tblTempVendorCDR_20' ) end [2025-01-09 13:36:24] Production.INFO: ProcessCDR(1,14209924,1,1,2) [2025-01-09 13:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:36:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209924', 'tblTempUsageDetail_20' ) start [2025-01-09 13:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209924', 'tblTempUsageDetail_20' ) end [2025-01-09 13:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:36:28] Production.INFO: ==32075== Releasing lock... [2025-01-09 13:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:36:28] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:37:05 [end_date_ymd] => 2025-01-09 13:37:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:37:05' and `end` < '2025-01-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-01-09 13:37:27] Production.INFO: count ==4639 [2025-01-09 13:37:28] Production.ERROR: pbx CDR StartTime 2025-01-09 10:37:05 - End Time 2025-01-09 13:37:05 [2025-01-09 13:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209929', 'tblTempUsageDetail_20' ) start [2025-01-09 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209929', 'tblTempUsageDetail_20' ) end [2025-01-09 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209929', 'tblTempVendorCDR_20' ) start [2025-01-09 13:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209929', 'tblTempVendorCDR_20' ) end [2025-01-09 13:37:28] Production.INFO: ProcessCDR(1,14209929,1,1,2) [2025-01-09 13:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209929', 'tblTempUsageDetail_20' ) start [2025-01-09 13:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209929', 'tblTempUsageDetail_20' ) end [2025-01-09 13:37:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:37:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:37:33] Production.INFO: ==32146== Releasing lock... [2025-01-09 13:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:37:33] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 13:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:38:04 [end_date_ymd] => 2025-01-09 13:38:04 [RateCDR] => 1 ) [2025-01-09 13:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:38:04' and `end` < '2025-01-09 13:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:38:22] Production.INFO: count ==4658 [2025-01-09 13:38:24] Production.ERROR: pbx CDR StartTime 2025-01-09 10:38:04 - End Time 2025-01-09 13:38:04 [2025-01-09 13:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209934', 'tblTempUsageDetail_20' ) start [2025-01-09 13:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209934', 'tblTempUsageDetail_20' ) end [2025-01-09 13:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209934', 'tblTempVendorCDR_20' ) start [2025-01-09 13:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209934', 'tblTempVendorCDR_20' ) end [2025-01-09 13:38:24] Production.INFO: ProcessCDR(1,14209934,1,1,2) [2025-01-09 13:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209934', 'tblTempUsageDetail_20' ) start [2025-01-09 13:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209934', 'tblTempUsageDetail_20' ) end [2025-01-09 13:38:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:38:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:38:29] Production.INFO: ==32218== Releasing lock... [2025-01-09 13:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:38:29] Production.INFO: 62.75 MB #Memory Used# [2025-01-09 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:39:05 [end_date_ymd] => 2025-01-09 13:39:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:39:05' and `end` < '2025-01-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-01-09 13:39:28] Production.INFO: count ==4681 [2025-01-09 13:39:30] Production.ERROR: pbx CDR StartTime 2025-01-09 10:39:05 - End Time 2025-01-09 13:39:05 [2025-01-09 13:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209939', 'tblTempUsageDetail_20' ) start [2025-01-09 13:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209939', 'tblTempUsageDetail_20' ) end [2025-01-09 13:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209939', 'tblTempVendorCDR_20' ) start [2025-01-09 13:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209939', 'tblTempVendorCDR_20' ) end [2025-01-09 13:39:30] Production.INFO: ProcessCDR(1,14209939,1,1,2) [2025-01-09 13:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:39:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:39:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:39:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209939', 'tblTempUsageDetail_20' ) start [2025-01-09 13:39:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209939', 'tblTempUsageDetail_20' ) end [2025-01-09 13:39:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:39:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:39:35] Production.INFO: ==32289== Releasing lock... [2025-01-09 13:39:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:39:35] Production.INFO: 63 MB #Memory Used# [2025-01-09 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:40:06 [end_date_ymd] => 2025-01-09 13:40:06 [RateCDR] => 1 ) [2025-01-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-01-09 10:40:06' and `end` < '2025-01-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-01-09 13:40:21] Production.INFO: count ==4673 [2025-01-09 13:40:23] Production.ERROR: pbx CDR StartTime 2025-01-09 10:40:06 - End Time 2025-01-09 13:40:06 [2025-01-09 13:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209945', 'tblTempUsageDetail_20' ) start [2025-01-09 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209945', 'tblTempUsageDetail_20' ) end [2025-01-09 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209945', 'tblTempVendorCDR_20' ) start [2025-01-09 13:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209945', 'tblTempVendorCDR_20' ) end [2025-01-09 13:40:23] Production.INFO: ProcessCDR(1,14209945,1,1,2) [2025-01-09 13:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209945', 'tblTempUsageDetail_20' ) start [2025-01-09 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209945', 'tblTempUsageDetail_20' ) end [2025-01-09 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:40:28] Production.INFO: ==32361== Releasing lock... [2025-01-09 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:40:28] Production.INFO: 63 MB #Memory Used# [2025-01-09 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:41:05 [end_date_ymd] => 2025-01-09 13:41:05 [RateCDR] => 1 ) [2025-01-09 13:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:41:05' and `end` < '2025-01-09 13:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:41:24] Production.INFO: count ==4733 [2025-01-09 13:41:26] Production.ERROR: pbx CDR StartTime 2025-01-09 10:41:05 - End Time 2025-01-09 13:41:05 [2025-01-09 13:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209950', 'tblTempUsageDetail_20' ) start [2025-01-09 13:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209950', 'tblTempUsageDetail_20' ) end [2025-01-09 13:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209950', 'tblTempVendorCDR_20' ) start [2025-01-09 13:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209950', 'tblTempVendorCDR_20' ) end [2025-01-09 13:41:26] Production.INFO: ProcessCDR(1,14209950,1,1,2) [2025-01-09 13:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209950', 'tblTempUsageDetail_20' ) start [2025-01-09 13:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209950', 'tblTempUsageDetail_20' ) end [2025-01-09 13:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:41:31] Production.INFO: ==32434== Releasing lock... [2025-01-09 13:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:41:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-09 13:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:42:04 [end_date_ymd] => 2025-01-09 13:42:04 [RateCDR] => 1 ) [2025-01-09 13:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:42:04' and `end` < '2025-01-09 13:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:42:18] Production.INFO: count ==4710 [2025-01-09 13:42:20] Production.ERROR: pbx CDR StartTime 2025-01-09 10:42:04 - End Time 2025-01-09 13:42:04 [2025-01-09 13:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209955', 'tblTempUsageDetail_20' ) start [2025-01-09 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209955', 'tblTempUsageDetail_20' ) end [2025-01-09 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209955', 'tblTempVendorCDR_20' ) start [2025-01-09 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209955', 'tblTempVendorCDR_20' ) end [2025-01-09 13:42:20] Production.INFO: ProcessCDR(1,14209955,1,1,2) [2025-01-09 13:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209955', 'tblTempUsageDetail_20' ) start [2025-01-09 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209955', 'tblTempUsageDetail_20' ) end [2025-01-09 13:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:42:23] Production.INFO: ==32506== Releasing lock... [2025-01-09 13:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:42:23] Production.INFO: 63.25 MB #Memory Used# [2025-01-09 13:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:43:04 [end_date_ymd] => 2025-01-09 13:43:04 [RateCDR] => 1 ) [2025-01-09 13:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:43:04' and `end` < '2025-01-09 13:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:43:28] Production.INFO: count ==4695 [2025-01-09 13:43:30] Production.ERROR: pbx CDR StartTime 2025-01-09 10:43:04 - End Time 2025-01-09 13:43:04 [2025-01-09 13:43:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209960', 'tblTempUsageDetail_20' ) start [2025-01-09 13:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209960', 'tblTempUsageDetail_20' ) end [2025-01-09 13:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209960', 'tblTempVendorCDR_20' ) start [2025-01-09 13:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209960', 'tblTempVendorCDR_20' ) end [2025-01-09 13:43:30] Production.INFO: ProcessCDR(1,14209960,1,1,2) [2025-01-09 13:43:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:43:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209960', 'tblTempUsageDetail_20' ) start [2025-01-09 13:43:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209960', 'tblTempUsageDetail_20' ) end [2025-01-09 13:43:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:43:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:43:34] Production.INFO: ==32579== Releasing lock... [2025-01-09 13:43:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:43:34] Production.INFO: 63.25 MB #Memory Used# [2025-01-09 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:44:06 [end_date_ymd] => 2025-01-09 13:44:06 [RateCDR] => 1 ) [2025-01-09 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:44:06' and `end` < '2025-01-09 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:44:27] Production.INFO: count ==4703 [2025-01-09 13:44:29] Production.ERROR: pbx CDR StartTime 2025-01-09 10:44:06 - End Time 2025-01-09 13:44:06 [2025-01-09 13:44:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209965', 'tblTempUsageDetail_20' ) start [2025-01-09 13:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209965', 'tblTempUsageDetail_20' ) end [2025-01-09 13:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209965', 'tblTempVendorCDR_20' ) start [2025-01-09 13:44:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209965', 'tblTempVendorCDR_20' ) end [2025-01-09 13:44:29] Production.INFO: ProcessCDR(1,14209965,1,1,2) [2025-01-09 13:44:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:44:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:44:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:44:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209965', 'tblTempUsageDetail_20' ) start [2025-01-09 13:44:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209965', 'tblTempUsageDetail_20' ) end [2025-01-09 13:44:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:44:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:44:35] Production.INFO: ==32649== Releasing lock... [2025-01-09 13:44:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:44:35] Production.INFO: 63.25 MB #Memory Used# [2025-01-09 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:45:05 [end_date_ymd] => 2025-01-09 13:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:45:05' and `end` < '2025-01-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-01-09 13:45:25] Production.INFO: count ==4696 [2025-01-09 13:45:27] Production.ERROR: pbx CDR StartTime 2025-01-09 10:45:05 - End Time 2025-01-09 13:45:05 [2025-01-09 13:45:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209970', 'tblTempUsageDetail_20' ) start [2025-01-09 13:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209970', 'tblTempUsageDetail_20' ) end [2025-01-09 13:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209970', 'tblTempVendorCDR_20' ) start [2025-01-09 13:45:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209970', 'tblTempVendorCDR_20' ) end [2025-01-09 13:45:27] Production.INFO: ProcessCDR(1,14209970,1,1,2) [2025-01-09 13:45:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209970', 'tblTempUsageDetail_20' ) start [2025-01-09 13:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209970', 'tblTempUsageDetail_20' ) end [2025-01-09 13:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:45:32] Production.INFO: ==32722== Releasing lock... [2025-01-09 13:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:45:32] Production.INFO: 63.25 MB #Memory Used# [2025-01-09 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:46:05 [end_date_ymd] => 2025-01-09 13:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:46:05' and `end` < '2025-01-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-01-09 13:46:30] Production.INFO: count ==4714 [2025-01-09 13:46:32] Production.ERROR: pbx CDR StartTime 2025-01-09 10:46:05 - End Time 2025-01-09 13:46:05 [2025-01-09 13:46:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209975', 'tblTempUsageDetail_20' ) start [2025-01-09 13:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209975', 'tblTempUsageDetail_20' ) end [2025-01-09 13:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209975', 'tblTempVendorCDR_20' ) start [2025-01-09 13:46:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209975', 'tblTempVendorCDR_20' ) end [2025-01-09 13:46:32] Production.INFO: ProcessCDR(1,14209975,1,1,2) [2025-01-09 13:46:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:46:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:46:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:46:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:46:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209975', 'tblTempUsageDetail_20' ) start [2025-01-09 13:46:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209975', 'tblTempUsageDetail_20' ) end [2025-01-09 13:46:37] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:46:37] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:46:37] Production.INFO: ==334== Releasing lock... [2025-01-09 13:46:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:46:37] Production.INFO: 63.25 MB #Memory Used# [2025-01-09 13:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:47:04 [end_date_ymd] => 2025-01-09 13:47:04 [RateCDR] => 1 ) [2025-01-09 13:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:47:04' and `end` < '2025-01-09 13:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:47:26] Production.INFO: count ==4710 [2025-01-09 13:47:28] Production.ERROR: pbx CDR StartTime 2025-01-09 10:47:04 - End Time 2025-01-09 13:47:04 [2025-01-09 13:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209980', 'tblTempUsageDetail_20' ) start [2025-01-09 13:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209980', 'tblTempUsageDetail_20' ) end [2025-01-09 13:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209980', 'tblTempVendorCDR_20' ) start [2025-01-09 13:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209980', 'tblTempVendorCDR_20' ) end [2025-01-09 13:47:28] Production.INFO: ProcessCDR(1,14209980,1,1,2) [2025-01-09 13:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209980', 'tblTempUsageDetail_20' ) start [2025-01-09 13:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209980', 'tblTempUsageDetail_20' ) end [2025-01-09 13:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:47:33] Production.INFO: ==416== Releasing lock... [2025-01-09 13:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:47:33] Production.INFO: 63.25 MB #Memory Used# [2025-01-09 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:48:05 [end_date_ymd] => 2025-01-09 13:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:48:05' and `end` < '2025-01-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-01-09 13:48:23] Production.INFO: count ==4717 [2025-01-09 13:48:25] Production.ERROR: pbx CDR StartTime 2025-01-09 10:48:05 - End Time 2025-01-09 13:48:05 [2025-01-09 13:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209985', 'tblTempUsageDetail_20' ) start [2025-01-09 13:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209985', 'tblTempUsageDetail_20' ) end [2025-01-09 13:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209985', 'tblTempVendorCDR_20' ) start [2025-01-09 13:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209985', 'tblTempVendorCDR_20' ) end [2025-01-09 13:48:25] Production.INFO: ProcessCDR(1,14209985,1,1,2) [2025-01-09 13:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209985', 'tblTempUsageDetail_20' ) start [2025-01-09 13:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209985', 'tblTempUsageDetail_20' ) end [2025-01-09 13:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:48:30] Production.INFO: ==496== Releasing lock... [2025-01-09 13:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:48:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-09 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:49:05 [end_date_ymd] => 2025-01-09 13:49:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:49:05' and `end` < '2025-01-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-01-09 13:49:24] Production.INFO: count ==4707 [2025-01-09 13:49:26] Production.ERROR: pbx CDR StartTime 2025-01-09 10:49:05 - End Time 2025-01-09 13:49:05 [2025-01-09 13:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209990', 'tblTempUsageDetail_20' ) start [2025-01-09 13:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209990', 'tblTempUsageDetail_20' ) end [2025-01-09 13:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209990', 'tblTempVendorCDR_20' ) start [2025-01-09 13:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209990', 'tblTempVendorCDR_20' ) end [2025-01-09 13:49:26] Production.INFO: ProcessCDR(1,14209990,1,1,2) [2025-01-09 13:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209990', 'tblTempUsageDetail_20' ) start [2025-01-09 13:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209990', 'tblTempUsageDetail_20' ) end [2025-01-09 13:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:49:30] Production.INFO: ==568== Releasing lock... [2025-01-09 13:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:49:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-09 13:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:50:05 [end_date_ymd] => 2025-01-09 13:50:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:50:05' and `end` < '2025-01-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-01-09 13:50:26] Production.INFO: count ==4715 [2025-01-09 13:50:28] Production.ERROR: pbx CDR StartTime 2025-01-09 10:50:05 - End Time 2025-01-09 13:50:05 [2025-01-09 13:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209996', 'tblTempUsageDetail_20' ) start [2025-01-09 13:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14209996', 'tblTempUsageDetail_20' ) end [2025-01-09 13:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209996', 'tblTempVendorCDR_20' ) start [2025-01-09 13:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14209996', 'tblTempVendorCDR_20' ) end [2025-01-09 13:50:28] Production.INFO: ProcessCDR(1,14209996,1,1,2) [2025-01-09 13:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14209996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14209996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14209996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:50:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14209996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209996', 'tblTempUsageDetail_20' ) start [2025-01-09 13:50:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14209996', 'tblTempUsageDetail_20' ) end [2025-01-09 13:50:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:50:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:50:33] Production.INFO: ==668== Releasing lock... [2025-01-09 13:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:50:33] Production.INFO: 63.25 MB #Memory Used# [2025-01-09 13:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:51:04 [end_date_ymd] => 2025-01-09 13:51:04 [RateCDR] => 1 ) [2025-01-09 13:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:51:04' and `end` < '2025-01-09 13:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:51:32] Production.INFO: count ==4742 [2025-01-09 13:51:34] Production.ERROR: pbx CDR StartTime 2025-01-09 10:51:04 - End Time 2025-01-09 13:51:04 [2025-01-09 13:51:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210001', 'tblTempUsageDetail_20' ) start [2025-01-09 13:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210001', 'tblTempUsageDetail_20' ) end [2025-01-09 13:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210001', 'tblTempVendorCDR_20' ) start [2025-01-09 13:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210001', 'tblTempVendorCDR_20' ) end [2025-01-09 13:51:34] Production.INFO: ProcessCDR(1,14210001,1,1,2) [2025-01-09 13:51:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:51:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:51:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:51:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:51:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210001', 'tblTempUsageDetail_20' ) start [2025-01-09 13:51:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210001', 'tblTempUsageDetail_20' ) end [2025-01-09 13:51:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:51:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:51:39] Production.INFO: ==799== Releasing lock... [2025-01-09 13:51:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:51:39] Production.INFO: 63.5 MB #Memory Used# [2025-01-09 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:52:05 [end_date_ymd] => 2025-01-09 13:52:05 [RateCDR] => 1 ) [2025-01-09 13:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:52:05' and `end` < '2025-01-09 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:52:30] Production.INFO: count ==4735 [2025-01-09 13:52:32] Production.ERROR: pbx CDR StartTime 2025-01-09 10:52:05 - End Time 2025-01-09 13:52:05 [2025-01-09 13:52:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210006', 'tblTempUsageDetail_20' ) start [2025-01-09 13:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210006', 'tblTempUsageDetail_20' ) end [2025-01-09 13:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210006', 'tblTempVendorCDR_20' ) start [2025-01-09 13:52:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210006', 'tblTempVendorCDR_20' ) end [2025-01-09 13:52:32] Production.INFO: ProcessCDR(1,14210006,1,1,2) [2025-01-09 13:52:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:52:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:52:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:52:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210006', 'tblTempUsageDetail_20' ) start [2025-01-09 13:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210006', 'tblTempUsageDetail_20' ) end [2025-01-09 13:52:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:52:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:52:35] Production.INFO: ==872== Releasing lock... [2025-01-09 13:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:52:35] Production.INFO: 63.5 MB #Memory Used# [2025-01-09 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:53:05 [end_date_ymd] => 2025-01-09 13:53:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:53:05' and `end` < '2025-01-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-01-09 13:53:24] Production.INFO: count ==4725 [2025-01-09 13:53:26] Production.ERROR: pbx CDR StartTime 2025-01-09 10:53:05 - End Time 2025-01-09 13:53:05 [2025-01-09 13:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210011', 'tblTempUsageDetail_20' ) start [2025-01-09 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210011', 'tblTempUsageDetail_20' ) end [2025-01-09 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210011', 'tblTempVendorCDR_20' ) start [2025-01-09 13:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210011', 'tblTempVendorCDR_20' ) end [2025-01-09 13:53:26] Production.INFO: ProcessCDR(1,14210011,1,1,2) [2025-01-09 13:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210011', 'tblTempUsageDetail_20' ) start [2025-01-09 13:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210011', 'tblTempUsageDetail_20' ) end [2025-01-09 13:53:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:53:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:53:31] Production.INFO: ==943== Releasing lock... [2025-01-09 13:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:53:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-09 13:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:54:04 [end_date_ymd] => 2025-01-09 13:54:04 [RateCDR] => 1 ) [2025-01-09 13:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:54:04' and `end` < '2025-01-09 13:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:54:18] Production.INFO: count ==4732 [2025-01-09 13:54:20] Production.ERROR: pbx CDR StartTime 2025-01-09 10:54:04 - End Time 2025-01-09 13:54:04 [2025-01-09 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210016', 'tblTempUsageDetail_20' ) start [2025-01-09 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210016', 'tblTempUsageDetail_20' ) end [2025-01-09 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210016', 'tblTempVendorCDR_20' ) start [2025-01-09 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210016', 'tblTempVendorCDR_20' ) end [2025-01-09 13:54:20] Production.INFO: ProcessCDR(1,14210016,1,1,2) [2025-01-09 13:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210016', 'tblTempUsageDetail_20' ) start [2025-01-09 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210016', 'tblTempUsageDetail_20' ) end [2025-01-09 13:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:54:25] Production.INFO: ==1016== Releasing lock... [2025-01-09 13:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:54:25] Production.INFO: 63.5 MB #Memory Used# [2025-01-09 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:55:05 [end_date_ymd] => 2025-01-09 13:55:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:55:05' and `end` < '2025-01-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-01-09 13:55:28] Production.INFO: count ==4741 [2025-01-09 13:55:30] Production.ERROR: pbx CDR StartTime 2025-01-09 10:55:05 - End Time 2025-01-09 13:55:05 [2025-01-09 13:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210021', 'tblTempUsageDetail_20' ) start [2025-01-09 13:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210021', 'tblTempUsageDetail_20' ) end [2025-01-09 13:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210021', 'tblTempVendorCDR_20' ) start [2025-01-09 13:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210021', 'tblTempVendorCDR_20' ) end [2025-01-09 13:55:30] Production.INFO: ProcessCDR(1,14210021,1,1,2) [2025-01-09 13:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:55:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210021', 'tblTempUsageDetail_20' ) start [2025-01-09 13:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210021', 'tblTempUsageDetail_20' ) end [2025-01-09 13:55:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:55:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:55:35] Production.INFO: ==1085== Releasing lock... [2025-01-09 13:55:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:55:35] Production.INFO: 63.5 MB #Memory Used# [2025-01-09 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:56:05 [end_date_ymd] => 2025-01-09 13:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:56:05' and `end` < '2025-01-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-01-09 13:56:32] Production.INFO: count ==4776 [2025-01-09 13:56:34] Production.ERROR: pbx CDR StartTime 2025-01-09 10:56:05 - End Time 2025-01-09 13:56:05 [2025-01-09 13:56:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210026', 'tblTempUsageDetail_20' ) start [2025-01-09 13:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210026', 'tblTempUsageDetail_20' ) end [2025-01-09 13:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210026', 'tblTempVendorCDR_20' ) start [2025-01-09 13:56:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210026', 'tblTempVendorCDR_20' ) end [2025-01-09 13:56:34] Production.INFO: ProcessCDR(1,14210026,1,1,2) [2025-01-09 13:56:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:56:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:56:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:56:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210026', 'tblTempUsageDetail_20' ) start [2025-01-09 13:56:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210026', 'tblTempUsageDetail_20' ) end [2025-01-09 13:56:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:56:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:56:39] Production.INFO: ==1159== Releasing lock... [2025-01-09 13:56:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:56:39] Production.INFO: 63.75 MB #Memory Used# [2025-01-09 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:57:05 [end_date_ymd] => 2025-01-09 13:57:05 [RateCDR] => 1 ) [2025-01-09 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:57:05' and `end` < '2025-01-09 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:57:23] Production.INFO: count ==4751 [2025-01-09 13:57:25] Production.ERROR: pbx CDR StartTime 2025-01-09 10:57:05 - End Time 2025-01-09 13:57:05 [2025-01-09 13:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210031', 'tblTempUsageDetail_20' ) start [2025-01-09 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210031', 'tblTempUsageDetail_20' ) end [2025-01-09 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210031', 'tblTempVendorCDR_20' ) start [2025-01-09 13:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210031', 'tblTempVendorCDR_20' ) end [2025-01-09 13:57:25] Production.INFO: ProcessCDR(1,14210031,1,1,2) [2025-01-09 13:57:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210031', 'tblTempUsageDetail_20' ) start [2025-01-09 13:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210031', 'tblTempUsageDetail_20' ) end [2025-01-09 13:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:57:29] Production.INFO: ==1233== Releasing lock... [2025-01-09 13:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:57:29] Production.INFO: 63.5 MB #Memory Used# [2025-01-09 13:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:58:04 [end_date_ymd] => 2025-01-09 13:58:04 [RateCDR] => 1 ) [2025-01-09 13:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 10:58:04' and `end` < '2025-01-09 13:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 13:58:29] Production.INFO: count ==4770 [2025-01-09 13:58:31] Production.ERROR: pbx CDR StartTime 2025-01-09 10:58:04 - End Time 2025-01-09 13:58:04 [2025-01-09 13:58:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210036', 'tblTempUsageDetail_20' ) start [2025-01-09 13:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210036', 'tblTempUsageDetail_20' ) end [2025-01-09 13:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210036', 'tblTempVendorCDR_20' ) start [2025-01-09 13:58:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210036', 'tblTempVendorCDR_20' ) end [2025-01-09 13:58:31] Production.INFO: ProcessCDR(1,14210036,1,1,2) [2025-01-09 13:58:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:58:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:58:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:58:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:58:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210036', 'tblTempUsageDetail_20' ) start [2025-01-09 13:58:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210036', 'tblTempUsageDetail_20' ) end [2025-01-09 13:58:36] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:58:36] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:58:36] Production.INFO: ==1317== Releasing lock... [2025-01-09 13:58:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:58:36] Production.INFO: 63.75 MB #Memory Used# [2025-01-09 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 10:59:05 [end_date_ymd] => 2025-01-09 13:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 10:59:05' and `end` < '2025-01-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-01-09 13:59:23] Production.INFO: count ==4775 [2025-01-09 13:59:25] Production.ERROR: pbx CDR StartTime 2025-01-09 10:59:05 - End Time 2025-01-09 13:59:05 [2025-01-09 13:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210041', 'tblTempUsageDetail_20' ) start [2025-01-09 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210041', 'tblTempUsageDetail_20' ) end [2025-01-09 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210041', 'tblTempVendorCDR_20' ) start [2025-01-09 13:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210041', 'tblTempVendorCDR_20' ) end [2025-01-09 13:59:25] Production.INFO: ProcessCDR(1,14210041,1,1,2) [2025-01-09 13:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 13:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 13:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210041', 'tblTempUsageDetail_20' ) start [2025-01-09 13:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210041', 'tblTempUsageDetail_20' ) end [2025-01-09 13:59:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 13:59:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 13:59:29] Production.INFO: ==1389== Releasing lock... [2025-01-09 13:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 13:59:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-09 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:00:06 [end_date_ymd] => 2025-01-09 14:00:06 [RateCDR] => 1 ) [2025-01-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-01-09 11:00:06' and `end` < '2025-01-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-01-09 14:00:29] Production.INFO: count ==4771 [2025-01-09 14:00:30] Production.ERROR: pbx CDR StartTime 2025-01-09 11:00:06 - End Time 2025-01-09 14:00:06 [2025-01-09 14:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210046', 'tblTempUsageDetail_20' ) start [2025-01-09 14:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210046', 'tblTempUsageDetail_20' ) end [2025-01-09 14:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210046', 'tblTempVendorCDR_20' ) start [2025-01-09 14:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210046', 'tblTempVendorCDR_20' ) end [2025-01-09 14:00:31] Production.INFO: ProcessCDR(1,14210046,1,1,2) [2025-01-09 14:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210046', 'tblTempUsageDetail_20' ) start [2025-01-09 14:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210046', 'tblTempUsageDetail_20' ) end [2025-01-09 14:00:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:00:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:00:35] Production.INFO: ==1461== Releasing lock... [2025-01-09 14:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:00:35] Production.INFO: 63.75 MB #Memory Used# [2025-01-09 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:01:05 [end_date_ymd] => 2025-01-09 14:01:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:01:05' and `end` < '2025-01-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-01-09 14:01:37] Production.INFO: count ==4821 [2025-01-09 14:01:39] Production.ERROR: pbx CDR StartTime 2025-01-09 11:01:05 - End Time 2025-01-09 14:01:05 [2025-01-09 14:01:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:01:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210052', 'tblTempUsageDetail_20' ) start [2025-01-09 14:01:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210052', 'tblTempUsageDetail_20' ) end [2025-01-09 14:01:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210052', 'tblTempVendorCDR_20' ) start [2025-01-09 14:01:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210052', 'tblTempVendorCDR_20' ) end [2025-01-09 14:01:39] Production.INFO: ProcessCDR(1,14210052,1,1,2) [2025-01-09 14:01:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:01:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:01:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:01:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:01:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210052', 'tblTempUsageDetail_20' ) start [2025-01-09 14:01:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210052', 'tblTempUsageDetail_20' ) end [2025-01-09 14:01:44] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:01:44] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:01:44] Production.INFO: ==1587== Releasing lock... [2025-01-09 14:01:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:01:44] Production.INFO: 64 MB #Memory Used# [2025-01-09 14:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:02:04 [end_date_ymd] => 2025-01-09 14:02:04 [RateCDR] => 1 ) [2025-01-09 14:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:02:04' and `end` < '2025-01-09 14:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:02:26] Production.INFO: count ==4830 [2025-01-09 14:02:28] Production.ERROR: pbx CDR StartTime 2025-01-09 11:02:04 - End Time 2025-01-09 14:02:04 [2025-01-09 14:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210057', 'tblTempUsageDetail_20' ) start [2025-01-09 14:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210057', 'tblTempUsageDetail_20' ) end [2025-01-09 14:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210057', 'tblTempVendorCDR_20' ) start [2025-01-09 14:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210057', 'tblTempVendorCDR_20' ) end [2025-01-09 14:02:28] Production.INFO: ProcessCDR(1,14210057,1,1,2) [2025-01-09 14:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210057', 'tblTempUsageDetail_20' ) start [2025-01-09 14:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210057', 'tblTempUsageDetail_20' ) end [2025-01-09 14:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:02:33] Production.INFO: ==1658== Releasing lock... [2025-01-09 14:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:02:33] Production.INFO: 64.25 MB #Memory Used# [2025-01-09 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:03:05 [end_date_ymd] => 2025-01-09 14:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:03:05' and `end` < '2025-01-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-01-09 14:03:21] Production.INFO: count ==4831 [2025-01-09 14:03:23] Production.ERROR: pbx CDR StartTime 2025-01-09 11:03:05 - End Time 2025-01-09 14:03:05 [2025-01-09 14:03:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210062', 'tblTempUsageDetail_20' ) start [2025-01-09 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210062', 'tblTempUsageDetail_20' ) end [2025-01-09 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210062', 'tblTempVendorCDR_20' ) start [2025-01-09 14:03:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210062', 'tblTempVendorCDR_20' ) end [2025-01-09 14:03:23] Production.INFO: ProcessCDR(1,14210062,1,1,2) [2025-01-09 14:03:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210062', 'tblTempUsageDetail_20' ) start [2025-01-09 14:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210062', 'tblTempUsageDetail_20' ) end [2025-01-09 14:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:03:27] Production.INFO: ==1728== Releasing lock... [2025-01-09 14:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:03:27] Production.INFO: 64.25 MB #Memory Used# [2025-01-09 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:04:05 [end_date_ymd] => 2025-01-09 14:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:04:05' and `end` < '2025-01-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-01-09 14:04:26] Production.INFO: count ==4814 [2025-01-09 14:04:28] Production.ERROR: pbx CDR StartTime 2025-01-09 11:04:05 - End Time 2025-01-09 14:04:05 [2025-01-09 14:04:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210067', 'tblTempUsageDetail_20' ) start [2025-01-09 14:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210067', 'tblTempUsageDetail_20' ) end [2025-01-09 14:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210067', 'tblTempVendorCDR_20' ) start [2025-01-09 14:04:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210067', 'tblTempVendorCDR_20' ) end [2025-01-09 14:04:28] Production.INFO: ProcessCDR(1,14210067,1,1,2) [2025-01-09 14:04:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210067', 'tblTempUsageDetail_20' ) start [2025-01-09 14:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210067', 'tblTempUsageDetail_20' ) end [2025-01-09 14:04:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:04:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:04:33] Production.INFO: ==1799== Releasing lock... [2025-01-09 14:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:04:33] Production.INFO: 64 MB #Memory Used# [2025-01-09 14:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:05:04 [end_date_ymd] => 2025-01-09 14:05:04 [RateCDR] => 1 ) [2025-01-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-01-09 11:05:04' and `end` < '2025-01-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-01-09 14:05:24] Production.INFO: count ==4824 [2025-01-09 14:05:26] Production.ERROR: pbx CDR StartTime 2025-01-09 11:05:04 - End Time 2025-01-09 14:05:04 [2025-01-09 14:05:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210072', 'tblTempUsageDetail_20' ) start [2025-01-09 14:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210072', 'tblTempUsageDetail_20' ) end [2025-01-09 14:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210072', 'tblTempVendorCDR_20' ) start [2025-01-09 14:05:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210072', 'tblTempVendorCDR_20' ) end [2025-01-09 14:05:26] Production.INFO: ProcessCDR(1,14210072,1,1,2) [2025-01-09 14:05:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:05:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210072', 'tblTempUsageDetail_20' ) start [2025-01-09 14:05:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210072', 'tblTempUsageDetail_20' ) end [2025-01-09 14:05:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:05:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:05:31] Production.INFO: ==1875== Releasing lock... [2025-01-09 14:05:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:05:31] Production.INFO: 64.25 MB #Memory Used# [2025-01-09 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:06:05 [end_date_ymd] => 2025-01-09 14:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:06:05' and `end` < '2025-01-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-01-09 14:06:22] Production.INFO: count ==4838 [2025-01-09 14:06:24] Production.ERROR: pbx CDR StartTime 2025-01-09 11:06:05 - End Time 2025-01-09 14:06:05 [2025-01-09 14:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210077', 'tblTempUsageDetail_20' ) start [2025-01-09 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210077', 'tblTempUsageDetail_20' ) end [2025-01-09 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210077', 'tblTempVendorCDR_20' ) start [2025-01-09 14:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210077', 'tblTempVendorCDR_20' ) end [2025-01-09 14:06:24] Production.INFO: ProcessCDR(1,14210077,1,1,2) [2025-01-09 14:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210077', 'tblTempUsageDetail_20' ) start [2025-01-09 14:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210077', 'tblTempUsageDetail_20' ) end [2025-01-09 14:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:06:29] Production.INFO: ==2017== Releasing lock... [2025-01-09 14:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:06:29] Production.INFO: 64.25 MB #Memory Used# [2025-01-09 14:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:07:04 [end_date_ymd] => 2025-01-09 14:07:04 [RateCDR] => 1 ) [2025-01-09 14:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:07:04' and `end` < '2025-01-09 14:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:07:24] Production.INFO: count ==4838 [2025-01-09 14:07:26] Production.ERROR: pbx CDR StartTime 2025-01-09 11:07:04 - End Time 2025-01-09 14:07:04 [2025-01-09 14:07:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210082', 'tblTempUsageDetail_20' ) start [2025-01-09 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210082', 'tblTempUsageDetail_20' ) end [2025-01-09 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210082', 'tblTempVendorCDR_20' ) start [2025-01-09 14:07:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210082', 'tblTempVendorCDR_20' ) end [2025-01-09 14:07:26] Production.INFO: ProcessCDR(1,14210082,1,1,2) [2025-01-09 14:07:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210082', 'tblTempUsageDetail_20' ) start [2025-01-09 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210082', 'tblTempUsageDetail_20' ) end [2025-01-09 14:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:07:31] Production.INFO: ==2127== Releasing lock... [2025-01-09 14:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:07:31] Production.INFO: 64.25 MB #Memory Used# [2025-01-09 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:08:05 [end_date_ymd] => 2025-01-09 14:08:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:08:05' and `end` < '2025-01-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-01-09 14:08:34] Production.INFO: count ==4851 [2025-01-09 14:08:36] Production.ERROR: pbx CDR StartTime 2025-01-09 11:08:05 - End Time 2025-01-09 14:08:05 [2025-01-09 14:08:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210087', 'tblTempUsageDetail_20' ) start [2025-01-09 14:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210087', 'tblTempUsageDetail_20' ) end [2025-01-09 14:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210087', 'tblTempVendorCDR_20' ) start [2025-01-09 14:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210087', 'tblTempVendorCDR_20' ) end [2025-01-09 14:08:36] Production.INFO: ProcessCDR(1,14210087,1,1,2) [2025-01-09 14:08:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:08:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:08:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:08:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:08:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210087', 'tblTempUsageDetail_20' ) start [2025-01-09 14:08:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210087', 'tblTempUsageDetail_20' ) end [2025-01-09 14:08:41] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:08:41] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:08:41] Production.INFO: ==2214== Releasing lock... [2025-01-09 14:08:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:08:41] Production.INFO: 64.25 MB #Memory Used# [2025-01-09 14:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:09:04 [end_date_ymd] => 2025-01-09 14:09:04 [RateCDR] => 1 ) [2025-01-09 14:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:09:04' and `end` < '2025-01-09 14:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:09:29] Production.INFO: count ==4873 [2025-01-09 14:09:31] Production.ERROR: pbx CDR StartTime 2025-01-09 11:09:04 - End Time 2025-01-09 14:09:04 [2025-01-09 14:09:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210092', 'tblTempUsageDetail_20' ) start [2025-01-09 14:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210092', 'tblTempUsageDetail_20' ) end [2025-01-09 14:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210092', 'tblTempVendorCDR_20' ) start [2025-01-09 14:09:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210092', 'tblTempVendorCDR_20' ) end [2025-01-09 14:09:31] Production.INFO: ProcessCDR(1,14210092,1,1,2) [2025-01-09 14:09:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:09:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:09:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:09:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210092', 'tblTempUsageDetail_20' ) start [2025-01-09 14:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210092', 'tblTempUsageDetail_20' ) end [2025-01-09 14:09:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:09:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:09:36] Production.INFO: ==2286== Releasing lock... [2025-01-09 14:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:09:36] Production.INFO: 64.5 MB #Memory Used# [2025-01-09 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:10:06 [end_date_ymd] => 2025-01-09 14:10:06 [RateCDR] => 1 ) [2025-01-09 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:10:06' and `end` < '2025-01-09 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:10:33] Production.INFO: count ==4869 [2025-01-09 14:10:35] Production.ERROR: pbx CDR StartTime 2025-01-09 11:10:06 - End Time 2025-01-09 14:10:06 [2025-01-09 14:10:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210098', 'tblTempUsageDetail_20' ) start [2025-01-09 14:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210098', 'tblTempUsageDetail_20' ) end [2025-01-09 14:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210098', 'tblTempVendorCDR_20' ) start [2025-01-09 14:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210098', 'tblTempVendorCDR_20' ) end [2025-01-09 14:10:35] Production.INFO: ProcessCDR(1,14210098,1,1,2) [2025-01-09 14:10:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:10:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:10:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:10:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:10:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210098', 'tblTempUsageDetail_20' ) start [2025-01-09 14:10:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210098', 'tblTempUsageDetail_20' ) end [2025-01-09 14:10:40] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:10:40] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:10:40] Production.INFO: ==2359== Releasing lock... [2025-01-09 14:10:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:10:40] Production.INFO: 64.5 MB #Memory Used# [2025-01-09 14:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:11:04 [end_date_ymd] => 2025-01-09 14:11:04 [RateCDR] => 1 ) [2025-01-09 14:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:11:04' and `end` < '2025-01-09 14:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:11:28] Production.INFO: count ==4867 [2025-01-09 14:11:29] Production.ERROR: pbx CDR StartTime 2025-01-09 11:11:04 - End Time 2025-01-09 14:11:04 [2025-01-09 14:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210103', 'tblTempUsageDetail_20' ) start [2025-01-09 14:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210103', 'tblTempUsageDetail_20' ) end [2025-01-09 14:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210103', 'tblTempVendorCDR_20' ) start [2025-01-09 14:11:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210103', 'tblTempVendorCDR_20' ) end [2025-01-09 14:11:30] Production.INFO: ProcessCDR(1,14210103,1,1,2) [2025-01-09 14:11:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:11:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:11:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210103', 'tblTempUsageDetail_20' ) start [2025-01-09 14:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210103', 'tblTempUsageDetail_20' ) end [2025-01-09 14:11:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:11:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:11:34] Production.INFO: ==2434== Releasing lock... [2025-01-09 14:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:11:34] Production.INFO: 64.5 MB #Memory Used# [2025-01-09 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:12:05 [end_date_ymd] => 2025-01-09 14:12:05 [RateCDR] => 1 ) [2025-01-09 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:12:05' and `end` < '2025-01-09 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:12:27] Production.INFO: count ==4833 [2025-01-09 14:12:28] Production.ERROR: pbx CDR StartTime 2025-01-09 11:12:05 - End Time 2025-01-09 14:12:05 [2025-01-09 14:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210108', 'tblTempUsageDetail_20' ) start [2025-01-09 14:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210108', 'tblTempUsageDetail_20' ) end [2025-01-09 14:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210108', 'tblTempVendorCDR_20' ) start [2025-01-09 14:12:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210108', 'tblTempVendorCDR_20' ) end [2025-01-09 14:12:29] Production.INFO: ProcessCDR(1,14210108,1,1,2) [2025-01-09 14:12:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210108', 'tblTempUsageDetail_20' ) start [2025-01-09 14:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210108', 'tblTempUsageDetail_20' ) end [2025-01-09 14:12:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:12:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:12:33] Production.INFO: ==2505== Releasing lock... [2025-01-09 14:12:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:12:33] Production.INFO: 64.25 MB #Memory Used# [2025-01-09 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:13:05 [end_date_ymd] => 2025-01-09 14:13:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:13:05' and `end` < '2025-01-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-01-09 14:13:19] Production.INFO: count ==4808 [2025-01-09 14:13:21] Production.ERROR: pbx CDR StartTime 2025-01-09 11:13:05 - End Time 2025-01-09 14:13:05 [2025-01-09 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210113', 'tblTempUsageDetail_20' ) start [2025-01-09 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210113', 'tblTempUsageDetail_20' ) end [2025-01-09 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210113', 'tblTempVendorCDR_20' ) start [2025-01-09 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210113', 'tblTempVendorCDR_20' ) end [2025-01-09 14:13:21] Production.INFO: ProcessCDR(1,14210113,1,1,2) [2025-01-09 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210113', 'tblTempUsageDetail_20' ) start [2025-01-09 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210113', 'tblTempUsageDetail_20' ) end [2025-01-09 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:13:26] Production.INFO: ==2575== Releasing lock... [2025-01-09 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:13:26] Production.INFO: 64 MB #Memory Used# [2025-01-09 14:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:14:04 [end_date_ymd] => 2025-01-09 14:14:04 [RateCDR] => 1 ) [2025-01-09 14:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:14:04' and `end` < '2025-01-09 14:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:14:19] Production.INFO: count ==4820 [2025-01-09 14:14:21] Production.ERROR: pbx CDR StartTime 2025-01-09 11:14:04 - End Time 2025-01-09 14:14:04 [2025-01-09 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210118', 'tblTempUsageDetail_20' ) start [2025-01-09 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210118', 'tblTempUsageDetail_20' ) end [2025-01-09 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210118', 'tblTempVendorCDR_20' ) start [2025-01-09 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210118', 'tblTempVendorCDR_20' ) end [2025-01-09 14:14:21] Production.INFO: ProcessCDR(1,14210118,1,1,2) [2025-01-09 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210118', 'tblTempUsageDetail_20' ) start [2025-01-09 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210118', 'tblTempUsageDetail_20' ) end [2025-01-09 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:14:26] Production.INFO: ==2647== Releasing lock... [2025-01-09 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:14:26] Production.INFO: 64 MB #Memory Used# [2025-01-09 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:15:05 [end_date_ymd] => 2025-01-09 14:15:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:15:05' and `end` < '2025-01-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-01-09 14:15:20] Production.INFO: count ==4809 [2025-01-09 14:15:22] Production.ERROR: pbx CDR StartTime 2025-01-09 11:15:05 - End Time 2025-01-09 14:15:05 [2025-01-09 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210123', 'tblTempUsageDetail_20' ) start [2025-01-09 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210123', 'tblTempUsageDetail_20' ) end [2025-01-09 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210123', 'tblTempVendorCDR_20' ) start [2025-01-09 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210123', 'tblTempVendorCDR_20' ) end [2025-01-09 14:15:22] Production.INFO: ProcessCDR(1,14210123,1,1,2) [2025-01-09 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210123', 'tblTempUsageDetail_20' ) start [2025-01-09 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210123', 'tblTempUsageDetail_20' ) end [2025-01-09 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:15:27] Production.INFO: ==2725== Releasing lock... [2025-01-09 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:15:27] Production.INFO: 64 MB #Memory Used# [2025-01-09 14:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:16:04 [end_date_ymd] => 2025-01-09 14:16:04 [RateCDR] => 1 ) [2025-01-09 14:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:16:04' and `end` < '2025-01-09 14:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:16:28] Production.INFO: count ==4843 [2025-01-09 14:16:30] Production.ERROR: pbx CDR StartTime 2025-01-09 11:16:04 - End Time 2025-01-09 14:16:04 [2025-01-09 14:16:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210128', 'tblTempUsageDetail_20' ) start [2025-01-09 14:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210128', 'tblTempUsageDetail_20' ) end [2025-01-09 14:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210128', 'tblTempVendorCDR_20' ) start [2025-01-09 14:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210128', 'tblTempVendorCDR_20' ) end [2025-01-09 14:16:30] Production.INFO: ProcessCDR(1,14210128,1,1,2) [2025-01-09 14:16:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:16:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:16:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:16:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210128', 'tblTempUsageDetail_20' ) start [2025-01-09 14:16:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210128', 'tblTempUsageDetail_20' ) end [2025-01-09 14:16:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:16:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:16:35] Production.INFO: ==2801== Releasing lock... [2025-01-09 14:16:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:16:35] Production.INFO: 64.25 MB #Memory Used# [2025-01-09 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:17:05 [end_date_ymd] => 2025-01-09 14:17:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:17:05' and `end` < '2025-01-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-01-09 14:17:30] Production.INFO: count ==4849 [2025-01-09 14:17:32] Production.ERROR: pbx CDR StartTime 2025-01-09 11:17:05 - End Time 2025-01-09 14:17:05 [2025-01-09 14:17:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210133', 'tblTempUsageDetail_20' ) start [2025-01-09 14:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210133', 'tblTempUsageDetail_20' ) end [2025-01-09 14:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210133', 'tblTempVendorCDR_20' ) start [2025-01-09 14:17:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210133', 'tblTempVendorCDR_20' ) end [2025-01-09 14:17:32] Production.INFO: ProcessCDR(1,14210133,1,1,2) [2025-01-09 14:17:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:17:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:17:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:17:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:17:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210133', 'tblTempUsageDetail_20' ) start [2025-01-09 14:17:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210133', 'tblTempUsageDetail_20' ) end [2025-01-09 14:17:37] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:17:37] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:17:37] Production.INFO: ==2875== Releasing lock... [2025-01-09 14:17:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:17:37] Production.INFO: 64.25 MB #Memory Used# [2025-01-09 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:18:05 [end_date_ymd] => 2025-01-09 14:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:18:05' and `end` < '2025-01-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-01-09 14:18:32] Production.INFO: count ==4857 [2025-01-09 14:18:34] Production.ERROR: pbx CDR StartTime 2025-01-09 11:18:05 - End Time 2025-01-09 14:18:05 [2025-01-09 14:18:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210138', 'tblTempUsageDetail_20' ) start [2025-01-09 14:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210138', 'tblTempUsageDetail_20' ) end [2025-01-09 14:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210138', 'tblTempVendorCDR_20' ) start [2025-01-09 14:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210138', 'tblTempVendorCDR_20' ) end [2025-01-09 14:18:35] Production.INFO: ProcessCDR(1,14210138,1,1,2) [2025-01-09 14:18:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:18:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:18:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:18:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:18:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210138', 'tblTempUsageDetail_20' ) start [2025-01-09 14:18:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210138', 'tblTempUsageDetail_20' ) end [2025-01-09 14:18:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:18:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:18:39] Production.INFO: ==2944== Releasing lock... [2025-01-09 14:18:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:18:39] Production.INFO: 64.25 MB #Memory Used# [2025-01-09 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:19:05 [end_date_ymd] => 2025-01-09 14:19:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:19:05' and `end` < '2025-01-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-01-09 14:19:22] Production.INFO: count ==4857 [2025-01-09 14:19:24] Production.ERROR: pbx CDR StartTime 2025-01-09 11:19:05 - End Time 2025-01-09 14:19:05 [2025-01-09 14:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210143', 'tblTempUsageDetail_20' ) start [2025-01-09 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210143', 'tblTempUsageDetail_20' ) end [2025-01-09 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210143', 'tblTempVendorCDR_20' ) start [2025-01-09 14:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210143', 'tblTempVendorCDR_20' ) end [2025-01-09 14:19:24] Production.INFO: ProcessCDR(1,14210143,1,1,2) [2025-01-09 14:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210143', 'tblTempUsageDetail_20' ) start [2025-01-09 14:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210143', 'tblTempUsageDetail_20' ) end [2025-01-09 14:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:19:28] Production.INFO: ==3014== Releasing lock... [2025-01-09 14:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:19:28] Production.INFO: 64.25 MB #Memory Used# [2025-01-09 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:20:05 [end_date_ymd] => 2025-01-09 14:20:05 [RateCDR] => 1 ) [2025-01-09 14:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:20:05' and `end` < '2025-01-09 14:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:20:19] Production.INFO: count ==4855 [2025-01-09 14:20:21] Production.ERROR: pbx CDR StartTime 2025-01-09 11:20:05 - End Time 2025-01-09 14:20:05 [2025-01-09 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210149', 'tblTempUsageDetail_20' ) start [2025-01-09 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210149', 'tblTempUsageDetail_20' ) end [2025-01-09 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210149', 'tblTempVendorCDR_20' ) start [2025-01-09 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210149', 'tblTempVendorCDR_20' ) end [2025-01-09 14:20:21] Production.INFO: ProcessCDR(1,14210149,1,1,2) [2025-01-09 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210149', 'tblTempUsageDetail_20' ) start [2025-01-09 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210149', 'tblTempUsageDetail_20' ) end [2025-01-09 14:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:20:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:20:26] Production.INFO: ==3090== Releasing lock... [2025-01-09 14:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:20:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-09 14:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:21:04 [end_date_ymd] => 2025-01-09 14:21:04 [RateCDR] => 1 ) [2025-01-09 14:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:21:04' and `end` < '2025-01-09 14:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:21:25] Production.INFO: count ==4871 [2025-01-09 14:21:27] Production.ERROR: pbx CDR StartTime 2025-01-09 11:21:04 - End Time 2025-01-09 14:21:04 [2025-01-09 14:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210154', 'tblTempUsageDetail_20' ) start [2025-01-09 14:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210154', 'tblTempUsageDetail_20' ) end [2025-01-09 14:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210154', 'tblTempVendorCDR_20' ) start [2025-01-09 14:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210154', 'tblTempVendorCDR_20' ) end [2025-01-09 14:21:27] Production.INFO: ProcessCDR(1,14210154,1,1,2) [2025-01-09 14:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210154', 'tblTempUsageDetail_20' ) start [2025-01-09 14:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210154', 'tblTempUsageDetail_20' ) end [2025-01-09 14:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:21:32] Production.INFO: ==3167== Releasing lock... [2025-01-09 14:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:21:32] Production.INFO: 64.5 MB #Memory Used# [2025-01-09 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:22:05 [end_date_ymd] => 2025-01-09 14:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:22:05' and `end` < '2025-01-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-01-09 14:22:30] Production.INFO: count ==4898 [2025-01-09 14:22:32] Production.ERROR: pbx CDR StartTime 2025-01-09 11:22:05 - End Time 2025-01-09 14:22:05 [2025-01-09 14:22:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210159', 'tblTempUsageDetail_20' ) start [2025-01-09 14:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210159', 'tblTempUsageDetail_20' ) end [2025-01-09 14:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210159', 'tblTempVendorCDR_20' ) start [2025-01-09 14:22:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210159', 'tblTempVendorCDR_20' ) end [2025-01-09 14:22:32] Production.INFO: ProcessCDR(1,14210159,1,1,2) [2025-01-09 14:22:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:22:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:22:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:22:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:22:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210159', 'tblTempUsageDetail_20' ) start [2025-01-09 14:22:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210159', 'tblTempUsageDetail_20' ) end [2025-01-09 14:22:37] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:22:37] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:22:37] Production.INFO: ==3276== Releasing lock... [2025-01-09 14:22:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:22:37] Production.INFO: 64.75 MB #Memory Used# [2025-01-09 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:23:05 [end_date_ymd] => 2025-01-09 14:23:05 [RateCDR] => 1 ) [2025-01-09 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:23:05' and `end` < '2025-01-09 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:23:27] Production.INFO: count ==4917 [2025-01-09 14:23:29] Production.ERROR: pbx CDR StartTime 2025-01-09 11:23:05 - End Time 2025-01-09 14:23:05 [2025-01-09 14:23:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210164', 'tblTempUsageDetail_20' ) start [2025-01-09 14:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210164', 'tblTempUsageDetail_20' ) end [2025-01-09 14:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210164', 'tblTempVendorCDR_20' ) start [2025-01-09 14:23:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210164', 'tblTempVendorCDR_20' ) end [2025-01-09 14:23:29] Production.INFO: ProcessCDR(1,14210164,1,1,2) [2025-01-09 14:23:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210164', 'tblTempUsageDetail_20' ) start [2025-01-09 14:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210164', 'tblTempUsageDetail_20' ) end [2025-01-09 14:23:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:23:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:23:34] Production.INFO: ==3345== Releasing lock... [2025-01-09 14:23:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:23:34] Production.INFO: 64.75 MB #Memory Used# [2025-01-09 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:24:05 [end_date_ymd] => 2025-01-09 14:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:24:05' and `end` < '2025-01-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-01-09 14:24:28] Production.INFO: count ==4899 [2025-01-09 14:24:30] Production.ERROR: pbx CDR StartTime 2025-01-09 11:24:05 - End Time 2025-01-09 14:24:05 [2025-01-09 14:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210169', 'tblTempUsageDetail_20' ) start [2025-01-09 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210169', 'tblTempUsageDetail_20' ) end [2025-01-09 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210169', 'tblTempVendorCDR_20' ) start [2025-01-09 14:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210169', 'tblTempVendorCDR_20' ) end [2025-01-09 14:24:30] Production.INFO: ProcessCDR(1,14210169,1,1,2) [2025-01-09 14:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:24:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:24:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:24:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210169', 'tblTempUsageDetail_20' ) start [2025-01-09 14:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210169', 'tblTempUsageDetail_20' ) end [2025-01-09 14:24:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:24:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:24:34] Production.INFO: ==3420== Releasing lock... [2025-01-09 14:24:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:24:34] Production.INFO: 64.75 MB #Memory Used# [2025-01-09 14:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:25:04 [end_date_ymd] => 2025-01-09 14:25:04 [RateCDR] => 1 ) [2025-01-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-01-09 11:25:04' and `end` < '2025-01-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-01-09 14:25:24] Production.INFO: count ==4910 [2025-01-09 14:25:26] Production.ERROR: pbx CDR StartTime 2025-01-09 11:25:04 - End Time 2025-01-09 14:25:04 [2025-01-09 14:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210174', 'tblTempUsageDetail_20' ) start [2025-01-09 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210174', 'tblTempUsageDetail_20' ) end [2025-01-09 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210174', 'tblTempVendorCDR_20' ) start [2025-01-09 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210174', 'tblTempVendorCDR_20' ) end [2025-01-09 14:25:26] Production.INFO: ProcessCDR(1,14210174,1,1,2) [2025-01-09 14:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210174', 'tblTempUsageDetail_20' ) start [2025-01-09 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210174', 'tblTempUsageDetail_20' ) end [2025-01-09 14:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:25:31] Production.INFO: ==3489== Releasing lock... [2025-01-09 14:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:25:31] Production.INFO: 64.75 MB #Memory Used# [2025-01-09 14:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:26:04 [end_date_ymd] => 2025-01-09 14:26:04 [RateCDR] => 1 ) [2025-01-09 14:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:26:04' and `end` < '2025-01-09 14:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:26:22] Production.INFO: count ==4897 [2025-01-09 14:26:24] Production.ERROR: pbx CDR StartTime 2025-01-09 11:26:04 - End Time 2025-01-09 14:26:04 [2025-01-09 14:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210179', 'tblTempUsageDetail_20' ) start [2025-01-09 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210179', 'tblTempUsageDetail_20' ) end [2025-01-09 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210179', 'tblTempVendorCDR_20' ) start [2025-01-09 14:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210179', 'tblTempVendorCDR_20' ) end [2025-01-09 14:26:24] Production.INFO: ProcessCDR(1,14210179,1,1,2) [2025-01-09 14:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210179', 'tblTempUsageDetail_20' ) start [2025-01-09 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210179', 'tblTempUsageDetail_20' ) end [2025-01-09 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:26:27] Production.INFO: ==3561== Releasing lock... [2025-01-09 14:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:26:27] Production.INFO: 64.75 MB #Memory Used# [2025-01-09 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:27:05 [end_date_ymd] => 2025-01-09 14:27:05 [RateCDR] => 1 ) [2025-01-09 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:27:05' and `end` < '2025-01-09 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:27:24] Production.INFO: count ==4877 [2025-01-09 14:27:26] Production.ERROR: pbx CDR StartTime 2025-01-09 11:27:05 - End Time 2025-01-09 14:27:05 [2025-01-09 14:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210184', 'tblTempUsageDetail_20' ) start [2025-01-09 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210184', 'tblTempUsageDetail_20' ) end [2025-01-09 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210184', 'tblTempVendorCDR_20' ) start [2025-01-09 14:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210184', 'tblTempVendorCDR_20' ) end [2025-01-09 14:27:26] Production.INFO: ProcessCDR(1,14210184,1,1,2) [2025-01-09 14:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:27:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:27:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:27:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210184', 'tblTempUsageDetail_20' ) start [2025-01-09 14:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210184', 'tblTempUsageDetail_20' ) end [2025-01-09 14:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:27:30] Production.INFO: ==3632== Releasing lock... [2025-01-09 14:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:27:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-09 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:28:05 [end_date_ymd] => 2025-01-09 14:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:28:05' and `end` < '2025-01-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-01-09 14:28:20] Production.INFO: count ==4854 [2025-01-09 14:28:22] Production.ERROR: pbx CDR StartTime 2025-01-09 11:28:05 - End Time 2025-01-09 14:28:05 [2025-01-09 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210189', 'tblTempUsageDetail_20' ) start [2025-01-09 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210189', 'tblTempUsageDetail_20' ) end [2025-01-09 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210189', 'tblTempVendorCDR_20' ) start [2025-01-09 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210189', 'tblTempVendorCDR_20' ) end [2025-01-09 14:28:22] Production.INFO: ProcessCDR(1,14210189,1,1,2) [2025-01-09 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210189', 'tblTempUsageDetail_20' ) start [2025-01-09 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210189', 'tblTempUsageDetail_20' ) end [2025-01-09 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:28:26] Production.INFO: ==3708== Releasing lock... [2025-01-09 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:28:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-09 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:29:06 [end_date_ymd] => 2025-01-09 14:29:06 [RateCDR] => 1 ) [2025-01-09 14:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:29:06' and `end` < '2025-01-09 14:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:29:20] Production.INFO: count ==4898 [2025-01-09 14:29:22] Production.ERROR: pbx CDR StartTime 2025-01-09 11:29:06 - End Time 2025-01-09 14:29:06 [2025-01-09 14:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210194', 'tblTempUsageDetail_20' ) start [2025-01-09 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210194', 'tblTempUsageDetail_20' ) end [2025-01-09 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210194', 'tblTempVendorCDR_20' ) start [2025-01-09 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210194', 'tblTempVendorCDR_20' ) end [2025-01-09 14:29:22] Production.INFO: ProcessCDR(1,14210194,1,1,2) [2025-01-09 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210194', 'tblTempUsageDetail_20' ) start [2025-01-09 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210194', 'tblTempUsageDetail_20' ) end [2025-01-09 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:29:26] Production.INFO: ==3782== Releasing lock... [2025-01-09 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:29:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-09 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:30:05 [end_date_ymd] => 2025-01-09 14:30:05 [RateCDR] => 1 ) [2025-01-09 14:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:30:05' and `end` < '2025-01-09 14:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:30:31] Production.INFO: count ==4904 [2025-01-09 14:30:32] Production.ERROR: pbx CDR StartTime 2025-01-09 11:30:05 - End Time 2025-01-09 14:30:05 [2025-01-09 14:30:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:30:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210199', 'tblTempUsageDetail_20' ) start [2025-01-09 14:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210199', 'tblTempUsageDetail_20' ) end [2025-01-09 14:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210199', 'tblTempVendorCDR_20' ) start [2025-01-09 14:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210199', 'tblTempVendorCDR_20' ) end [2025-01-09 14:30:33] Production.INFO: ProcessCDR(1,14210199,1,1,2) [2025-01-09 14:30:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:30:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:30:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:30:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:30:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210199', 'tblTempUsageDetail_20' ) start [2025-01-09 14:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210199', 'tblTempUsageDetail_20' ) end [2025-01-09 14:30:38] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:30:38] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:30:38] Production.INFO: ==3854== Releasing lock... [2025-01-09 14:30:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:30:38] Production.INFO: 64.75 MB #Memory Used# [2025-01-09 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:31:05 [end_date_ymd] => 2025-01-09 14:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:31:05' and `end` < '2025-01-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-01-09 14:31:26] Production.INFO: count ==4924 [2025-01-09 14:31:28] Production.ERROR: pbx CDR StartTime 2025-01-09 11:31:05 - End Time 2025-01-09 14:31:05 [2025-01-09 14:31:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210205', 'tblTempUsageDetail_20' ) start [2025-01-09 14:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210205', 'tblTempUsageDetail_20' ) end [2025-01-09 14:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210205', 'tblTempVendorCDR_20' ) start [2025-01-09 14:31:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210205', 'tblTempVendorCDR_20' ) end [2025-01-09 14:31:28] Production.INFO: ProcessCDR(1,14210205,1,1,2) [2025-01-09 14:31:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210205', 'tblTempUsageDetail_20' ) start [2025-01-09 14:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210205', 'tblTempUsageDetail_20' ) end [2025-01-09 14:31:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:31:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:31:33] Production.INFO: ==3927== Releasing lock... [2025-01-09 14:31:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:31:33] Production.INFO: 64.75 MB #Memory Used# [2025-01-09 14:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:32:04 [end_date_ymd] => 2025-01-09 14:32:04 [RateCDR] => 1 ) [2025-01-09 14:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:32:04' and `end` < '2025-01-09 14:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:32:23] Production.INFO: count ==4923 [2025-01-09 14:32:25] Production.ERROR: pbx CDR StartTime 2025-01-09 11:32:04 - End Time 2025-01-09 14:32:04 [2025-01-09 14:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210210', 'tblTempUsageDetail_20' ) start [2025-01-09 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210210', 'tblTempUsageDetail_20' ) end [2025-01-09 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210210', 'tblTempVendorCDR_20' ) start [2025-01-09 14:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210210', 'tblTempVendorCDR_20' ) end [2025-01-09 14:32:25] Production.INFO: ProcessCDR(1,14210210,1,1,2) [2025-01-09 14:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210210', 'tblTempUsageDetail_20' ) start [2025-01-09 14:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210210', 'tblTempUsageDetail_20' ) end [2025-01-09 14:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:32:30] Production.INFO: ==3997== Releasing lock... [2025-01-09 14:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:32:30] Production.INFO: 64.75 MB #Memory Used# [2025-01-09 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:33:05 [end_date_ymd] => 2025-01-09 14:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:33:05' and `end` < '2025-01-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-01-09 14:33:19] Production.INFO: count ==4923 [2025-01-09 14:33:21] Production.ERROR: pbx CDR StartTime 2025-01-09 11:33:05 - End Time 2025-01-09 14:33:05 [2025-01-09 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210215', 'tblTempUsageDetail_20' ) start [2025-01-09 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210215', 'tblTempUsageDetail_20' ) end [2025-01-09 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210215', 'tblTempVendorCDR_20' ) start [2025-01-09 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210215', 'tblTempVendorCDR_20' ) end [2025-01-09 14:33:21] Production.INFO: ProcessCDR(1,14210215,1,1,2) [2025-01-09 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210215', 'tblTempUsageDetail_20' ) start [2025-01-09 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210215', 'tblTempUsageDetail_20' ) end [2025-01-09 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:33:26] Production.INFO: ==4068== Releasing lock... [2025-01-09 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:33:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-09 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:34:05 [end_date_ymd] => 2025-01-09 14:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:34:05' and `end` < '2025-01-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-01-09 14:34:21] Production.INFO: count ==4917 [2025-01-09 14:34:23] Production.ERROR: pbx CDR StartTime 2025-01-09 11:34:05 - End Time 2025-01-09 14:34:05 [2025-01-09 14:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210220', 'tblTempUsageDetail_20' ) start [2025-01-09 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210220', 'tblTempUsageDetail_20' ) end [2025-01-09 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210220', 'tblTempVendorCDR_20' ) start [2025-01-09 14:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210220', 'tblTempVendorCDR_20' ) end [2025-01-09 14:34:23] Production.INFO: ProcessCDR(1,14210220,1,1,2) [2025-01-09 14:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210220', 'tblTempUsageDetail_20' ) start [2025-01-09 14:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210220', 'tblTempUsageDetail_20' ) end [2025-01-09 14:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:34:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:34:28] Production.INFO: ==4139== Releasing lock... [2025-01-09 14:34:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:34:28] Production.INFO: 64.75 MB #Memory Used# [2025-01-09 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:35:05 [end_date_ymd] => 2025-01-09 14:35:05 [RateCDR] => 1 ) [2025-01-09 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:35:05' and `end` < '2025-01-09 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:35:25] Production.INFO: count ==4937 [2025-01-09 14:35:27] Production.ERROR: pbx CDR StartTime 2025-01-09 11:35:05 - End Time 2025-01-09 14:35:05 [2025-01-09 14:35:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210225', 'tblTempUsageDetail_20' ) start [2025-01-09 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210225', 'tblTempUsageDetail_20' ) end [2025-01-09 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210225', 'tblTempVendorCDR_20' ) start [2025-01-09 14:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210225', 'tblTempVendorCDR_20' ) end [2025-01-09 14:35:27] Production.INFO: ProcessCDR(1,14210225,1,1,2) [2025-01-09 14:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210225', 'tblTempUsageDetail_20' ) start [2025-01-09 14:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210225', 'tblTempUsageDetail_20' ) end [2025-01-09 14:35:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:35:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:35:31] Production.INFO: ==4223== Releasing lock... [2025-01-09 14:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:35:31] Production.INFO: 65 MB #Memory Used# [2025-01-09 14:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:36:04 [end_date_ymd] => 2025-01-09 14:36:04 [RateCDR] => 1 ) [2025-01-09 14:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:36:04' and `end` < '2025-01-09 14:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:36:18] Production.INFO: count ==4931 [2025-01-09 14:36:20] Production.ERROR: pbx CDR StartTime 2025-01-09 11:36:04 - End Time 2025-01-09 14:36:04 [2025-01-09 14:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210230', 'tblTempUsageDetail_20' ) start [2025-01-09 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210230', 'tblTempUsageDetail_20' ) end [2025-01-09 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210230', 'tblTempVendorCDR_20' ) start [2025-01-09 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210230', 'tblTempVendorCDR_20' ) end [2025-01-09 14:36:21] Production.INFO: ProcessCDR(1,14210230,1,1,2) [2025-01-09 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210230', 'tblTempUsageDetail_20' ) start [2025-01-09 14:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210230', 'tblTempUsageDetail_20' ) end [2025-01-09 14:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:36:25] Production.INFO: ==4293== Releasing lock... [2025-01-09 14:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:36:25] Production.INFO: 65 MB #Memory Used# [2025-01-09 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:37:05 [end_date_ymd] => 2025-01-09 14:37:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:37:05' and `end` < '2025-01-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-01-09 14:37:23] Production.INFO: count ==4947 [2025-01-09 14:37:25] Production.ERROR: pbx CDR StartTime 2025-01-09 11:37:05 - End Time 2025-01-09 14:37:05 [2025-01-09 14:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210235', 'tblTempUsageDetail_20' ) start [2025-01-09 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210235', 'tblTempUsageDetail_20' ) end [2025-01-09 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210235', 'tblTempVendorCDR_20' ) start [2025-01-09 14:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210235', 'tblTempVendorCDR_20' ) end [2025-01-09 14:37:25] Production.INFO: ProcessCDR(1,14210235,1,1,2) [2025-01-09 14:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210235', 'tblTempUsageDetail_20' ) start [2025-01-09 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210235', 'tblTempUsageDetail_20' ) end [2025-01-09 14:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:37:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:37:30] Production.INFO: ==4366== Releasing lock... [2025-01-09 14:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:37:30] Production.INFO: 65 MB #Memory Used# [2025-01-09 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:38:05 [end_date_ymd] => 2025-01-09 14:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:38:05' and `end` < '2025-01-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-01-09 14:38:20] Production.INFO: count ==4944 [2025-01-09 14:38:21] Production.ERROR: pbx CDR StartTime 2025-01-09 11:38:05 - End Time 2025-01-09 14:38:05 [2025-01-09 14:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210240', 'tblTempUsageDetail_20' ) start [2025-01-09 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210240', 'tblTempUsageDetail_20' ) end [2025-01-09 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210240', 'tblTempVendorCDR_20' ) start [2025-01-09 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210240', 'tblTempVendorCDR_20' ) end [2025-01-09 14:38:22] Production.INFO: ProcessCDR(1,14210240,1,1,2) [2025-01-09 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210240', 'tblTempUsageDetail_20' ) start [2025-01-09 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210240', 'tblTempUsageDetail_20' ) end [2025-01-09 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:38:26] Production.INFO: ==4476== Releasing lock... [2025-01-09 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:38:26] Production.INFO: 65 MB #Memory Used# [2025-01-09 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:39:04 [end_date_ymd] => 2025-01-09 14:39:04 [RateCDR] => 1 ) [2025-01-09 14:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:39:04' and `end` < '2025-01-09 14:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:39:18] Production.INFO: count ==4937 [2025-01-09 14:39:20] Production.ERROR: pbx CDR StartTime 2025-01-09 11:39:04 - End Time 2025-01-09 14:39:04 [2025-01-09 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210245', 'tblTempUsageDetail_20' ) start [2025-01-09 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210245', 'tblTempUsageDetail_20' ) end [2025-01-09 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210245', 'tblTempVendorCDR_20' ) start [2025-01-09 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210245', 'tblTempVendorCDR_20' ) end [2025-01-09 14:39:20] Production.INFO: ProcessCDR(1,14210245,1,1,2) [2025-01-09 14:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210245', 'tblTempUsageDetail_20' ) start [2025-01-09 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210245', 'tblTempUsageDetail_20' ) end [2025-01-09 14:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:39:25] Production.INFO: ==4547== Releasing lock... [2025-01-09 14:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:39:25] Production.INFO: 65 MB #Memory Used# [2025-01-09 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:40:06 [end_date_ymd] => 2025-01-09 14:40:06 [RateCDR] => 1 ) [2025-01-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-01-09 11:40:06' and `end` < '2025-01-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-01-09 14:40:22] Production.INFO: count ==4925 [2025-01-09 14:40:24] Production.ERROR: pbx CDR StartTime 2025-01-09 11:40:06 - End Time 2025-01-09 14:40:06 [2025-01-09 14:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210250', 'tblTempUsageDetail_20' ) start [2025-01-09 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210250', 'tblTempUsageDetail_20' ) end [2025-01-09 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210250', 'tblTempVendorCDR_20' ) start [2025-01-09 14:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210250', 'tblTempVendorCDR_20' ) end [2025-01-09 14:40:24] Production.INFO: ProcessCDR(1,14210250,1,1,2) [2025-01-09 14:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210250', 'tblTempUsageDetail_20' ) start [2025-01-09 14:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210250', 'tblTempUsageDetail_20' ) end [2025-01-09 14:40:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:40:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:40:29] Production.INFO: ==4627== Releasing lock... [2025-01-09 14:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:40:29] Production.INFO: 64.75 MB #Memory Used# [2025-01-09 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:41:04 [end_date_ymd] => 2025-01-09 14:41:04 [RateCDR] => 1 ) [2025-01-09 14:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:41:04' and `end` < '2025-01-09 14:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:41:32] Production.INFO: count ==4952 [2025-01-09 14:41:34] Production.ERROR: pbx CDR StartTime 2025-01-09 11:41:04 - End Time 2025-01-09 14:41:04 [2025-01-09 14:41:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210256', 'tblTempUsageDetail_20' ) start [2025-01-09 14:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210256', 'tblTempUsageDetail_20' ) end [2025-01-09 14:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210256', 'tblTempVendorCDR_20' ) start [2025-01-09 14:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210256', 'tblTempVendorCDR_20' ) end [2025-01-09 14:41:34] Production.INFO: ProcessCDR(1,14210256,1,1,2) [2025-01-09 14:41:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:41:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:41:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:41:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:41:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210256', 'tblTempUsageDetail_20' ) start [2025-01-09 14:41:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210256', 'tblTempUsageDetail_20' ) end [2025-01-09 14:41:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:41:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:41:39] Production.INFO: ==4702== Releasing lock... [2025-01-09 14:41:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:41:39] Production.INFO: 65 MB #Memory Used# [2025-01-09 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:42:05 [end_date_ymd] => 2025-01-09 14:42:05 [RateCDR] => 1 ) [2025-01-09 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:42:05' and `end` < '2025-01-09 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:42:27] Production.INFO: count ==4965 [2025-01-09 14:42:29] Production.ERROR: pbx CDR StartTime 2025-01-09 11:42:05 - End Time 2025-01-09 14:42:05 [2025-01-09 14:42:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210261', 'tblTempUsageDetail_20' ) start [2025-01-09 14:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210261', 'tblTempUsageDetail_20' ) end [2025-01-09 14:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210261', 'tblTempVendorCDR_20' ) start [2025-01-09 14:42:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210261', 'tblTempVendorCDR_20' ) end [2025-01-09 14:42:29] Production.INFO: ProcessCDR(1,14210261,1,1,2) [2025-01-09 14:42:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:42:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:42:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:42:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210261', 'tblTempUsageDetail_20' ) start [2025-01-09 14:42:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210261', 'tblTempUsageDetail_20' ) end [2025-01-09 14:42:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:42:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:42:34] Production.INFO: ==4781== Releasing lock... [2025-01-09 14:42:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:42:34] Production.INFO: 65.25 MB #Memory Used# [2025-01-09 14:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:43:04 [end_date_ymd] => 2025-01-09 14:43:04 [RateCDR] => 1 ) [2025-01-09 14:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:43:04' and `end` < '2025-01-09 14:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:43:25] Production.INFO: count ==4952 [2025-01-09 14:43:26] Production.ERROR: pbx CDR StartTime 2025-01-09 11:43:04 - End Time 2025-01-09 14:43:04 [2025-01-09 14:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210266', 'tblTempUsageDetail_20' ) start [2025-01-09 14:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210266', 'tblTempUsageDetail_20' ) end [2025-01-09 14:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210266', 'tblTempVendorCDR_20' ) start [2025-01-09 14:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210266', 'tblTempVendorCDR_20' ) end [2025-01-09 14:43:27] Production.INFO: ProcessCDR(1,14210266,1,1,2) [2025-01-09 14:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210266', 'tblTempUsageDetail_20' ) start [2025-01-09 14:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210266', 'tblTempUsageDetail_20' ) end [2025-01-09 14:43:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:43:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:43:31] Production.INFO: ==4851== Releasing lock... [2025-01-09 14:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:43:31] Production.INFO: 65 MB #Memory Used# [2025-01-09 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:44:05 [end_date_ymd] => 2025-01-09 14:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:44:05' and `end` < '2025-01-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-01-09 14:44:25] Production.INFO: count ==4951 [2025-01-09 14:44:27] Production.ERROR: pbx CDR StartTime 2025-01-09 11:44:05 - End Time 2025-01-09 14:44:05 [2025-01-09 14:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210271', 'tblTempUsageDetail_20' ) start [2025-01-09 14:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210271', 'tblTempUsageDetail_20' ) end [2025-01-09 14:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210271', 'tblTempVendorCDR_20' ) start [2025-01-09 14:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210271', 'tblTempVendorCDR_20' ) end [2025-01-09 14:44:27] Production.INFO: ProcessCDR(1,14210271,1,1,2) [2025-01-09 14:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210271', 'tblTempUsageDetail_20' ) start [2025-01-09 14:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210271', 'tblTempUsageDetail_20' ) end [2025-01-09 14:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:44:31] Production.INFO: ==4922== Releasing lock... [2025-01-09 14:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:44:31] Production.INFO: 65 MB #Memory Used# [2025-01-09 14:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:45:04 [end_date_ymd] => 2025-01-09 14:45:04 [RateCDR] => 1 ) [2025-01-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-01-09 11:45:04' and `end` < '2025-01-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-01-09 14:45:31] Production.INFO: count ==4960 [2025-01-09 14:45:33] Production.ERROR: pbx CDR StartTime 2025-01-09 11:45:04 - End Time 2025-01-09 14:45:04 [2025-01-09 14:45:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210276', 'tblTempUsageDetail_20' ) start [2025-01-09 14:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210276', 'tblTempUsageDetail_20' ) end [2025-01-09 14:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210276', 'tblTempVendorCDR_20' ) start [2025-01-09 14:45:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210276', 'tblTempVendorCDR_20' ) end [2025-01-09 14:45:33] Production.INFO: ProcessCDR(1,14210276,1,1,2) [2025-01-09 14:45:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:45:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:45:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:45:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210276', 'tblTempUsageDetail_20' ) start [2025-01-09 14:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210276', 'tblTempUsageDetail_20' ) end [2025-01-09 14:45:38] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:45:38] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:45:38] Production.INFO: ==4992== Releasing lock... [2025-01-09 14:45:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:45:38] Production.INFO: 65.25 MB #Memory Used# [2025-01-09 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:46:05 [end_date_ymd] => 2025-01-09 14:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:46:05' and `end` < '2025-01-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-01-09 14:46:32] Production.INFO: count ==4968 [2025-01-09 14:46:34] Production.ERROR: pbx CDR StartTime 2025-01-09 11:46:05 - End Time 2025-01-09 14:46:05 [2025-01-09 14:46:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210281', 'tblTempUsageDetail_20' ) start [2025-01-09 14:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210281', 'tblTempUsageDetail_20' ) end [2025-01-09 14:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210281', 'tblTempVendorCDR_20' ) start [2025-01-09 14:46:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210281', 'tblTempVendorCDR_20' ) end [2025-01-09 14:46:34] Production.INFO: ProcessCDR(1,14210281,1,1,2) [2025-01-09 14:46:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:46:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:46:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:46:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:46:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210281', 'tblTempUsageDetail_20' ) start [2025-01-09 14:46:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210281', 'tblTempUsageDetail_20' ) end [2025-01-09 14:46:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:46:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:46:39] Production.INFO: ==5065== Releasing lock... [2025-01-09 14:46:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:46:39] Production.INFO: 65.25 MB #Memory Used# [2025-01-09 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:47:05 [end_date_ymd] => 2025-01-09 14:47:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:47:05' and `end` < '2025-01-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-01-09 14:47:23] Production.INFO: count ==4943 [2025-01-09 14:47:25] Production.ERROR: pbx CDR StartTime 2025-01-09 11:47:05 - End Time 2025-01-09 14:47:05 [2025-01-09 14:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210286', 'tblTempUsageDetail_20' ) start [2025-01-09 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210286', 'tblTempUsageDetail_20' ) end [2025-01-09 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210286', 'tblTempVendorCDR_20' ) start [2025-01-09 14:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210286', 'tblTempVendorCDR_20' ) end [2025-01-09 14:47:25] Production.INFO: ProcessCDR(1,14210286,1,1,2) [2025-01-09 14:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210286', 'tblTempUsageDetail_20' ) start [2025-01-09 14:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210286', 'tblTempUsageDetail_20' ) end [2025-01-09 14:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:47:29] Production.INFO: ==5136== Releasing lock... [2025-01-09 14:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:47:29] Production.INFO: 65 MB #Memory Used# [2025-01-09 14:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:48:04 [end_date_ymd] => 2025-01-09 14:48:04 [RateCDR] => 1 ) [2025-01-09 14:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:48:04' and `end` < '2025-01-09 14:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:48:22] Production.INFO: count ==4947 [2025-01-09 14:48:24] Production.ERROR: pbx CDR StartTime 2025-01-09 11:48:04 - End Time 2025-01-09 14:48:04 [2025-01-09 14:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210291', 'tblTempUsageDetail_20' ) start [2025-01-09 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210291', 'tblTempUsageDetail_20' ) end [2025-01-09 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210291', 'tblTempVendorCDR_20' ) start [2025-01-09 14:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210291', 'tblTempVendorCDR_20' ) end [2025-01-09 14:48:24] Production.INFO: ProcessCDR(1,14210291,1,1,2) [2025-01-09 14:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210291', 'tblTempUsageDetail_20' ) start [2025-01-09 14:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210291', 'tblTempUsageDetail_20' ) end [2025-01-09 14:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:48:30] Production.INFO: ==5204== Releasing lock... [2025-01-09 14:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:48:30] Production.INFO: 65 MB #Memory Used# [2025-01-09 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:49:05 [end_date_ymd] => 2025-01-09 14:49:05 [RateCDR] => 1 ) [2025-01-09 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:49:05' and `end` < '2025-01-09 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:49:24] Production.INFO: count ==4932 [2025-01-09 14:49:26] Production.ERROR: pbx CDR StartTime 2025-01-09 11:49:05 - End Time 2025-01-09 14:49:05 [2025-01-09 14:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210296', 'tblTempUsageDetail_20' ) start [2025-01-09 14:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210296', 'tblTempUsageDetail_20' ) end [2025-01-09 14:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210296', 'tblTempVendorCDR_20' ) start [2025-01-09 14:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210296', 'tblTempVendorCDR_20' ) end [2025-01-09 14:49:26] Production.INFO: ProcessCDR(1,14210296,1,1,2) [2025-01-09 14:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210296', 'tblTempUsageDetail_20' ) start [2025-01-09 14:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210296', 'tblTempUsageDetail_20' ) end [2025-01-09 14:49:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:49:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:49:31] Production.INFO: ==5278== Releasing lock... [2025-01-09 14:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:49:31] Production.INFO: 65 MB #Memory Used# [2025-01-09 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:50:05 [end_date_ymd] => 2025-01-09 14:50:05 [RateCDR] => 1 ) [2025-01-09 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:50:05' and `end` < '2025-01-09 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:50:35] Production.INFO: count ==3418 [2025-01-09 14:50:37] Production.ERROR: pbx CDR StartTime 2025-01-09 11:50:05 - End Time 2025-01-09 14:50:05 [2025-01-09 14:50:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:50:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210302', 'tblTempUsageDetail_20' ) start [2025-01-09 14:50:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210302', 'tblTempUsageDetail_20' ) end [2025-01-09 14:50:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210302', 'tblTempVendorCDR_20' ) start [2025-01-09 14:50:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210302', 'tblTempVendorCDR_20' ) end [2025-01-09 14:50:37] Production.INFO: ProcessCDR(1,14210302,1,1,2) [2025-01-09 14:50:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:50:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:50:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:50:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:50:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210302', 'tblTempUsageDetail_20' ) start [2025-01-09 14:50:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210302', 'tblTempUsageDetail_20' ) end [2025-01-09 14:50:42] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:50:42] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:50:42] Production.INFO: ==5352== Releasing lock... [2025-01-09 14:50:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:50:42] Production.INFO: 55 MB #Memory Used# [2025-01-09 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:51:05 [end_date_ymd] => 2025-01-09 14:51:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:51:05' and `end` < '2025-01-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-01-09 14:51:32] Production.INFO: count ==3465 [2025-01-09 14:51:34] Production.ERROR: pbx CDR StartTime 2025-01-09 11:51:05 - End Time 2025-01-09 14:51:05 [2025-01-09 14:51:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210307', 'tblTempUsageDetail_20' ) start [2025-01-09 14:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210307', 'tblTempUsageDetail_20' ) end [2025-01-09 14:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210307', 'tblTempVendorCDR_20' ) start [2025-01-09 14:51:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210307', 'tblTempVendorCDR_20' ) end [2025-01-09 14:51:34] Production.INFO: ProcessCDR(1,14210307,1,1,2) [2025-01-09 14:51:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:51:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:51:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:51:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:51:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210307', 'tblTempUsageDetail_20' ) start [2025-01-09 14:51:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210307', 'tblTempUsageDetail_20' ) end [2025-01-09 14:51:38] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:51:38] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:51:38] Production.INFO: ==5425== Releasing lock... [2025-01-09 14:51:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:51:38] Production.INFO: 54.5 MB #Memory Used# [2025-01-09 14:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:52:04 [end_date_ymd] => 2025-01-09 14:52:04 [RateCDR] => 1 ) [2025-01-09 14:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:52:04' and `end` < '2025-01-09 14:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:52:35] Production.INFO: count ==3468 [2025-01-09 14:52:37] Production.ERROR: pbx CDR StartTime 2025-01-09 11:52:04 - End Time 2025-01-09 14:52:04 [2025-01-09 14:52:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210312', 'tblTempUsageDetail_20' ) start [2025-01-09 14:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210312', 'tblTempUsageDetail_20' ) end [2025-01-09 14:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210312', 'tblTempVendorCDR_20' ) start [2025-01-09 14:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210312', 'tblTempVendorCDR_20' ) end [2025-01-09 14:52:37] Production.INFO: ProcessCDR(1,14210312,1,1,2) [2025-01-09 14:52:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:52:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:52:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:52:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:52:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210312', 'tblTempUsageDetail_20' ) start [2025-01-09 14:52:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210312', 'tblTempUsageDetail_20' ) end [2025-01-09 14:52:42] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:52:42] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:52:42] Production.INFO: ==5496== Releasing lock... [2025-01-09 14:52:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:52:42] Production.INFO: 54.25 MB #Memory Used# [2025-01-09 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:53:05 [end_date_ymd] => 2025-01-09 14:53:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:53:05' and `end` < '2025-01-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-01-09 14:53:35] Production.INFO: count ==3454 [2025-01-09 14:53:37] Production.ERROR: pbx CDR StartTime 2025-01-09 11:53:05 - End Time 2025-01-09 14:53:05 [2025-01-09 14:53:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210317', 'tblTempUsageDetail_20' ) start [2025-01-09 14:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210317', 'tblTempUsageDetail_20' ) end [2025-01-09 14:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210317', 'tblTempVendorCDR_20' ) start [2025-01-09 14:53:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210317', 'tblTempVendorCDR_20' ) end [2025-01-09 14:53:37] Production.INFO: ProcessCDR(1,14210317,1,1,2) [2025-01-09 14:53:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:53:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:53:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:53:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:53:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210317', 'tblTempUsageDetail_20' ) start [2025-01-09 14:53:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210317', 'tblTempUsageDetail_20' ) end [2025-01-09 14:53:42] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:53:42] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:53:42] Production.INFO: ==5606== Releasing lock... [2025-01-09 14:53:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:53:42] Production.INFO: 53.75 MB #Memory Used# [2025-01-09 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:54:05 [end_date_ymd] => 2025-01-09 14:54:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:54:05' and `end` < '2025-01-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-01-09 14:54:39] Production.INFO: count ==3435 [2025-01-09 14:54:41] Production.ERROR: pbx CDR StartTime 2025-01-09 11:54:05 - End Time 2025-01-09 14:54:05 [2025-01-09 14:54:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:54:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210322', 'tblTempUsageDetail_20' ) start [2025-01-09 14:54:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210322', 'tblTempUsageDetail_20' ) end [2025-01-09 14:54:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210322', 'tblTempVendorCDR_20' ) start [2025-01-09 14:54:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210322', 'tblTempVendorCDR_20' ) end [2025-01-09 14:54:41] Production.INFO: ProcessCDR(1,14210322,1,1,2) [2025-01-09 14:54:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:54:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:54:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:54:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:54:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210322', 'tblTempUsageDetail_20' ) start [2025-01-09 14:54:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210322', 'tblTempUsageDetail_20' ) end [2025-01-09 14:54:44] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:54:44] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:54:44] Production.INFO: ==5677== Releasing lock... [2025-01-09 14:54:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:54:44] Production.INFO: 54.5 MB #Memory Used# [2025-01-09 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:55:05 [end_date_ymd] => 2025-01-09 14:55:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:55:05' and `end` < '2025-01-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-01-09 14:55:36] Production.INFO: count ==3422 [2025-01-09 14:55:37] Production.ERROR: pbx CDR StartTime 2025-01-09 11:55:05 - End Time 2025-01-09 14:55:05 [2025-01-09 14:55:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210327', 'tblTempUsageDetail_20' ) start [2025-01-09 14:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210327', 'tblTempUsageDetail_20' ) end [2025-01-09 14:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210327', 'tblTempVendorCDR_20' ) start [2025-01-09 14:55:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210327', 'tblTempVendorCDR_20' ) end [2025-01-09 14:55:37] Production.INFO: ProcessCDR(1,14210327,1,1,2) [2025-01-09 14:55:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:55:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:55:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:55:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:55:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210327', 'tblTempUsageDetail_20' ) start [2025-01-09 14:55:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210327', 'tblTempUsageDetail_20' ) end [2025-01-09 14:55:41] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:55:41] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:55:41] Production.INFO: ==5751== Releasing lock... [2025-01-09 14:55:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:55:41] Production.INFO: 54.5 MB #Memory Used# [2025-01-09 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:56:05 [end_date_ymd] => 2025-01-09 14:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:56:05' and `end` < '2025-01-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-01-09 14:56:34] Production.INFO: count ==3418 [2025-01-09 14:56:35] Production.ERROR: pbx CDR StartTime 2025-01-09 11:56:05 - End Time 2025-01-09 14:56:05 [2025-01-09 14:56:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:56:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210332', 'tblTempUsageDetail_20' ) start [2025-01-09 14:56:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210332', 'tblTempUsageDetail_20' ) end [2025-01-09 14:56:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210332', 'tblTempVendorCDR_20' ) start [2025-01-09 14:56:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210332', 'tblTempVendorCDR_20' ) end [2025-01-09 14:56:35] Production.INFO: ProcessCDR(1,14210332,1,1,2) [2025-01-09 14:56:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:56:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:56:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:56:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:56:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210332', 'tblTempUsageDetail_20' ) start [2025-01-09 14:56:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210332', 'tblTempUsageDetail_20' ) end [2025-01-09 14:56:40] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:56:40] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:56:40] Production.INFO: ==5825== Releasing lock... [2025-01-09 14:56:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:56:40] Production.INFO: 55 MB #Memory Used# [2025-01-09 14:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:57:04 [end_date_ymd] => 2025-01-09 14:57:04 [RateCDR] => 1 ) [2025-01-09 14:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:57:04' and `end` < '2025-01-09 14:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:57:25] Production.INFO: count ==3403 [2025-01-09 14:57:27] Production.ERROR: pbx CDR StartTime 2025-01-09 11:57:04 - End Time 2025-01-09 14:57:04 [2025-01-09 14:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210337', 'tblTempUsageDetail_20' ) start [2025-01-09 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210337', 'tblTempUsageDetail_20' ) end [2025-01-09 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210337', 'tblTempVendorCDR_20' ) start [2025-01-09 14:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210337', 'tblTempVendorCDR_20' ) end [2025-01-09 14:57:27] Production.INFO: ProcessCDR(1,14210337,1,1,2) [2025-01-09 14:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210337', 'tblTempUsageDetail_20' ) start [2025-01-09 14:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210337', 'tblTempUsageDetail_20' ) end [2025-01-09 14:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:57:31] Production.INFO: ==5897== Releasing lock... [2025-01-09 14:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:57:31] Production.INFO: 53.75 MB #Memory Used# [2025-01-09 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:58:05 [end_date_ymd] => 2025-01-09 14:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 11:58:05' and `end` < '2025-01-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-01-09 14:58:20] Production.INFO: count ==3406 [2025-01-09 14:58:21] Production.ERROR: pbx CDR StartTime 2025-01-09 11:58:05 - End Time 2025-01-09 14:58:05 [2025-01-09 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210342', 'tblTempUsageDetail_20' ) start [2025-01-09 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210342', 'tblTempUsageDetail_20' ) end [2025-01-09 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210342', 'tblTempVendorCDR_20' ) start [2025-01-09 14:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210342', 'tblTempVendorCDR_20' ) end [2025-01-09 14:58:22] Production.INFO: ProcessCDR(1,14210342,1,1,2) [2025-01-09 14:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210342', 'tblTempUsageDetail_20' ) start [2025-01-09 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210342', 'tblTempUsageDetail_20' ) end [2025-01-09 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:58:26] Production.INFO: ==5969== Releasing lock... [2025-01-09 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:58:26] Production.INFO: 54.5 MB #Memory Used# [2025-01-09 14:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 11:59:04 [end_date_ymd] => 2025-01-09 14:59:04 [RateCDR] => 1 ) [2025-01-09 14:59:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 11:59:04' and `end` < '2025-01-09 14:59:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 14:59:18] Production.INFO: count ==3408 [2025-01-09 14:59:20] Production.ERROR: pbx CDR StartTime 2025-01-09 11:59:04 - End Time 2025-01-09 14:59:04 [2025-01-09 14:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210347', 'tblTempUsageDetail_20' ) start [2025-01-09 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210347', 'tblTempUsageDetail_20' ) end [2025-01-09 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210347', 'tblTempVendorCDR_20' ) start [2025-01-09 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210347', 'tblTempVendorCDR_20' ) end [2025-01-09 14:59:20] Production.INFO: ProcessCDR(1,14210347,1,1,2) [2025-01-09 14:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 14:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210347', 'tblTempUsageDetail_20' ) start [2025-01-09 14:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210347', 'tblTempUsageDetail_20' ) end [2025-01-09 14:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 14:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 14:59:24] Production.INFO: ==6039== Releasing lock... [2025-01-09 14:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 14:59:24] Production.INFO: 54.25 MB #Memory Used# [2025-01-09 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:00:05 [end_date_ymd] => 2025-01-09 15:00:05 [RateCDR] => 1 ) [2025-01-09 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:00:05' and `end` < '2025-01-09 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:00:24] Production.INFO: count ==3420 [2025-01-09 15:00:26] Production.ERROR: pbx CDR StartTime 2025-01-09 12:00:05 - End Time 2025-01-09 15:00:05 [2025-01-09 15:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210353', 'tblTempUsageDetail_20' ) start [2025-01-09 15:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210353', 'tblTempUsageDetail_20' ) end [2025-01-09 15:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210353', 'tblTempVendorCDR_20' ) start [2025-01-09 15:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210353', 'tblTempVendorCDR_20' ) end [2025-01-09 15:00:26] Production.INFO: ProcessCDR(1,14210353,1,1,2) [2025-01-09 15:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210353', 'tblTempUsageDetail_20' ) start [2025-01-09 15:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210353', 'tblTempUsageDetail_20' ) end [2025-01-09 15:00:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:00:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:00:31] Production.INFO: ==6111== Releasing lock... [2025-01-09 15:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:00:31] Production.INFO: 54 MB #Memory Used# [2025-01-09 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:01:05 [end_date_ymd] => 2025-01-09 15:01:05 [RateCDR] => 1 ) [2025-01-09 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:01:05' and `end` < '2025-01-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-01-09 15:01:32] Production.INFO: count ==3543 [2025-01-09 15:01:34] Production.ERROR: pbx CDR StartTime 2025-01-09 12:01:05 - End Time 2025-01-09 15:01:05 [2025-01-09 15:01:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210358', 'tblTempUsageDetail_20' ) start [2025-01-09 15:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210358', 'tblTempUsageDetail_20' ) end [2025-01-09 15:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210358', 'tblTempVendorCDR_20' ) start [2025-01-09 15:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210358', 'tblTempVendorCDR_20' ) end [2025-01-09 15:01:34] Production.INFO: ProcessCDR(1,14210358,1,1,2) [2025-01-09 15:01:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:01:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:01:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:01:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:01:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210358', 'tblTempUsageDetail_20' ) start [2025-01-09 15:01:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210358', 'tblTempUsageDetail_20' ) end [2025-01-09 15:01:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:01:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:01:39] Production.INFO: ==6274== Releasing lock... [2025-01-09 15:01:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:01:39] Production.INFO: 54.5 MB #Memory Used# [2025-01-09 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:02:05 [end_date_ymd] => 2025-01-09 15:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:02:05' and `end` < '2025-01-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-01-09 15:02:36] Production.INFO: count ==3580 [2025-01-09 15:02:38] Production.ERROR: pbx CDR StartTime 2025-01-09 12:02:05 - End Time 2025-01-09 15:02:05 [2025-01-09 15:02:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210363', 'tblTempUsageDetail_20' ) start [2025-01-09 15:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210363', 'tblTempUsageDetail_20' ) end [2025-01-09 15:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210363', 'tblTempVendorCDR_20' ) start [2025-01-09 15:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210363', 'tblTempVendorCDR_20' ) end [2025-01-09 15:02:38] Production.INFO: ProcessCDR(1,14210363,1,1,2) [2025-01-09 15:02:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:02:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:02:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:02:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:02:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210363', 'tblTempUsageDetail_20' ) start [2025-01-09 15:02:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210363', 'tblTempUsageDetail_20' ) end [2025-01-09 15:02:43] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:02:43] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:02:43] Production.INFO: ==6345== Releasing lock... [2025-01-09 15:02:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:02:43] Production.INFO: 54.75 MB #Memory Used# [2025-01-09 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:03:05 [end_date_ymd] => 2025-01-09 15:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:03:05' and `end` < '2025-01-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-01-09 15:03:33] Production.INFO: count ==3598 [2025-01-09 15:03:35] Production.ERROR: pbx CDR StartTime 2025-01-09 12:03:05 - End Time 2025-01-09 15:03:05 [2025-01-09 15:03:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210368', 'tblTempUsageDetail_20' ) start [2025-01-09 15:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210368', 'tblTempUsageDetail_20' ) end [2025-01-09 15:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210368', 'tblTempVendorCDR_20' ) start [2025-01-09 15:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210368', 'tblTempVendorCDR_20' ) end [2025-01-09 15:03:35] Production.INFO: ProcessCDR(1,14210368,1,1,2) [2025-01-09 15:03:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:03:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210368', 'tblTempUsageDetail_20' ) start [2025-01-09 15:03:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210368', 'tblTempUsageDetail_20' ) end [2025-01-09 15:03:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:03:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:03:39] Production.INFO: ==6418== Releasing lock... [2025-01-09 15:03:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:03:39] Production.INFO: 56 MB #Memory Used# [2025-01-09 15:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:04:04 [end_date_ymd] => 2025-01-09 15:04:04 [RateCDR] => 1 ) [2025-01-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-01-09 12:04:04' and `end` < '2025-01-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-01-09 15:04:29] Production.INFO: count ==3602 [2025-01-09 15:04:31] Production.ERROR: pbx CDR StartTime 2025-01-09 12:04:04 - End Time 2025-01-09 15:04:04 [2025-01-09 15:04:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210373', 'tblTempUsageDetail_20' ) start [2025-01-09 15:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210373', 'tblTempUsageDetail_20' ) end [2025-01-09 15:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210373', 'tblTempVendorCDR_20' ) start [2025-01-09 15:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210373', 'tblTempVendorCDR_20' ) end [2025-01-09 15:04:31] Production.INFO: ProcessCDR(1,14210373,1,1,2) [2025-01-09 15:04:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:04:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210373', 'tblTempUsageDetail_20' ) start [2025-01-09 15:04:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210373', 'tblTempUsageDetail_20' ) end [2025-01-09 15:04:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:04:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:04:34] Production.INFO: ==6489== Releasing lock... [2025-01-09 15:04:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:04:34] Production.INFO: 55.5 MB #Memory Used# [2025-01-09 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:05:05 [end_date_ymd] => 2025-01-09 15:05:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:05:05' and `end` < '2025-01-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-01-09 15:05:33] Production.INFO: count ==3619 [2025-01-09 15:05:35] Production.ERROR: pbx CDR StartTime 2025-01-09 12:05:05 - End Time 2025-01-09 15:05:05 [2025-01-09 15:05:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210378', 'tblTempUsageDetail_20' ) start [2025-01-09 15:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210378', 'tblTempUsageDetail_20' ) end [2025-01-09 15:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210378', 'tblTempVendorCDR_20' ) start [2025-01-09 15:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210378', 'tblTempVendorCDR_20' ) end [2025-01-09 15:05:35] Production.INFO: ProcessCDR(1,14210378,1,1,2) [2025-01-09 15:05:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:05:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:05:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:05:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210378', 'tblTempUsageDetail_20' ) start [2025-01-09 15:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210378', 'tblTempUsageDetail_20' ) end [2025-01-09 15:05:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:05:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:05:40] Production.INFO: ==6636== Releasing lock... [2025-01-09 15:05:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:05:40] Production.INFO: 55.5 MB #Memory Used# [2025-01-09 15:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:06:04 [end_date_ymd] => 2025-01-09 15:06:04 [RateCDR] => 1 ) [2025-01-09 15:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:06:04' and `end` < '2025-01-09 15:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:06:32] Production.INFO: count ==3604 [2025-01-09 15:06:34] Production.ERROR: pbx CDR StartTime 2025-01-09 12:06:04 - End Time 2025-01-09 15:06:04 [2025-01-09 15:06:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210383', 'tblTempUsageDetail_20' ) start [2025-01-09 15:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210383', 'tblTempUsageDetail_20' ) end [2025-01-09 15:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210383', 'tblTempVendorCDR_20' ) start [2025-01-09 15:06:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210383', 'tblTempVendorCDR_20' ) end [2025-01-09 15:06:34] Production.INFO: ProcessCDR(1,14210383,1,1,2) [2025-01-09 15:06:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:06:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:06:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:06:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210383', 'tblTempUsageDetail_20' ) start [2025-01-09 15:06:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210383', 'tblTempUsageDetail_20' ) end [2025-01-09 15:06:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:06:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:06:39] Production.INFO: ==6705== Releasing lock... [2025-01-09 15:06:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:06:39] Production.INFO: 55.75 MB #Memory Used# [2025-01-09 15:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:07:04 [end_date_ymd] => 2025-01-09 15:07:04 [RateCDR] => 1 ) [2025-01-09 15:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:07:04' and `end` < '2025-01-09 15:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:07:33] Production.INFO: count ==3592 [2025-01-09 15:07:35] Production.ERROR: pbx CDR StartTime 2025-01-09 12:07:04 - End Time 2025-01-09 15:07:04 [2025-01-09 15:07:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:07:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210388', 'tblTempUsageDetail_20' ) start [2025-01-09 15:07:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210388', 'tblTempUsageDetail_20' ) end [2025-01-09 15:07:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210388', 'tblTempVendorCDR_20' ) start [2025-01-09 15:07:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210388', 'tblTempVendorCDR_20' ) end [2025-01-09 15:07:35] Production.INFO: ProcessCDR(1,14210388,1,1,2) [2025-01-09 15:07:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:07:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:07:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:07:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:07:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210388', 'tblTempUsageDetail_20' ) start [2025-01-09 15:07:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210388', 'tblTempUsageDetail_20' ) end [2025-01-09 15:07:40] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:07:40] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:07:40] Production.INFO: ==6776== Releasing lock... [2025-01-09 15:07:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:07:40] Production.INFO: 54.75 MB #Memory Used# [2025-01-09 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:08:05 [end_date_ymd] => 2025-01-09 15:08:05 [RateCDR] => 1 ) [2025-01-09 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:08:05' and `end` < '2025-01-09 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:08:34] Production.INFO: count ==3578 [2025-01-09 15:08:36] Production.ERROR: pbx CDR StartTime 2025-01-09 12:08:05 - End Time 2025-01-09 15:08:05 [2025-01-09 15:08:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210393', 'tblTempUsageDetail_20' ) start [2025-01-09 15:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210393', 'tblTempUsageDetail_20' ) end [2025-01-09 15:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210393', 'tblTempVendorCDR_20' ) start [2025-01-09 15:08:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210393', 'tblTempVendorCDR_20' ) end [2025-01-09 15:08:36] Production.INFO: ProcessCDR(1,14210393,1,1,2) [2025-01-09 15:08:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:08:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:08:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:08:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:08:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210393', 'tblTempUsageDetail_20' ) start [2025-01-09 15:08:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210393', 'tblTempUsageDetail_20' ) end [2025-01-09 15:08:41] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:08:41] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:08:41] Production.INFO: ==6924== Releasing lock... [2025-01-09 15:08:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:08:41] Production.INFO: 54.75 MB #Memory Used# [2025-01-09 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:09:05 [end_date_ymd] => 2025-01-09 15:09:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:09:05' and `end` < '2025-01-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-01-09 15:09:30] Production.INFO: count ==3559 [2025-01-09 15:09:32] Production.ERROR: pbx CDR StartTime 2025-01-09 12:09:05 - End Time 2025-01-09 15:09:05 [2025-01-09 15:09:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210398', 'tblTempUsageDetail_20' ) start [2025-01-09 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210398', 'tblTempUsageDetail_20' ) end [2025-01-09 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210398', 'tblTempVendorCDR_20' ) start [2025-01-09 15:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210398', 'tblTempVendorCDR_20' ) end [2025-01-09 15:09:32] Production.INFO: ProcessCDR(1,14210398,1,1,2) [2025-01-09 15:09:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:09:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:09:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:09:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210398', 'tblTempUsageDetail_20' ) start [2025-01-09 15:09:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210398', 'tblTempUsageDetail_20' ) end [2025-01-09 15:09:37] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:09:37] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:09:37] Production.INFO: ==7040== Releasing lock... [2025-01-09 15:09:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:09:37] Production.INFO: 54.75 MB #Memory Used# [2025-01-09 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:10:06 [end_date_ymd] => 2025-01-09 15:10:06 [RateCDR] => 1 ) [2025-01-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-01-09 12:10:06' and `end` < '2025-01-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-01-09 15:10:42] Production.INFO: count ==3570 [2025-01-09 15:10:44] Production.ERROR: pbx CDR StartTime 2025-01-09 12:10:06 - End Time 2025-01-09 15:10:06 [2025-01-09 15:10:44] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:10:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210404', 'tblTempUsageDetail_20' ) start [2025-01-09 15:10:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210404', 'tblTempUsageDetail_20' ) end [2025-01-09 15:10:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210404', 'tblTempVendorCDR_20' ) start [2025-01-09 15:10:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210404', 'tblTempVendorCDR_20' ) end [2025-01-09 15:10:44] Production.INFO: ProcessCDR(1,14210404,1,1,2) [2025-01-09 15:10:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:10:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:10:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:10:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:10:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210404', 'tblTempUsageDetail_20' ) start [2025-01-09 15:10:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210404', 'tblTempUsageDetail_20' ) end [2025-01-09 15:10:49] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:10:49] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:10:49] Production.INFO: ==7117== Releasing lock... [2025-01-09 15:10:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:10:49] Production.INFO: 55.25 MB #Memory Used# [2025-01-09 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:11:04 [end_date_ymd] => 2025-01-09 15:11:04 [RateCDR] => 1 ) [2025-01-09 15:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:11:04' and `end` < '2025-01-09 15:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:11:35] Production.INFO: count ==3647 [2025-01-09 15:11:37] Production.ERROR: pbx CDR StartTime 2025-01-09 12:11:04 - End Time 2025-01-09 15:11:04 [2025-01-09 15:11:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210409', 'tblTempUsageDetail_20' ) start [2025-01-09 15:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210409', 'tblTempUsageDetail_20' ) end [2025-01-09 15:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210409', 'tblTempVendorCDR_20' ) start [2025-01-09 15:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210409', 'tblTempVendorCDR_20' ) end [2025-01-09 15:11:37] Production.INFO: ProcessCDR(1,14210409,1,1,2) [2025-01-09 15:11:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:11:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:11:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:11:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:11:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210409', 'tblTempUsageDetail_20' ) start [2025-01-09 15:11:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210409', 'tblTempUsageDetail_20' ) end [2025-01-09 15:11:42] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:11:42] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:11:42] Production.INFO: ==7190== Releasing lock... [2025-01-09 15:11:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:11:42] Production.INFO: 56.25 MB #Memory Used# [2025-01-09 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:12:05 [end_date_ymd] => 2025-01-09 15:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:12:05' and `end` < '2025-01-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-01-09 15:12:29] Production.INFO: count ==3693 [2025-01-09 15:12:31] Production.ERROR: pbx CDR StartTime 2025-01-09 12:12:05 - End Time 2025-01-09 15:12:05 [2025-01-09 15:12:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210414', 'tblTempUsageDetail_20' ) start [2025-01-09 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210414', 'tblTempUsageDetail_20' ) end [2025-01-09 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210414', 'tblTempVendorCDR_20' ) start [2025-01-09 15:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210414', 'tblTempVendorCDR_20' ) end [2025-01-09 15:12:31] Production.INFO: ProcessCDR(1,14210414,1,1,2) [2025-01-09 15:12:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:12:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:12:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:12:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210414', 'tblTempUsageDetail_20' ) start [2025-01-09 15:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210414', 'tblTempUsageDetail_20' ) end [2025-01-09 15:12:36] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:12:36] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:12:36] Production.INFO: ==7338== Releasing lock... [2025-01-09 15:12:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:12:36] Production.INFO: 56 MB #Memory Used# [2025-01-09 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:13:04 [end_date_ymd] => 2025-01-09 15:13:04 [RateCDR] => 1 ) [2025-01-09 15:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:13:04' and `end` < '2025-01-09 15:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:13:26] Production.INFO: count ==3700 [2025-01-09 15:13:27] Production.ERROR: pbx CDR StartTime 2025-01-09 12:13:04 - End Time 2025-01-09 15:13:04 [2025-01-09 15:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210419', 'tblTempUsageDetail_20' ) start [2025-01-09 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210419', 'tblTempUsageDetail_20' ) end [2025-01-09 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210419', 'tblTempVendorCDR_20' ) start [2025-01-09 15:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210419', 'tblTempVendorCDR_20' ) end [2025-01-09 15:13:28] Production.INFO: ProcessCDR(1,14210419,1,1,2) [2025-01-09 15:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210419', 'tblTempUsageDetail_20' ) start [2025-01-09 15:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210419', 'tblTempUsageDetail_20' ) end [2025-01-09 15:13:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:13:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:13:32] Production.INFO: ==7409== Releasing lock... [2025-01-09 15:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:13:32] Production.INFO: 55.75 MB #Memory Used# [2025-01-09 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:14:05 [end_date_ymd] => 2025-01-09 15:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:14:05' and `end` < '2025-01-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-01-09 15:14:22] Production.INFO: count ==3677 [2025-01-09 15:14:24] Production.ERROR: pbx CDR StartTime 2025-01-09 12:14:05 - End Time 2025-01-09 15:14:05 [2025-01-09 15:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210424', 'tblTempUsageDetail_20' ) start [2025-01-09 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210424', 'tblTempUsageDetail_20' ) end [2025-01-09 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210424', 'tblTempVendorCDR_20' ) start [2025-01-09 15:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210424', 'tblTempVendorCDR_20' ) end [2025-01-09 15:14:24] Production.INFO: ProcessCDR(1,14210424,1,1,2) [2025-01-09 15:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210424', 'tblTempUsageDetail_20' ) start [2025-01-09 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210424', 'tblTempUsageDetail_20' ) end [2025-01-09 15:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:14:28] Production.INFO: ==7479== Releasing lock... [2025-01-09 15:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:14:28] Production.INFO: 55.5 MB #Memory Used# [2025-01-09 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:15:04 [end_date_ymd] => 2025-01-09 15:15:04 [RateCDR] => 1 ) [2025-01-09 15:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:15:04' and `end` < '2025-01-09 15:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:15:21] Production.INFO: count ==3668 [2025-01-09 15:15:23] Production.ERROR: pbx CDR StartTime 2025-01-09 12:15:04 - End Time 2025-01-09 15:15:04 [2025-01-09 15:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210429', 'tblTempUsageDetail_20' ) start [2025-01-09 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210429', 'tblTempUsageDetail_20' ) end [2025-01-09 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210429', 'tblTempVendorCDR_20' ) start [2025-01-09 15:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210429', 'tblTempVendorCDR_20' ) end [2025-01-09 15:15:23] Production.INFO: ProcessCDR(1,14210429,1,1,2) [2025-01-09 15:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210429', 'tblTempUsageDetail_20' ) start [2025-01-09 15:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210429', 'tblTempUsageDetail_20' ) end [2025-01-09 15:15:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:15:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:15:28] Production.INFO: ==7625== Releasing lock... [2025-01-09 15:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:15:28] Production.INFO: 56 MB #Memory Used# [2025-01-09 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:16:05 [end_date_ymd] => 2025-01-09 15:16:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:16:05' and `end` < '2025-01-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-01-09 15:16:29] Production.INFO: count ==3669 [2025-01-09 15:16:30] Production.ERROR: pbx CDR StartTime 2025-01-09 12:16:05 - End Time 2025-01-09 15:16:05 [2025-01-09 15:16:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210434', 'tblTempUsageDetail_20' ) start [2025-01-09 15:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210434', 'tblTempUsageDetail_20' ) end [2025-01-09 15:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210434', 'tblTempVendorCDR_20' ) start [2025-01-09 15:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210434', 'tblTempVendorCDR_20' ) end [2025-01-09 15:16:31] Production.INFO: ProcessCDR(1,14210434,1,1,2) [2025-01-09 15:16:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:16:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:16:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:16:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210434', 'tblTempUsageDetail_20' ) start [2025-01-09 15:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210434', 'tblTempUsageDetail_20' ) end [2025-01-09 15:16:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:16:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:16:35] Production.INFO: ==7696== Releasing lock... [2025-01-09 15:16:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:16:35] Production.INFO: 55.5 MB #Memory Used# [2025-01-09 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:17:05 [end_date_ymd] => 2025-01-09 15:17:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:17:05' and `end` < '2025-01-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-01-09 15:17:25] Production.INFO: count ==3663 [2025-01-09 15:17:27] Production.ERROR: pbx CDR StartTime 2025-01-09 12:17:05 - End Time 2025-01-09 15:17:05 [2025-01-09 15:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210439', 'tblTempUsageDetail_20' ) start [2025-01-09 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210439', 'tblTempUsageDetail_20' ) end [2025-01-09 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210439', 'tblTempVendorCDR_20' ) start [2025-01-09 15:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210439', 'tblTempVendorCDR_20' ) end [2025-01-09 15:17:28] Production.INFO: ProcessCDR(1,14210439,1,1,2) [2025-01-09 15:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:17:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210439', 'tblTempUsageDetail_20' ) start [2025-01-09 15:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210439', 'tblTempUsageDetail_20' ) end [2025-01-09 15:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:17:33] Production.INFO: ==7768== Releasing lock... [2025-01-09 15:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:17:33] Production.INFO: 55.5 MB #Memory Used# [2025-01-09 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:18:05 [end_date_ymd] => 2025-01-09 15:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:18:05' and `end` < '2025-01-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-01-09 15:18:25] Production.INFO: count ==3657 [2025-01-09 15:18:27] Production.ERROR: pbx CDR StartTime 2025-01-09 12:18:05 - End Time 2025-01-09 15:18:05 [2025-01-09 15:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210444', 'tblTempUsageDetail_20' ) start [2025-01-09 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210444', 'tblTempUsageDetail_20' ) end [2025-01-09 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210444', 'tblTempVendorCDR_20' ) start [2025-01-09 15:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210444', 'tblTempVendorCDR_20' ) end [2025-01-09 15:18:27] Production.INFO: ProcessCDR(1,14210444,1,1,2) [2025-01-09 15:18:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210444', 'tblTempUsageDetail_20' ) start [2025-01-09 15:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210444', 'tblTempUsageDetail_20' ) end [2025-01-09 15:18:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:18:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:18:32] Production.INFO: ==7839== Releasing lock... [2025-01-09 15:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:18:32] Production.INFO: 55.25 MB #Memory Used# [2025-01-09 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:19:04 [end_date_ymd] => 2025-01-09 15:19:04 [RateCDR] => 1 ) [2025-01-09 15:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:19:04' and `end` < '2025-01-09 15:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:19:22] Production.INFO: count ==3666 [2025-01-09 15:19:24] Production.ERROR: pbx CDR StartTime 2025-01-09 12:19:04 - End Time 2025-01-09 15:19:04 [2025-01-09 15:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210448', 'tblTempUsageDetail_20' ) start [2025-01-09 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210448', 'tblTempUsageDetail_20' ) end [2025-01-09 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210448', 'tblTempVendorCDR_20' ) start [2025-01-09 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210448', 'tblTempVendorCDR_20' ) end [2025-01-09 15:19:24] Production.INFO: ProcessCDR(1,14210448,1,1,2) [2025-01-09 15:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210448', 'tblTempUsageDetail_20' ) start [2025-01-09 15:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210448', 'tblTempUsageDetail_20' ) end [2025-01-09 15:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:19:29] Production.INFO: ==7909== Releasing lock... [2025-01-09 15:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:19:29] Production.INFO: 55.5 MB #Memory Used# [2025-01-09 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:20:05 [end_date_ymd] => 2025-01-09 15:20:05 [RateCDR] => 1 ) [2025-01-09 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:20:05' and `end` < '2025-01-09 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:20:22] Production.INFO: count ==3669 [2025-01-09 15:20:24] Production.ERROR: pbx CDR StartTime 2025-01-09 12:20:05 - End Time 2025-01-09 15:20:05 [2025-01-09 15:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210455', 'tblTempUsageDetail_20' ) start [2025-01-09 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210455', 'tblTempUsageDetail_20' ) end [2025-01-09 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210455', 'tblTempVendorCDR_20' ) start [2025-01-09 15:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210455', 'tblTempVendorCDR_20' ) end [2025-01-09 15:20:24] Production.INFO: ProcessCDR(1,14210455,1,1,2) [2025-01-09 15:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210455', 'tblTempUsageDetail_20' ) start [2025-01-09 15:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210455', 'tblTempUsageDetail_20' ) end [2025-01-09 15:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:20:29] Production.INFO: ==7982== Releasing lock... [2025-01-09 15:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:20:29] Production.INFO: 55.5 MB #Memory Used# [2025-01-09 15:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:21:04 [end_date_ymd] => 2025-01-09 15:21:04 [RateCDR] => 1 ) [2025-01-09 15:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:21:04' and `end` < '2025-01-09 15:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:21:20] Production.INFO: count ==3791 [2025-01-09 15:21:22] Production.ERROR: pbx CDR StartTime 2025-01-09 12:21:04 - End Time 2025-01-09 15:21:04 [2025-01-09 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210460', 'tblTempUsageDetail_20' ) start [2025-01-09 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210460', 'tblTempUsageDetail_20' ) end [2025-01-09 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210460', 'tblTempVendorCDR_20' ) start [2025-01-09 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210460', 'tblTempVendorCDR_20' ) end [2025-01-09 15:21:22] Production.INFO: ProcessCDR(1,14210460,1,1,2) [2025-01-09 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210460', 'tblTempUsageDetail_20' ) start [2025-01-09 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210460', 'tblTempUsageDetail_20' ) end [2025-01-09 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:21:26] Production.INFO: ==8054== Releasing lock... [2025-01-09 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:21:26] Production.INFO: 56.25 MB #Memory Used# [2025-01-09 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:22:05 [end_date_ymd] => 2025-01-09 15:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:22:05' and `end` < '2025-01-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-01-09 15:22:20] Production.INFO: count ==3791 [2025-01-09 15:22:22] Production.ERROR: pbx CDR StartTime 2025-01-09 12:22:05 - End Time 2025-01-09 15:22:05 [2025-01-09 15:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210465', 'tblTempUsageDetail_20' ) start [2025-01-09 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210465', 'tblTempUsageDetail_20' ) end [2025-01-09 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210465', 'tblTempVendorCDR_20' ) start [2025-01-09 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210465', 'tblTempVendorCDR_20' ) end [2025-01-09 15:22:22] Production.INFO: ProcessCDR(1,14210465,1,1,2) [2025-01-09 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210465', 'tblTempUsageDetail_20' ) start [2025-01-09 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210465', 'tblTempUsageDetail_20' ) end [2025-01-09 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:22:27] Production.INFO: ==8128== Releasing lock... [2025-01-09 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:22:27] Production.INFO: 56.25 MB #Memory Used# [2025-01-09 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:23:05 [end_date_ymd] => 2025-01-09 15:23:05 [RateCDR] => 1 ) [2025-01-09 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:23:05' and `end` < '2025-01-09 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:23:30] Production.INFO: count ==3816 [2025-01-09 15:23:32] Production.ERROR: pbx CDR StartTime 2025-01-09 12:23:05 - End Time 2025-01-09 15:23:05 [2025-01-09 15:23:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210470', 'tblTempUsageDetail_20' ) start [2025-01-09 15:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210470', 'tblTempUsageDetail_20' ) end [2025-01-09 15:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210470', 'tblTempVendorCDR_20' ) start [2025-01-09 15:23:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210470', 'tblTempVendorCDR_20' ) end [2025-01-09 15:23:32] Production.INFO: ProcessCDR(1,14210470,1,1,2) [2025-01-09 15:23:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:23:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:23:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:23:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210470', 'tblTempUsageDetail_20' ) start [2025-01-09 15:23:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210470', 'tblTempUsageDetail_20' ) end [2025-01-09 15:23:37] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:23:37] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:23:37] Production.INFO: ==8199== Releasing lock... [2025-01-09 15:23:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:23:37] Production.INFO: 56.5 MB #Memory Used# [2025-01-09 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:24:05 [end_date_ymd] => 2025-01-09 15:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:24:05' and `end` < '2025-01-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-01-09 15:24:36] Production.INFO: count ==3830 [2025-01-09 15:24:38] Production.ERROR: pbx CDR StartTime 2025-01-09 12:24:05 - End Time 2025-01-09 15:24:05 [2025-01-09 15:24:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:24:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210475', 'tblTempUsageDetail_20' ) start [2025-01-09 15:24:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210475', 'tblTempUsageDetail_20' ) end [2025-01-09 15:24:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210475', 'tblTempVendorCDR_20' ) start [2025-01-09 15:24:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210475', 'tblTempVendorCDR_20' ) end [2025-01-09 15:24:38] Production.INFO: ProcessCDR(1,14210475,1,1,2) [2025-01-09 15:24:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:24:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:24:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:24:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:24:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210475', 'tblTempUsageDetail_20' ) start [2025-01-09 15:24:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210475', 'tblTempUsageDetail_20' ) end [2025-01-09 15:24:43] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:24:43] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:24:43] Production.INFO: ==8296== Releasing lock... [2025-01-09 15:24:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:24:43] Production.INFO: 56.75 MB #Memory Used# [2025-01-09 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:25:05 [end_date_ymd] => 2025-01-09 15:25:05 [RateCDR] => 1 ) [2025-01-09 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:25:05' and `end` < '2025-01-09 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:25:36] Production.INFO: count ==3820 [2025-01-09 15:25:38] Production.ERROR: pbx CDR StartTime 2025-01-09 12:25:05 - End Time 2025-01-09 15:25:05 [2025-01-09 15:25:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:25:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210480', 'tblTempUsageDetail_20' ) start [2025-01-09 15:25:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210480', 'tblTempUsageDetail_20' ) end [2025-01-09 15:25:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210480', 'tblTempVendorCDR_20' ) start [2025-01-09 15:25:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210480', 'tblTempVendorCDR_20' ) end [2025-01-09 15:25:38] Production.INFO: ProcessCDR(1,14210480,1,1,2) [2025-01-09 15:25:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:25:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:25:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:25:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:25:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210480', 'tblTempUsageDetail_20' ) start [2025-01-09 15:25:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210480', 'tblTempUsageDetail_20' ) end [2025-01-09 15:25:42] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:25:42] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:25:43] Production.INFO: ==8384== Releasing lock... [2025-01-09 15:25:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:25:43] Production.INFO: 56.75 MB #Memory Used# [2025-01-09 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:26:05 [end_date_ymd] => 2025-01-09 15:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:26:05' and `end` < '2025-01-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-01-09 15:26:40] Production.INFO: count ==3839 [2025-01-09 15:26:42] Production.ERROR: pbx CDR StartTime 2025-01-09 12:26:05 - End Time 2025-01-09 15:26:05 [2025-01-09 15:26:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:26:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210485', 'tblTempUsageDetail_20' ) start [2025-01-09 15:26:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210485', 'tblTempUsageDetail_20' ) end [2025-01-09 15:26:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210485', 'tblTempVendorCDR_20' ) start [2025-01-09 15:26:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210485', 'tblTempVendorCDR_20' ) end [2025-01-09 15:26:42] Production.INFO: ProcessCDR(1,14210485,1,1,2) [2025-01-09 15:26:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:26:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:26:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:26:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:26:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210485', 'tblTempUsageDetail_20' ) start [2025-01-09 15:26:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210485', 'tblTempUsageDetail_20' ) end [2025-01-09 15:26:47] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:26:47] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:26:47] Production.INFO: ==8453== Releasing lock... [2025-01-09 15:26:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:26:47] Production.INFO: 57.25 MB #Memory Used# [2025-01-09 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:27:05 [end_date_ymd] => 2025-01-09 15:27:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:27:05' and `end` < '2025-01-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-01-09 15:27:33] Production.INFO: count ==3832 [2025-01-09 15:27:34] Production.ERROR: pbx CDR StartTime 2025-01-09 12:27:05 - End Time 2025-01-09 15:27:05 [2025-01-09 15:27:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:27:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210490', 'tblTempUsageDetail_20' ) start [2025-01-09 15:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210490', 'tblTempUsageDetail_20' ) end [2025-01-09 15:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210490', 'tblTempVendorCDR_20' ) start [2025-01-09 15:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210490', 'tblTempVendorCDR_20' ) end [2025-01-09 15:27:35] Production.INFO: ProcessCDR(1,14210490,1,1,2) [2025-01-09 15:27:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:27:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:27:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:27:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210490', 'tblTempUsageDetail_20' ) start [2025-01-09 15:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210490', 'tblTempUsageDetail_20' ) end [2025-01-09 15:27:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:27:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:27:39] Production.INFO: ==8524== Releasing lock... [2025-01-09 15:27:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:27:39] Production.INFO: 56.75 MB #Memory Used# [2025-01-09 15:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:28:04 [end_date_ymd] => 2025-01-09 15:28:04 [RateCDR] => 1 ) [2025-01-09 15:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:28:04' and `end` < '2025-01-09 15:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:28:36] Production.INFO: count ==3864 [2025-01-09 15:28:38] Production.ERROR: pbx CDR StartTime 2025-01-09 12:28:04 - End Time 2025-01-09 15:28:04 [2025-01-09 15:28:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210495', 'tblTempUsageDetail_20' ) start [2025-01-09 15:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210495', 'tblTempUsageDetail_20' ) end [2025-01-09 15:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210495', 'tblTempVendorCDR_20' ) start [2025-01-09 15:28:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210495', 'tblTempVendorCDR_20' ) end [2025-01-09 15:28:38] Production.INFO: ProcessCDR(1,14210495,1,1,2) [2025-01-09 15:28:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:28:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:28:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:28:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:28:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210495', 'tblTempUsageDetail_20' ) start [2025-01-09 15:28:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210495', 'tblTempUsageDetail_20' ) end [2025-01-09 15:28:43] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:28:43] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:28:43] Production.INFO: ==8595== Releasing lock... [2025-01-09 15:28:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:28:43] Production.INFO: 57.75 MB #Memory Used# [2025-01-09 15:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:29:04 [end_date_ymd] => 2025-01-09 15:29:04 [RateCDR] => 1 ) [2025-01-09 15:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:29:04' and `end` < '2025-01-09 15:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:29:32] Production.INFO: count ==3859 [2025-01-09 15:29:34] Production.ERROR: pbx CDR StartTime 2025-01-09 12:29:04 - End Time 2025-01-09 15:29:04 [2025-01-09 15:29:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210500', 'tblTempUsageDetail_20' ) start [2025-01-09 15:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210500', 'tblTempUsageDetail_20' ) end [2025-01-09 15:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210500', 'tblTempVendorCDR_20' ) start [2025-01-09 15:29:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210500', 'tblTempVendorCDR_20' ) end [2025-01-09 15:29:34] Production.INFO: ProcessCDR(1,14210500,1,1,2) [2025-01-09 15:29:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:29:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:29:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:29:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:29:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210500', 'tblTempUsageDetail_20' ) start [2025-01-09 15:29:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210500', 'tblTempUsageDetail_20' ) end [2025-01-09 15:29:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:29:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:29:39] Production.INFO: ==8667== Releasing lock... [2025-01-09 15:29:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:29:39] Production.INFO: 57 MB #Memory Used# [2025-01-09 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:30:06 [end_date_ymd] => 2025-01-09 15:30:06 [RateCDR] => 1 ) [2025-01-09 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:30:06' and `end` < '2025-01-09 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:30:31] Production.INFO: count ==3874 [2025-01-09 15:30:33] Production.ERROR: pbx CDR StartTime 2025-01-09 12:30:06 - End Time 2025-01-09 15:30:06 [2025-01-09 15:30:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210506', 'tblTempUsageDetail_20' ) start [2025-01-09 15:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210506', 'tblTempUsageDetail_20' ) end [2025-01-09 15:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210506', 'tblTempVendorCDR_20' ) start [2025-01-09 15:30:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210506', 'tblTempVendorCDR_20' ) end [2025-01-09 15:30:33] Production.INFO: ProcessCDR(1,14210506,1,1,2) [2025-01-09 15:30:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:30:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:30:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:30:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210506', 'tblTempUsageDetail_20' ) start [2025-01-09 15:30:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210506', 'tblTempUsageDetail_20' ) end [2025-01-09 15:30:38] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:30:38] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:30:38] Production.INFO: ==8740== Releasing lock... [2025-01-09 15:30:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:30:38] Production.INFO: 57.25 MB #Memory Used# [2025-01-09 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:31:05 [end_date_ymd] => 2025-01-09 15:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:31:05' and `end` < '2025-01-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-01-09 15:31:24] Production.INFO: count ==3989 [2025-01-09 15:31:26] Production.ERROR: pbx CDR StartTime 2025-01-09 12:31:05 - End Time 2025-01-09 15:31:05 [2025-01-09 15:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210511', 'tblTempUsageDetail_20' ) start [2025-01-09 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210511', 'tblTempUsageDetail_20' ) end [2025-01-09 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210511', 'tblTempVendorCDR_20' ) start [2025-01-09 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210511', 'tblTempVendorCDR_20' ) end [2025-01-09 15:31:26] Production.INFO: ProcessCDR(1,14210511,1,1,2) [2025-01-09 15:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210511', 'tblTempUsageDetail_20' ) start [2025-01-09 15:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210511', 'tblTempUsageDetail_20' ) end [2025-01-09 15:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:31:30] Production.INFO: ==8815== Releasing lock... [2025-01-09 15:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:31:30] Production.INFO: 58 MB #Memory Used# [2025-01-09 15:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:32:04 [end_date_ymd] => 2025-01-09 15:32:04 [RateCDR] => 1 ) [2025-01-09 15:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:32:04' and `end` < '2025-01-09 15:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:32:26] Production.INFO: count ==3992 [2025-01-09 15:32:28] Production.ERROR: pbx CDR StartTime 2025-01-09 12:32:04 - End Time 2025-01-09 15:32:04 [2025-01-09 15:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210516', 'tblTempUsageDetail_20' ) start [2025-01-09 15:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210516', 'tblTempUsageDetail_20' ) end [2025-01-09 15:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210516', 'tblTempVendorCDR_20' ) start [2025-01-09 15:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210516', 'tblTempVendorCDR_20' ) end [2025-01-09 15:32:28] Production.INFO: ProcessCDR(1,14210516,1,1,2) [2025-01-09 15:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210516', 'tblTempUsageDetail_20' ) start [2025-01-09 15:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210516', 'tblTempUsageDetail_20' ) end [2025-01-09 15:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:32:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:32:32] Production.INFO: ==8886== Releasing lock... [2025-01-09 15:32:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:32:32] Production.INFO: 57.75 MB #Memory Used# [2025-01-09 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:33:05 [end_date_ymd] => 2025-01-09 15:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:33:05' and `end` < '2025-01-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-01-09 15:33:26] Production.INFO: count ==3991 [2025-01-09 15:33:28] Production.ERROR: pbx CDR StartTime 2025-01-09 12:33:05 - End Time 2025-01-09 15:33:05 [2025-01-09 15:33:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210521', 'tblTempUsageDetail_20' ) start [2025-01-09 15:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210521', 'tblTempUsageDetail_20' ) end [2025-01-09 15:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210521', 'tblTempVendorCDR_20' ) start [2025-01-09 15:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210521', 'tblTempVendorCDR_20' ) end [2025-01-09 15:33:28] Production.INFO: ProcessCDR(1,14210521,1,1,2) [2025-01-09 15:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:33:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:33:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:33:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210521', 'tblTempUsageDetail_20' ) start [2025-01-09 15:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210521', 'tblTempUsageDetail_20' ) end [2025-01-09 15:33:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:33:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:33:33] Production.INFO: ==8957== Releasing lock... [2025-01-09 15:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:33:33] Production.INFO: 57.75 MB #Memory Used# [2025-01-09 15:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:34:04 [end_date_ymd] => 2025-01-09 15:34:04 [RateCDR] => 1 ) [2025-01-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-01-09 12:34:04' and `end` < '2025-01-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-01-09 15:34:28] Production.INFO: count ==4011 [2025-01-09 15:34:30] Production.ERROR: pbx CDR StartTime 2025-01-09 12:34:04 - End Time 2025-01-09 15:34:04 [2025-01-09 15:34:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210526', 'tblTempUsageDetail_20' ) start [2025-01-09 15:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210526', 'tblTempUsageDetail_20' ) end [2025-01-09 15:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210526', 'tblTempVendorCDR_20' ) start [2025-01-09 15:34:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210526', 'tblTempVendorCDR_20' ) end [2025-01-09 15:34:30] Production.INFO: ProcessCDR(1,14210526,1,1,2) [2025-01-09 15:34:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:34:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:34:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:34:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210526', 'tblTempUsageDetail_20' ) start [2025-01-09 15:34:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210526', 'tblTempUsageDetail_20' ) end [2025-01-09 15:34:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:34:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:34:35] Production.INFO: ==9026== Releasing lock... [2025-01-09 15:34:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:34:35] Production.INFO: 58 MB #Memory Used# [2025-01-09 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:35:05 [end_date_ymd] => 2025-01-09 15:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:35:05' and `end` < '2025-01-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-01-09 15:35:24] Production.INFO: count ==4012 [2025-01-09 15:35:26] Production.ERROR: pbx CDR StartTime 2025-01-09 12:35:05 - End Time 2025-01-09 15:35:05 [2025-01-09 15:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210531', 'tblTempUsageDetail_20' ) start [2025-01-09 15:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210531', 'tblTempUsageDetail_20' ) end [2025-01-09 15:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210531', 'tblTempVendorCDR_20' ) start [2025-01-09 15:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210531', 'tblTempVendorCDR_20' ) end [2025-01-09 15:35:26] Production.INFO: ProcessCDR(1,14210531,1,1,2) [2025-01-09 15:35:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:35:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:35:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:35:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210531', 'tblTempUsageDetail_20' ) start [2025-01-09 15:35:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210531', 'tblTempUsageDetail_20' ) end [2025-01-09 15:35:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:35:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:35:30] Production.INFO: ==9100== Releasing lock... [2025-01-09 15:35:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:35:30] Production.INFO: 58 MB #Memory Used# [2025-01-09 15:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:36:04 [end_date_ymd] => 2025-01-09 15:36:04 [RateCDR] => 1 ) [2025-01-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-01-09 12:36:04' and `end` < '2025-01-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-01-09 15:36:18] Production.INFO: count ==4015 [2025-01-09 15:36:20] Production.ERROR: pbx CDR StartTime 2025-01-09 12:36:04 - End Time 2025-01-09 15:36:04 [2025-01-09 15:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210536', 'tblTempUsageDetail_20' ) start [2025-01-09 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210536', 'tblTempUsageDetail_20' ) end [2025-01-09 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210536', 'tblTempVendorCDR_20' ) start [2025-01-09 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210536', 'tblTempVendorCDR_20' ) end [2025-01-09 15:36:20] Production.INFO: ProcessCDR(1,14210536,1,1,2) [2025-01-09 15:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210536', 'tblTempUsageDetail_20' ) start [2025-01-09 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210536', 'tblTempUsageDetail_20' ) end [2025-01-09 15:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:36:23] Production.INFO: ==9173== Releasing lock... [2025-01-09 15:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:36:23] Production.INFO: 58 MB #Memory Used# [2025-01-09 15:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:37:04 [end_date_ymd] => 2025-01-09 15:37:04 [RateCDR] => 1 ) [2025-01-09 15:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:37:04' and `end` < '2025-01-09 15:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:37:27] Production.INFO: count ==4020 [2025-01-09 15:37:29] Production.ERROR: pbx CDR StartTime 2025-01-09 12:37:04 - End Time 2025-01-09 15:37:04 [2025-01-09 15:37:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:37:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210541', 'tblTempUsageDetail_20' ) start [2025-01-09 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210541', 'tblTempUsageDetail_20' ) end [2025-01-09 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210541', 'tblTempVendorCDR_20' ) start [2025-01-09 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210541', 'tblTempVendorCDR_20' ) end [2025-01-09 15:37:30] Production.INFO: ProcessCDR(1,14210541,1,1,2) [2025-01-09 15:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:37:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210541', 'tblTempUsageDetail_20' ) start [2025-01-09 15:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210541', 'tblTempUsageDetail_20' ) end [2025-01-09 15:37:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:37:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:37:34] Production.INFO: ==9244== Releasing lock... [2025-01-09 15:37:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:37:34] Production.INFO: 58 MB #Memory Used# [2025-01-09 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:38:05 [end_date_ymd] => 2025-01-09 15:38:05 [RateCDR] => 1 ) [2025-01-09 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:38:05' and `end` < '2025-01-09 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:38:25] Production.INFO: count ==3994 [2025-01-09 15:38:27] Production.ERROR: pbx CDR StartTime 2025-01-09 12:38:05 - End Time 2025-01-09 15:38:05 [2025-01-09 15:38:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210546', 'tblTempUsageDetail_20' ) start [2025-01-09 15:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210546', 'tblTempUsageDetail_20' ) end [2025-01-09 15:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210546', 'tblTempVendorCDR_20' ) start [2025-01-09 15:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210546', 'tblTempVendorCDR_20' ) end [2025-01-09 15:38:27] Production.INFO: ProcessCDR(1,14210546,1,1,2) [2025-01-09 15:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210546', 'tblTempUsageDetail_20' ) start [2025-01-09 15:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210546', 'tblTempUsageDetail_20' ) end [2025-01-09 15:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:38:32] Production.INFO: ==9317== Releasing lock... [2025-01-09 15:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:38:32] Production.INFO: 58 MB #Memory Used# [2025-01-09 15:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:39:04 [end_date_ymd] => 2025-01-09 15:39:04 [RateCDR] => 1 ) [2025-01-09 15:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:39:04' and `end` < '2025-01-09 15:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:39:18] Production.INFO: count ==3991 [2025-01-09 15:39:20] Production.ERROR: pbx CDR StartTime 2025-01-09 12:39:04 - End Time 2025-01-09 15:39:04 [2025-01-09 15:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210551', 'tblTempUsageDetail_20' ) start [2025-01-09 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210551', 'tblTempUsageDetail_20' ) end [2025-01-09 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210551', 'tblTempVendorCDR_20' ) start [2025-01-09 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210551', 'tblTempVendorCDR_20' ) end [2025-01-09 15:39:20] Production.INFO: ProcessCDR(1,14210551,1,1,2) [2025-01-09 15:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210551', 'tblTempUsageDetail_20' ) start [2025-01-09 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210551', 'tblTempUsageDetail_20' ) end [2025-01-09 15:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:39:25] Production.INFO: ==9387== Releasing lock... [2025-01-09 15:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:39:25] Production.INFO: 58 MB #Memory Used# [2025-01-09 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:40:06 [end_date_ymd] => 2025-01-09 15:40:06 [RateCDR] => 1 ) [2025-01-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-01-09 12:40:06' and `end` < '2025-01-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-01-09 15:40:21] Production.INFO: count ==3994 [2025-01-09 15:40:23] Production.ERROR: pbx CDR StartTime 2025-01-09 12:40:06 - End Time 2025-01-09 15:40:06 [2025-01-09 15:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210557', 'tblTempUsageDetail_20' ) start [2025-01-09 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210557', 'tblTempUsageDetail_20' ) end [2025-01-09 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210557', 'tblTempVendorCDR_20' ) start [2025-01-09 15:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210557', 'tblTempVendorCDR_20' ) end [2025-01-09 15:40:23] Production.INFO: ProcessCDR(1,14210557,1,1,2) [2025-01-09 15:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210557', 'tblTempUsageDetail_20' ) start [2025-01-09 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210557', 'tblTempUsageDetail_20' ) end [2025-01-09 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:40:28] Production.INFO: ==9500== Releasing lock... [2025-01-09 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:40:28] Production.INFO: 58 MB #Memory Used# [2025-01-09 15:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:41:04 [end_date_ymd] => 2025-01-09 15:41:04 [RateCDR] => 1 ) [2025-01-09 15:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:41:04' and `end` < '2025-01-09 15:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:41:20] Production.INFO: count ==4073 [2025-01-09 15:41:22] Production.ERROR: pbx CDR StartTime 2025-01-09 12:41:04 - End Time 2025-01-09 15:41:04 [2025-01-09 15:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210562', 'tblTempUsageDetail_20' ) start [2025-01-09 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210562', 'tblTempUsageDetail_20' ) end [2025-01-09 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210562', 'tblTempVendorCDR_20' ) start [2025-01-09 15:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210562', 'tblTempVendorCDR_20' ) end [2025-01-09 15:41:22] Production.INFO: ProcessCDR(1,14210562,1,1,2) [2025-01-09 15:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210562', 'tblTempUsageDetail_20' ) start [2025-01-09 15:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210562', 'tblTempUsageDetail_20' ) end [2025-01-09 15:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:41:27] Production.INFO: ==9573== Releasing lock... [2025-01-09 15:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:41:27] Production.INFO: 58.5 MB #Memory Used# [2025-01-09 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:42:05 [end_date_ymd] => 2025-01-09 15:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:42:05' and `end` < '2025-01-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-01-09 15:42:22] Production.INFO: count ==4070 [2025-01-09 15:42:24] Production.ERROR: pbx CDR StartTime 2025-01-09 12:42:05 - End Time 2025-01-09 15:42:05 [2025-01-09 15:42:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210567', 'tblTempUsageDetail_20' ) start [2025-01-09 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210567', 'tblTempUsageDetail_20' ) end [2025-01-09 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210567', 'tblTempVendorCDR_20' ) start [2025-01-09 15:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210567', 'tblTempVendorCDR_20' ) end [2025-01-09 15:42:24] Production.INFO: ProcessCDR(1,14210567,1,1,2) [2025-01-09 15:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210567', 'tblTempUsageDetail_20' ) start [2025-01-09 15:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210567', 'tblTempUsageDetail_20' ) end [2025-01-09 15:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:42:29] Production.INFO: ==9643== Releasing lock... [2025-01-09 15:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:42:29] Production.INFO: 58.5 MB #Memory Used# [2025-01-09 15:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:43:04 [end_date_ymd] => 2025-01-09 15:43:04 [RateCDR] => 1 ) [2025-01-09 15:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:43:04' and `end` < '2025-01-09 15:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:43:23] Production.INFO: count ==4078 [2025-01-09 15:43:24] Production.ERROR: pbx CDR StartTime 2025-01-09 12:43:04 - End Time 2025-01-09 15:43:04 [2025-01-09 15:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210572', 'tblTempUsageDetail_20' ) start [2025-01-09 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210572', 'tblTempUsageDetail_20' ) end [2025-01-09 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210572', 'tblTempVendorCDR_20' ) start [2025-01-09 15:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210572', 'tblTempVendorCDR_20' ) end [2025-01-09 15:43:25] Production.INFO: ProcessCDR(1,14210572,1,1,2) [2025-01-09 15:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210572', 'tblTempUsageDetail_20' ) start [2025-01-09 15:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210572', 'tblTempUsageDetail_20' ) end [2025-01-09 15:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:43:29] Production.INFO: ==9714== Releasing lock... [2025-01-09 15:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:43:29] Production.INFO: 58.5 MB #Memory Used# [2025-01-09 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:44:05 [end_date_ymd] => 2025-01-09 15:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:44:05' and `end` < '2025-01-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-01-09 15:44:24] Production.INFO: count ==4093 [2025-01-09 15:44:26] Production.ERROR: pbx CDR StartTime 2025-01-09 12:44:05 - End Time 2025-01-09 15:44:05 [2025-01-09 15:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210577', 'tblTempUsageDetail_20' ) start [2025-01-09 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210577', 'tblTempUsageDetail_20' ) end [2025-01-09 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210577', 'tblTempVendorCDR_20' ) start [2025-01-09 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210577', 'tblTempVendorCDR_20' ) end [2025-01-09 15:44:26] Production.INFO: ProcessCDR(1,14210577,1,1,2) [2025-01-09 15:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210577', 'tblTempUsageDetail_20' ) start [2025-01-09 15:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210577', 'tblTempUsageDetail_20' ) end [2025-01-09 15:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:44:31] Production.INFO: ==9786== Releasing lock... [2025-01-09 15:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:44:31] Production.INFO: 58.5 MB #Memory Used# [2025-01-09 15:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:45:04 [end_date_ymd] => 2025-01-09 15:45:04 [RateCDR] => 1 ) [2025-01-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-01-09 12:45:04' and `end` < '2025-01-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-01-09 15:45:24] Production.INFO: count ==4082 [2025-01-09 15:45:25] Production.ERROR: pbx CDR StartTime 2025-01-09 12:45:04 - End Time 2025-01-09 15:45:04 [2025-01-09 15:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210582', 'tblTempUsageDetail_20' ) start [2025-01-09 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210582', 'tblTempUsageDetail_20' ) end [2025-01-09 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210582', 'tblTempVendorCDR_20' ) start [2025-01-09 15:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210582', 'tblTempVendorCDR_20' ) end [2025-01-09 15:45:26] Production.INFO: ProcessCDR(1,14210582,1,1,2) [2025-01-09 15:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:45:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:45:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210582', 'tblTempUsageDetail_20' ) start [2025-01-09 15:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210582', 'tblTempUsageDetail_20' ) end [2025-01-09 15:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:45:30] Production.INFO: ==9858== Releasing lock... [2025-01-09 15:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:45:30] Production.INFO: 58.5 MB #Memory Used# [2025-01-09 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:46:05 [end_date_ymd] => 2025-01-09 15:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:46:05' and `end` < '2025-01-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-01-09 15:46:19] Production.INFO: count ==4086 [2025-01-09 15:46:21] Production.ERROR: pbx CDR StartTime 2025-01-09 12:46:05 - End Time 2025-01-09 15:46:05 [2025-01-09 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210587', 'tblTempUsageDetail_20' ) start [2025-01-09 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210587', 'tblTempUsageDetail_20' ) end [2025-01-09 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210587', 'tblTempVendorCDR_20' ) start [2025-01-09 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210587', 'tblTempVendorCDR_20' ) end [2025-01-09 15:46:21] Production.INFO: ProcessCDR(1,14210587,1,1,2) [2025-01-09 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210587', 'tblTempUsageDetail_20' ) start [2025-01-09 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210587', 'tblTempUsageDetail_20' ) end [2025-01-09 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:46:26] Production.INFO: ==9929== Releasing lock... [2025-01-09 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:46:26] Production.INFO: 58.5 MB #Memory Used# [2025-01-09 15:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:47:04 [end_date_ymd] => 2025-01-09 15:47:04 [RateCDR] => 1 ) [2025-01-09 15:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:47:04' and `end` < '2025-01-09 15:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:47:19] Production.INFO: count ==4094 [2025-01-09 15:47:21] Production.ERROR: pbx CDR StartTime 2025-01-09 12:47:04 - End Time 2025-01-09 15:47:04 [2025-01-09 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210592', 'tblTempUsageDetail_20' ) start [2025-01-09 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210592', 'tblTempUsageDetail_20' ) end [2025-01-09 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210592', 'tblTempVendorCDR_20' ) start [2025-01-09 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210592', 'tblTempVendorCDR_20' ) end [2025-01-09 15:47:21] Production.INFO: ProcessCDR(1,14210592,1,1,2) [2025-01-09 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210592', 'tblTempUsageDetail_20' ) start [2025-01-09 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210592', 'tblTempUsageDetail_20' ) end [2025-01-09 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:47:26] Production.INFO: ==9999== Releasing lock... [2025-01-09 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:47:26] Production.INFO: 58.5 MB #Memory Used# [2025-01-09 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:48:05 [end_date_ymd] => 2025-01-09 15:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:48:05' and `end` < '2025-01-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-01-09 15:48:19] Production.INFO: count ==4103 [2025-01-09 15:48:20] Production.ERROR: pbx CDR StartTime 2025-01-09 12:48:05 - End Time 2025-01-09 15:48:05 [2025-01-09 15:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210597', 'tblTempUsageDetail_20' ) start [2025-01-09 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210597', 'tblTempUsageDetail_20' ) end [2025-01-09 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210597', 'tblTempVendorCDR_20' ) start [2025-01-09 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210597', 'tblTempVendorCDR_20' ) end [2025-01-09 15:48:21] Production.INFO: ProcessCDR(1,14210597,1,1,2) [2025-01-09 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210597', 'tblTempUsageDetail_20' ) start [2025-01-09 15:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210597', 'tblTempUsageDetail_20' ) end [2025-01-09 15:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:48:25] Production.INFO: ==10070== Releasing lock... [2025-01-09 15:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:48:25] Production.INFO: 58.75 MB #Memory Used# [2025-01-09 15:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:49:04 [end_date_ymd] => 2025-01-09 15:49:04 [RateCDR] => 1 ) [2025-01-09 15:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:49:04' and `end` < '2025-01-09 15:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:49:30] Production.INFO: count ==4103 [2025-01-09 15:49:32] Production.ERROR: pbx CDR StartTime 2025-01-09 12:49:04 - End Time 2025-01-09 15:49:04 [2025-01-09 15:49:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210602', 'tblTempUsageDetail_20' ) start [2025-01-09 15:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210602', 'tblTempUsageDetail_20' ) end [2025-01-09 15:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210602', 'tblTempVendorCDR_20' ) start [2025-01-09 15:49:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210602', 'tblTempVendorCDR_20' ) end [2025-01-09 15:49:32] Production.INFO: ProcessCDR(1,14210602,1,1,2) [2025-01-09 15:49:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:49:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:49:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:49:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:49:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210602', 'tblTempUsageDetail_20' ) start [2025-01-09 15:49:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210602', 'tblTempUsageDetail_20' ) end [2025-01-09 15:49:37] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:49:37] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:49:37] Production.INFO: ==10144== Releasing lock... [2025-01-09 15:49:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:49:37] Production.INFO: 58.75 MB #Memory Used# [2025-01-09 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:50:05 [end_date_ymd] => 2025-01-09 15:50:05 [RateCDR] => 1 ) [2025-01-09 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:50:05' and `end` < '2025-01-09 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:50:25] Production.INFO: count ==4115 [2025-01-09 15:50:27] Production.ERROR: pbx CDR StartTime 2025-01-09 12:50:05 - End Time 2025-01-09 15:50:05 [2025-01-09 15:50:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:50:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210608', 'tblTempUsageDetail_20' ) start [2025-01-09 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210608', 'tblTempUsageDetail_20' ) end [2025-01-09 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210608', 'tblTempVendorCDR_20' ) start [2025-01-09 15:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210608', 'tblTempVendorCDR_20' ) end [2025-01-09 15:50:28] Production.INFO: ProcessCDR(1,14210608,1,1,2) [2025-01-09 15:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210608', 'tblTempUsageDetail_20' ) start [2025-01-09 15:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210608', 'tblTempUsageDetail_20' ) end [2025-01-09 15:50:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:50:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:50:32] Production.INFO: ==10220== Releasing lock... [2025-01-09 15:50:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:50:32] Production.INFO: 58.75 MB #Memory Used# [2025-01-09 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:51:05 [end_date_ymd] => 2025-01-09 15:51:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:51:05' and `end` < '2025-01-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-01-09 15:51:24] Production.INFO: count ==4241 [2025-01-09 15:51:25] Production.ERROR: pbx CDR StartTime 2025-01-09 12:51:05 - End Time 2025-01-09 15:51:05 [2025-01-09 15:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210613', 'tblTempUsageDetail_20' ) start [2025-01-09 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210613', 'tblTempUsageDetail_20' ) end [2025-01-09 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210613', 'tblTempVendorCDR_20' ) start [2025-01-09 15:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210613', 'tblTempVendorCDR_20' ) end [2025-01-09 15:51:25] Production.INFO: ProcessCDR(1,14210613,1,1,2) [2025-01-09 15:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210613', 'tblTempUsageDetail_20' ) start [2025-01-09 15:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210613', 'tblTempUsageDetail_20' ) end [2025-01-09 15:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:51:30] Production.INFO: ==10296== Releasing lock... [2025-01-09 15:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:51:30] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:52:05 [end_date_ymd] => 2025-01-09 15:52:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:52:05' and `end` < '2025-01-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-01-09 15:52:28] Production.INFO: count ==4240 [2025-01-09 15:52:30] Production.ERROR: pbx CDR StartTime 2025-01-09 12:52:05 - End Time 2025-01-09 15:52:05 [2025-01-09 15:52:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210618', 'tblTempUsageDetail_20' ) start [2025-01-09 15:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210618', 'tblTempUsageDetail_20' ) end [2025-01-09 15:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210618', 'tblTempVendorCDR_20' ) start [2025-01-09 15:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210618', 'tblTempVendorCDR_20' ) end [2025-01-09 15:52:30] Production.INFO: ProcessCDR(1,14210618,1,1,2) [2025-01-09 15:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:52:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:52:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:52:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210618', 'tblTempUsageDetail_20' ) start [2025-01-09 15:52:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210618', 'tblTempUsageDetail_20' ) end [2025-01-09 15:52:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:52:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:52:35] Production.INFO: ==10368== Releasing lock... [2025-01-09 15:52:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:52:35] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:53:05 [end_date_ymd] => 2025-01-09 15:53:05 [RateCDR] => 1 ) [2025-01-09 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 12:53:05' and `end` < '2025-01-09 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 15:53:33] Production.INFO: count ==4251 [2025-01-09 15:53:35] Production.ERROR: pbx CDR StartTime 2025-01-09 12:53:05 - End Time 2025-01-09 15:53:05 [2025-01-09 15:53:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:53:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210623', 'tblTempUsageDetail_20' ) start [2025-01-09 15:53:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210623', 'tblTempUsageDetail_20' ) end [2025-01-09 15:53:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210623', 'tblTempVendorCDR_20' ) start [2025-01-09 15:53:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210623', 'tblTempVendorCDR_20' ) end [2025-01-09 15:53:35] Production.INFO: ProcessCDR(1,14210623,1,1,2) [2025-01-09 15:53:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:53:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:53:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:53:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:53:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210623', 'tblTempUsageDetail_20' ) start [2025-01-09 15:53:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210623', 'tblTempUsageDetail_20' ) end [2025-01-09 15:53:40] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:53:40] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:53:40] Production.INFO: ==10438== Releasing lock... [2025-01-09 15:53:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:53:40] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:54:05 [end_date_ymd] => 2025-01-09 15:54:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:54:05' and `end` < '2025-01-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-01-09 15:54:28] Production.INFO: count ==4263 [2025-01-09 15:54:30] Production.ERROR: pbx CDR StartTime 2025-01-09 12:54:05 - End Time 2025-01-09 15:54:05 [2025-01-09 15:54:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210628', 'tblTempUsageDetail_20' ) start [2025-01-09 15:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210628', 'tblTempUsageDetail_20' ) end [2025-01-09 15:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210628', 'tblTempVendorCDR_20' ) start [2025-01-09 15:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210628', 'tblTempVendorCDR_20' ) end [2025-01-09 15:54:30] Production.INFO: ProcessCDR(1,14210628,1,1,2) [2025-01-09 15:54:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:54:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:54:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:54:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210628', 'tblTempUsageDetail_20' ) start [2025-01-09 15:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210628', 'tblTempUsageDetail_20' ) end [2025-01-09 15:54:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:54:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:54:34] Production.INFO: ==10511== Releasing lock... [2025-01-09 15:54:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:54:34] Production.INFO: 60 MB #Memory Used# [2025-01-09 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:55:05 [end_date_ymd] => 2025-01-09 15:55:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:55:05' and `end` < '2025-01-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-01-09 15:55:28] Production.INFO: count ==4267 [2025-01-09 15:55:30] Production.ERROR: pbx CDR StartTime 2025-01-09 12:55:05 - End Time 2025-01-09 15:55:05 [2025-01-09 15:55:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210633', 'tblTempUsageDetail_20' ) start [2025-01-09 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210633', 'tblTempUsageDetail_20' ) end [2025-01-09 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210633', 'tblTempVendorCDR_20' ) start [2025-01-09 15:55:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210633', 'tblTempVendorCDR_20' ) end [2025-01-09 15:55:30] Production.INFO: ProcessCDR(1,14210633,1,1,2) [2025-01-09 15:55:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:55:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210633', 'tblTempUsageDetail_20' ) start [2025-01-09 15:55:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210633', 'tblTempUsageDetail_20' ) end [2025-01-09 15:55:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:55:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:55:35] Production.INFO: ==10581== Releasing lock... [2025-01-09 15:55:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:55:35] Production.INFO: 60 MB #Memory Used# [2025-01-09 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:56:05 [end_date_ymd] => 2025-01-09 15:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:56:05' and `end` < '2025-01-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-01-09 15:56:23] Production.INFO: count ==4273 [2025-01-09 15:56:25] Production.ERROR: pbx CDR StartTime 2025-01-09 12:56:05 - End Time 2025-01-09 15:56:05 [2025-01-09 15:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210638', 'tblTempUsageDetail_20' ) start [2025-01-09 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210638', 'tblTempUsageDetail_20' ) end [2025-01-09 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210638', 'tblTempVendorCDR_20' ) start [2025-01-09 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210638', 'tblTempVendorCDR_20' ) end [2025-01-09 15:56:25] Production.INFO: ProcessCDR(1,14210638,1,1,2) [2025-01-09 15:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210638', 'tblTempUsageDetail_20' ) start [2025-01-09 15:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210638', 'tblTempUsageDetail_20' ) end [2025-01-09 15:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:56:30] Production.INFO: ==10692== Releasing lock... [2025-01-09 15:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:56:30] Production.INFO: 60 MB #Memory Used# [2025-01-09 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:57:05 [end_date_ymd] => 2025-01-09 15:57:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:57:05' and `end` < '2025-01-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-01-09 15:57:19] Production.INFO: count ==4263 [2025-01-09 15:57:21] Production.ERROR: pbx CDR StartTime 2025-01-09 12:57:05 - End Time 2025-01-09 15:57:05 [2025-01-09 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210643', 'tblTempUsageDetail_20' ) start [2025-01-09 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210643', 'tblTempUsageDetail_20' ) end [2025-01-09 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210643', 'tblTempVendorCDR_20' ) start [2025-01-09 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210643', 'tblTempVendorCDR_20' ) end [2025-01-09 15:57:21] Production.INFO: ProcessCDR(1,14210643,1,1,2) [2025-01-09 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210643', 'tblTempUsageDetail_20' ) start [2025-01-09 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210643', 'tblTempUsageDetail_20' ) end [2025-01-09 15:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:57:25] Production.INFO: ==10763== Releasing lock... [2025-01-09 15:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:57:25] Production.INFO: 60 MB #Memory Used# [2025-01-09 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:58:05 [end_date_ymd] => 2025-01-09 15:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:58:05' and `end` < '2025-01-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-01-09 15:58:30] Production.INFO: count ==4272 [2025-01-09 15:58:32] Production.ERROR: pbx CDR StartTime 2025-01-09 12:58:05 - End Time 2025-01-09 15:58:05 [2025-01-09 15:58:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210648', 'tblTempUsageDetail_20' ) start [2025-01-09 15:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210648', 'tblTempUsageDetail_20' ) end [2025-01-09 15:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210648', 'tblTempVendorCDR_20' ) start [2025-01-09 15:58:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210648', 'tblTempVendorCDR_20' ) end [2025-01-09 15:58:33] Production.INFO: ProcessCDR(1,14210648,1,1,2) [2025-01-09 15:58:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:58:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:58:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:58:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210648', 'tblTempUsageDetail_20' ) start [2025-01-09 15:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210648', 'tblTempUsageDetail_20' ) end [2025-01-09 15:58:37] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:58:37] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:58:37] Production.INFO: ==10832== Releasing lock... [2025-01-09 15:58:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:58:37] Production.INFO: 60 MB #Memory Used# [2025-01-09 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 12:59:05 [end_date_ymd] => 2025-01-09 15:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 12:59:05' and `end` < '2025-01-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-01-09 15:59:32] Production.INFO: count ==4284 [2025-01-09 15:59:34] Production.ERROR: pbx CDR StartTime 2025-01-09 12:59:05 - End Time 2025-01-09 15:59:05 [2025-01-09 15:59:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 15:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210653', 'tblTempUsageDetail_20' ) start [2025-01-09 15:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210653', 'tblTempUsageDetail_20' ) end [2025-01-09 15:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210653', 'tblTempVendorCDR_20' ) start [2025-01-09 15:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210653', 'tblTempVendorCDR_20' ) end [2025-01-09 15:59:34] Production.INFO: ProcessCDR(1,14210653,1,1,2) [2025-01-09 15:59:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:59:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 15:59:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:59:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 15:59:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210653', 'tblTempUsageDetail_20' ) start [2025-01-09 15:59:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210653', 'tblTempUsageDetail_20' ) end [2025-01-09 15:59:39] Production.ERROR: pbx prc_insertCDR start [2025-01-09 15:59:39] Production.ERROR: pbx prc_insertCDR end [2025-01-09 15:59:39] Production.INFO: ==10905== Releasing lock... [2025-01-09 15:59:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 15:59:39] Production.INFO: 60 MB #Memory Used# [2025-01-09 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:00:05 [end_date_ymd] => 2025-01-09 16:00:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:00:05' and `end` < '2025-01-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-01-09 16:00:27] Production.INFO: count ==4306 [2025-01-09 16:00:28] Production.ERROR: pbx CDR StartTime 2025-01-09 13:00:05 - End Time 2025-01-09 16:00:05 [2025-01-09 16:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210658', 'tblTempUsageDetail_20' ) start [2025-01-09 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210658', 'tblTempUsageDetail_20' ) end [2025-01-09 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210658', 'tblTempVendorCDR_20' ) start [2025-01-09 16:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210658', 'tblTempVendorCDR_20' ) end [2025-01-09 16:00:29] Production.INFO: ProcessCDR(1,14210658,1,1,2) [2025-01-09 16:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210658', 'tblTempUsageDetail_20' ) start [2025-01-09 16:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210658', 'tblTempUsageDetail_20' ) end [2025-01-09 16:00:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:00:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:00:33] Production.INFO: ==10978== Releasing lock... [2025-01-09 16:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:00:33] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:01:05 [end_date_ymd] => 2025-01-09 16:01:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:01:05' and `end` < '2025-01-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-01-09 16:01:36] Production.INFO: count ==4392 [2025-01-09 16:01:38] Production.ERROR: pbx CDR StartTime 2025-01-09 13:01:05 - End Time 2025-01-09 16:01:05 [2025-01-09 16:01:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:01:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210664', 'tblTempUsageDetail_20' ) start [2025-01-09 16:01:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210664', 'tblTempUsageDetail_20' ) end [2025-01-09 16:01:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210664', 'tblTempVendorCDR_20' ) start [2025-01-09 16:01:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210664', 'tblTempVendorCDR_20' ) end [2025-01-09 16:01:38] Production.INFO: ProcessCDR(1,14210664,1,1,2) [2025-01-09 16:01:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:01:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:01:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:01:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:01:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210664', 'tblTempUsageDetail_20' ) start [2025-01-09 16:01:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210664', 'tblTempUsageDetail_20' ) end [2025-01-09 16:01:43] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:01:43] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:01:43] Production.INFO: ==11063== Releasing lock... [2025-01-09 16:01:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:01:43] Production.INFO: 61 MB #Memory Used# [2025-01-09 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:02:05 [end_date_ymd] => 2025-01-09 16:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:02:05' and `end` < '2025-01-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-01-09 16:02:26] Production.INFO: count ==4383 [2025-01-09 16:02:28] Production.ERROR: pbx CDR StartTime 2025-01-09 13:02:05 - End Time 2025-01-09 16:02:05 [2025-01-09 16:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210669', 'tblTempUsageDetail_20' ) start [2025-01-09 16:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210669', 'tblTempUsageDetail_20' ) end [2025-01-09 16:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210669', 'tblTempVendorCDR_20' ) start [2025-01-09 16:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210669', 'tblTempVendorCDR_20' ) end [2025-01-09 16:02:28] Production.INFO: ProcessCDR(1,14210669,1,1,2) [2025-01-09 16:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210669', 'tblTempUsageDetail_20' ) start [2025-01-09 16:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210669', 'tblTempUsageDetail_20' ) end [2025-01-09 16:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:02:33] Production.INFO: ==11162== Releasing lock... [2025-01-09 16:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:02:33] Production.INFO: 60.75 MB #Memory Used# [2025-01-09 16:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:03:04 [end_date_ymd] => 2025-01-09 16:03:04 [RateCDR] => 1 ) [2025-01-09 16:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:03:04' and `end` < '2025-01-09 16:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:03:31] Production.INFO: count ==4367 [2025-01-09 16:03:32] Production.ERROR: pbx CDR StartTime 2025-01-09 13:03:04 - End Time 2025-01-09 16:03:04 [2025-01-09 16:03:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210674', 'tblTempUsageDetail_20' ) start [2025-01-09 16:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210674', 'tblTempUsageDetail_20' ) end [2025-01-09 16:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210674', 'tblTempVendorCDR_20' ) start [2025-01-09 16:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210674', 'tblTempVendorCDR_20' ) end [2025-01-09 16:03:33] Production.INFO: ProcessCDR(1,14210674,1,1,2) [2025-01-09 16:03:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:03:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210674', 'tblTempUsageDetail_20' ) start [2025-01-09 16:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210674', 'tblTempUsageDetail_20' ) end [2025-01-09 16:03:37] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:03:37] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:03:37] Production.INFO: ==11232== Releasing lock... [2025-01-09 16:03:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:03:37] Production.INFO: 60.75 MB #Memory Used# [2025-01-09 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:04:05 [end_date_ymd] => 2025-01-09 16:04:05 [RateCDR] => 1 ) [2025-01-09 16:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:04:05' and `end` < '2025-01-09 16:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:04:23] Production.INFO: count ==4353 [2025-01-09 16:04:25] Production.ERROR: pbx CDR StartTime 2025-01-09 13:04:05 - End Time 2025-01-09 16:04:05 [2025-01-09 16:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210679', 'tblTempUsageDetail_20' ) start [2025-01-09 16:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210679', 'tblTempUsageDetail_20' ) end [2025-01-09 16:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210679', 'tblTempVendorCDR_20' ) start [2025-01-09 16:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210679', 'tblTempVendorCDR_20' ) end [2025-01-09 16:04:26] Production.INFO: ProcessCDR(1,14210679,1,1,2) [2025-01-09 16:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210679', 'tblTempUsageDetail_20' ) start [2025-01-09 16:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210679', 'tblTempUsageDetail_20' ) end [2025-01-09 16:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:04:30] Production.INFO: ==11303== Releasing lock... [2025-01-09 16:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:04:30] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:05:04 [end_date_ymd] => 2025-01-09 16:05:04 [RateCDR] => 1 ) [2025-01-09 16:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:05:04' and `end` < '2025-01-09 16:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:05:21] Production.INFO: count ==4330 [2025-01-09 16:05:23] Production.ERROR: pbx CDR StartTime 2025-01-09 13:05:04 - End Time 2025-01-09 16:05:04 [2025-01-09 16:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210684', 'tblTempUsageDetail_20' ) start [2025-01-09 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210684', 'tblTempUsageDetail_20' ) end [2025-01-09 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210684', 'tblTempVendorCDR_20' ) start [2025-01-09 16:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210684', 'tblTempVendorCDR_20' ) end [2025-01-09 16:05:23] Production.INFO: ProcessCDR(1,14210684,1,1,2) [2025-01-09 16:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210684', 'tblTempUsageDetail_20' ) start [2025-01-09 16:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210684', 'tblTempUsageDetail_20' ) end [2025-01-09 16:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:05:28] Production.INFO: ==11373== Releasing lock... [2025-01-09 16:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:05:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:06:05 [end_date_ymd] => 2025-01-09 16:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:06:05' and `end` < '2025-01-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-01-09 16:06:24] Production.INFO: count ==4316 [2025-01-09 16:06:26] Production.ERROR: pbx CDR StartTime 2025-01-09 13:06:05 - End Time 2025-01-09 16:06:05 [2025-01-09 16:06:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210689', 'tblTempUsageDetail_20' ) start [2025-01-09 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210689', 'tblTempUsageDetail_20' ) end [2025-01-09 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210689', 'tblTempVendorCDR_20' ) start [2025-01-09 16:06:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210689', 'tblTempVendorCDR_20' ) end [2025-01-09 16:06:26] Production.INFO: ProcessCDR(1,14210689,1,1,2) [2025-01-09 16:06:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210689', 'tblTempUsageDetail_20' ) start [2025-01-09 16:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210689', 'tblTempUsageDetail_20' ) end [2025-01-09 16:06:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:06:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:06:31] Production.INFO: ==11445== Releasing lock... [2025-01-09 16:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:06:31] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:07:04 [end_date_ymd] => 2025-01-09 16:07:04 [RateCDR] => 1 ) [2025-01-09 16:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:07:04' and `end` < '2025-01-09 16:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:07:23] Production.INFO: count ==4310 [2025-01-09 16:07:25] Production.ERROR: pbx CDR StartTime 2025-01-09 13:07:04 - End Time 2025-01-09 16:07:04 [2025-01-09 16:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210694', 'tblTempUsageDetail_20' ) start [2025-01-09 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210694', 'tblTempUsageDetail_20' ) end [2025-01-09 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210694', 'tblTempVendorCDR_20' ) start [2025-01-09 16:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210694', 'tblTempVendorCDR_20' ) end [2025-01-09 16:07:25] Production.INFO: ProcessCDR(1,14210694,1,1,2) [2025-01-09 16:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:07:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:07:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210694', 'tblTempUsageDetail_20' ) start [2025-01-09 16:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210694', 'tblTempUsageDetail_20' ) end [2025-01-09 16:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:07:29] Production.INFO: ==11517== Releasing lock... [2025-01-09 16:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:07:29] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:08:05 [end_date_ymd] => 2025-01-09 16:08:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:08:05' and `end` < '2025-01-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-01-09 16:08:21] Production.INFO: count ==4310 [2025-01-09 16:08:23] Production.ERROR: pbx CDR StartTime 2025-01-09 13:08:05 - End Time 2025-01-09 16:08:05 [2025-01-09 16:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210699', 'tblTempUsageDetail_20' ) start [2025-01-09 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210699', 'tblTempUsageDetail_20' ) end [2025-01-09 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210699', 'tblTempVendorCDR_20' ) start [2025-01-09 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210699', 'tblTempVendorCDR_20' ) end [2025-01-09 16:08:23] Production.INFO: ProcessCDR(1,14210699,1,1,2) [2025-01-09 16:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210699', 'tblTempUsageDetail_20' ) start [2025-01-09 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210699', 'tblTempUsageDetail_20' ) end [2025-01-09 16:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:08:28] Production.INFO: ==11590== Releasing lock... [2025-01-09 16:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:08:28] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:09:04 [end_date_ymd] => 2025-01-09 16:09:04 [RateCDR] => 1 ) [2025-01-09 16:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:09:04' and `end` < '2025-01-09 16:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:09:19] Production.INFO: count ==4317 [2025-01-09 16:09:21] Production.ERROR: pbx CDR StartTime 2025-01-09 13:09:04 - End Time 2025-01-09 16:09:04 [2025-01-09 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210704', 'tblTempUsageDetail_20' ) start [2025-01-09 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210704', 'tblTempUsageDetail_20' ) end [2025-01-09 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210704', 'tblTempVendorCDR_20' ) start [2025-01-09 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210704', 'tblTempVendorCDR_20' ) end [2025-01-09 16:09:21] Production.INFO: ProcessCDR(1,14210704,1,1,2) [2025-01-09 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210704', 'tblTempUsageDetail_20' ) start [2025-01-09 16:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210704', 'tblTempUsageDetail_20' ) end [2025-01-09 16:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:09:26] Production.INFO: ==11661== Releasing lock... [2025-01-09 16:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:09:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:10:06 [end_date_ymd] => 2025-01-09 16:10:06 [RateCDR] => 1 ) [2025-01-09 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:10:06' and `end` < '2025-01-09 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:10:26] Production.INFO: count ==4294 [2025-01-09 16:10:28] Production.ERROR: pbx CDR StartTime 2025-01-09 13:10:06 - End Time 2025-01-09 16:10:06 [2025-01-09 16:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210710', 'tblTempUsageDetail_20' ) start [2025-01-09 16:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210710', 'tblTempUsageDetail_20' ) end [2025-01-09 16:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210710', 'tblTempVendorCDR_20' ) start [2025-01-09 16:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210710', 'tblTempVendorCDR_20' ) end [2025-01-09 16:10:28] Production.INFO: ProcessCDR(1,14210710,1,1,2) [2025-01-09 16:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:10:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:10:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210710', 'tblTempUsageDetail_20' ) start [2025-01-09 16:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210710', 'tblTempUsageDetail_20' ) end [2025-01-09 16:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:10:31] Production.INFO: ==11743== Releasing lock... [2025-01-09 16:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:10:31] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:11:05 [end_date_ymd] => 2025-01-09 16:11:05 [RateCDR] => 1 ) [2025-01-09 16:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:11:05' and `end` < '2025-01-09 16:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:11:32] Production.INFO: count ==4363 [2025-01-09 16:11:33] Production.ERROR: pbx CDR StartTime 2025-01-09 13:11:05 - End Time 2025-01-09 16:11:05 [2025-01-09 16:11:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210715', 'tblTempUsageDetail_20' ) start [2025-01-09 16:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210715', 'tblTempUsageDetail_20' ) end [2025-01-09 16:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210715', 'tblTempVendorCDR_20' ) start [2025-01-09 16:11:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210715', 'tblTempVendorCDR_20' ) end [2025-01-09 16:11:34] Production.INFO: ProcessCDR(1,14210715,1,1,2) [2025-01-09 16:11:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:11:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:11:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:11:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:11:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210715', 'tblTempUsageDetail_20' ) start [2025-01-09 16:11:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210715', 'tblTempUsageDetail_20' ) end [2025-01-09 16:11:38] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:11:38] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:11:38] Production.INFO: ==11886== Releasing lock... [2025-01-09 16:11:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:11:38] Production.INFO: 60.75 MB #Memory Used# [2025-01-09 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:12:05 [end_date_ymd] => 2025-01-09 16:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:12:05' and `end` < '2025-01-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-01-09 16:12:37] Production.INFO: count ==4340 [2025-01-09 16:12:39] Production.ERROR: pbx CDR StartTime 2025-01-09 13:12:05 - End Time 2025-01-09 16:12:05 [2025-01-09 16:12:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:12:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210720', 'tblTempUsageDetail_20' ) start [2025-01-09 16:12:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210720', 'tblTempUsageDetail_20' ) end [2025-01-09 16:12:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210720', 'tblTempVendorCDR_20' ) start [2025-01-09 16:12:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210720', 'tblTempVendorCDR_20' ) end [2025-01-09 16:12:40] Production.INFO: ProcessCDR(1,14210720,1,1,2) [2025-01-09 16:12:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:12:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:12:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:12:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:12:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210720', 'tblTempUsageDetail_20' ) start [2025-01-09 16:12:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210720', 'tblTempUsageDetail_20' ) end [2025-01-09 16:12:44] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:12:44] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:12:44] Production.INFO: ==11987== Releasing lock... [2025-01-09 16:12:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:12:44] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:13:05 [end_date_ymd] => 2025-01-09 16:13:05 [RateCDR] => 1 ) [2025-01-09 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:13:05' and `end` < '2025-01-09 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:13:27] Production.INFO: count ==4337 [2025-01-09 16:13:28] Production.ERROR: pbx CDR StartTime 2025-01-09 13:13:05 - End Time 2025-01-09 16:13:05 [2025-01-09 16:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210725', 'tblTempUsageDetail_20' ) start [2025-01-09 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210725', 'tblTempUsageDetail_20' ) end [2025-01-09 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210725', 'tblTempVendorCDR_20' ) start [2025-01-09 16:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210725', 'tblTempVendorCDR_20' ) end [2025-01-09 16:13:29] Production.INFO: ProcessCDR(1,14210725,1,1,2) [2025-01-09 16:13:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210725', 'tblTempUsageDetail_20' ) start [2025-01-09 16:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210725', 'tblTempUsageDetail_20' ) end [2025-01-09 16:13:33] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:13:33] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:13:33] Production.INFO: ==12073== Releasing lock... [2025-01-09 16:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:13:33] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:14:05 [end_date_ymd] => 2025-01-09 16:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:14:05' and `end` < '2025-01-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-01-09 16:14:23] Production.INFO: count ==4315 [2025-01-09 16:14:25] Production.ERROR: pbx CDR StartTime 2025-01-09 13:14:05 - End Time 2025-01-09 16:14:05 [2025-01-09 16:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210730', 'tblTempUsageDetail_20' ) start [2025-01-09 16:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210730', 'tblTempUsageDetail_20' ) end [2025-01-09 16:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210730', 'tblTempVendorCDR_20' ) start [2025-01-09 16:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210730', 'tblTempVendorCDR_20' ) end [2025-01-09 16:14:25] Production.INFO: ProcessCDR(1,14210730,1,1,2) [2025-01-09 16:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210730', 'tblTempUsageDetail_20' ) start [2025-01-09 16:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210730', 'tblTempUsageDetail_20' ) end [2025-01-09 16:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:14:30] Production.INFO: ==12143== Releasing lock... [2025-01-09 16:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:14:30] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:15:05 [end_date_ymd] => 2025-01-09 16:15:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:15:05' and `end` < '2025-01-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-01-09 16:15:31] Production.INFO: count ==4303 [2025-01-09 16:15:33] Production.ERROR: pbx CDR StartTime 2025-01-09 13:15:05 - End Time 2025-01-09 16:15:05 [2025-01-09 16:15:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210735', 'tblTempUsageDetail_20' ) start [2025-01-09 16:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210735', 'tblTempUsageDetail_20' ) end [2025-01-09 16:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210735', 'tblTempVendorCDR_20' ) start [2025-01-09 16:15:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210735', 'tblTempVendorCDR_20' ) end [2025-01-09 16:15:33] Production.INFO: ProcessCDR(1,14210735,1,1,2) [2025-01-09 16:15:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:15:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:15:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:15:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:15:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210735', 'tblTempUsageDetail_20' ) start [2025-01-09 16:15:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210735', 'tblTempUsageDetail_20' ) end [2025-01-09 16:15:38] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:15:38] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:15:38] Production.INFO: ==12220== Releasing lock... [2025-01-09 16:15:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:15:38] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:16:04 [end_date_ymd] => 2025-01-09 16:16:04 [RateCDR] => 1 ) [2025-01-09 16:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:16:04' and `end` < '2025-01-09 16:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:16:31] Production.INFO: count ==4310 [2025-01-09 16:16:32] Production.ERROR: pbx CDR StartTime 2025-01-09 13:16:04 - End Time 2025-01-09 16:16:04 [2025-01-09 16:16:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210740', 'tblTempUsageDetail_20' ) start [2025-01-09 16:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210740', 'tblTempUsageDetail_20' ) end [2025-01-09 16:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210740', 'tblTempVendorCDR_20' ) start [2025-01-09 16:16:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210740', 'tblTempVendorCDR_20' ) end [2025-01-09 16:16:33] Production.INFO: ProcessCDR(1,14210740,1,1,2) [2025-01-09 16:16:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:16:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:16:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:16:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210740', 'tblTempUsageDetail_20' ) start [2025-01-09 16:16:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210740', 'tblTempUsageDetail_20' ) end [2025-01-09 16:16:38] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:16:38] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:16:38] Production.INFO: ==12294== Releasing lock... [2025-01-09 16:16:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:16:38] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:17:05 [end_date_ymd] => 2025-01-09 16:17:05 [RateCDR] => 1 ) [2025-01-09 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:17:05' and `end` < '2025-01-09 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:17:25] Production.INFO: count ==4306 [2025-01-09 16:17:27] Production.ERROR: pbx CDR StartTime 2025-01-09 13:17:05 - End Time 2025-01-09 16:17:05 [2025-01-09 16:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210745', 'tblTempUsageDetail_20' ) start [2025-01-09 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210745', 'tblTempUsageDetail_20' ) end [2025-01-09 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210745', 'tblTempVendorCDR_20' ) start [2025-01-09 16:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210745', 'tblTempVendorCDR_20' ) end [2025-01-09 16:17:27] Production.INFO: ProcessCDR(1,14210745,1,1,2) [2025-01-09 16:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210745', 'tblTempUsageDetail_20' ) start [2025-01-09 16:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210745', 'tblTempUsageDetail_20' ) end [2025-01-09 16:17:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:17:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:17:31] Production.INFO: ==12376== Releasing lock... [2025-01-09 16:17:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:17:31] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:18:04 [end_date_ymd] => 2025-01-09 16:18:04 [RateCDR] => 1 ) [2025-01-09 16:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:18:04' and `end` < '2025-01-09 16:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:18:33] Production.INFO: count ==4299 [2025-01-09 16:18:35] Production.ERROR: pbx CDR StartTime 2025-01-09 13:18:04 - End Time 2025-01-09 16:18:04 [2025-01-09 16:18:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210750', 'tblTempUsageDetail_20' ) start [2025-01-09 16:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210750', 'tblTempUsageDetail_20' ) end [2025-01-09 16:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210750', 'tblTempVendorCDR_20' ) start [2025-01-09 16:18:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210750', 'tblTempVendorCDR_20' ) end [2025-01-09 16:18:35] Production.INFO: ProcessCDR(1,14210750,1,1,2) [2025-01-09 16:18:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:18:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:18:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:18:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:18:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210750', 'tblTempUsageDetail_20' ) start [2025-01-09 16:18:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210750', 'tblTempUsageDetail_20' ) end [2025-01-09 16:18:40] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:18:40] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:18:40] Production.INFO: ==12459== Releasing lock... [2025-01-09 16:18:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:18:40] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:19:05 [end_date_ymd] => 2025-01-09 16:19:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:19:05' and `end` < '2025-01-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-01-09 16:19:35] Production.INFO: count ==4286 [2025-01-09 16:19:37] Production.ERROR: pbx CDR StartTime 2025-01-09 13:19:05 - End Time 2025-01-09 16:19:05 [2025-01-09 16:19:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:19:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210755', 'tblTempUsageDetail_20' ) start [2025-01-09 16:19:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210755', 'tblTempUsageDetail_20' ) end [2025-01-09 16:19:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210755', 'tblTempVendorCDR_20' ) start [2025-01-09 16:19:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210755', 'tblTempVendorCDR_20' ) end [2025-01-09 16:19:37] Production.INFO: ProcessCDR(1,14210755,1,1,2) [2025-01-09 16:19:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:19:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:19:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:19:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:19:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210755', 'tblTempUsageDetail_20' ) start [2025-01-09 16:19:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210755', 'tblTempUsageDetail_20' ) end [2025-01-09 16:19:41] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:19:41] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:19:41] Production.INFO: ==12531== Releasing lock... [2025-01-09 16:19:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:19:41] Production.INFO: 60 MB #Memory Used# [2025-01-09 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:20:05 [end_date_ymd] => 2025-01-09 16:20:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:20:05' and `end` < '2025-01-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-01-09 16:20:29] Production.INFO: count ==4271 [2025-01-09 16:20:31] Production.ERROR: pbx CDR StartTime 2025-01-09 13:20:05 - End Time 2025-01-09 16:20:05 [2025-01-09 16:20:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210761', 'tblTempUsageDetail_20' ) start [2025-01-09 16:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210761', 'tblTempUsageDetail_20' ) end [2025-01-09 16:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210761', 'tblTempVendorCDR_20' ) start [2025-01-09 16:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210761', 'tblTempVendorCDR_20' ) end [2025-01-09 16:20:31] Production.INFO: ProcessCDR(1,14210761,1,1,2) [2025-01-09 16:20:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:20:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:20:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:20:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:20:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210761', 'tblTempUsageDetail_20' ) start [2025-01-09 16:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210761', 'tblTempUsageDetail_20' ) end [2025-01-09 16:20:36] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:20:36] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:20:36] Production.INFO: ==12604== Releasing lock... [2025-01-09 16:20:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:20:36] Production.INFO: 60 MB #Memory Used# [2025-01-09 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:21:05 [end_date_ymd] => 2025-01-09 16:21:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:21:05' and `end` < '2025-01-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-01-09 16:21:25] Production.INFO: count ==4363 [2025-01-09 16:21:27] Production.ERROR: pbx CDR StartTime 2025-01-09 13:21:05 - End Time 2025-01-09 16:21:05 [2025-01-09 16:21:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210766', 'tblTempUsageDetail_20' ) start [2025-01-09 16:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210766', 'tblTempUsageDetail_20' ) end [2025-01-09 16:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210766', 'tblTempVendorCDR_20' ) start [2025-01-09 16:21:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210766', 'tblTempVendorCDR_20' ) end [2025-01-09 16:21:27] Production.INFO: ProcessCDR(1,14210766,1,1,2) [2025-01-09 16:21:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:21:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:21:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:21:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210766', 'tblTempUsageDetail_20' ) start [2025-01-09 16:21:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210766', 'tblTempUsageDetail_20' ) end [2025-01-09 16:21:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:21:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:21:32] Production.INFO: ==12677== Releasing lock... [2025-01-09 16:21:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:21:32] Production.INFO: 60.75 MB #Memory Used# [2025-01-09 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:22:05 [end_date_ymd] => 2025-01-09 16:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:22:05' and `end` < '2025-01-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-01-09 16:22:24] Production.INFO: count ==4383 [2025-01-09 16:22:26] Production.ERROR: pbx CDR StartTime 2025-01-09 13:22:05 - End Time 2025-01-09 16:22:05 [2025-01-09 16:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210771', 'tblTempUsageDetail_20' ) start [2025-01-09 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210771', 'tblTempUsageDetail_20' ) end [2025-01-09 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210771', 'tblTempVendorCDR_20' ) start [2025-01-09 16:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210771', 'tblTempVendorCDR_20' ) end [2025-01-09 16:22:26] Production.INFO: ProcessCDR(1,14210771,1,1,2) [2025-01-09 16:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210771', 'tblTempUsageDetail_20' ) start [2025-01-09 16:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210771', 'tblTempUsageDetail_20' ) end [2025-01-09 16:22:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:22:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:22:31] Production.INFO: ==12748== Releasing lock... [2025-01-09 16:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:22:31] Production.INFO: 60.75 MB #Memory Used# [2025-01-09 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:23:05 [end_date_ymd] => 2025-01-09 16:23:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:23:05' and `end` < '2025-01-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-01-09 16:23:19] Production.INFO: count ==4361 [2025-01-09 16:23:21] Production.ERROR: pbx CDR StartTime 2025-01-09 13:23:05 - End Time 2025-01-09 16:23:05 [2025-01-09 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210776', 'tblTempUsageDetail_20' ) start [2025-01-09 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210776', 'tblTempUsageDetail_20' ) end [2025-01-09 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210776', 'tblTempVendorCDR_20' ) start [2025-01-09 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210776', 'tblTempVendorCDR_20' ) end [2025-01-09 16:23:21] Production.INFO: ProcessCDR(1,14210776,1,1,2) [2025-01-09 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210776', 'tblTempUsageDetail_20' ) start [2025-01-09 16:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210776', 'tblTempUsageDetail_20' ) end [2025-01-09 16:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:23:25] Production.INFO: ==12818== Releasing lock... [2025-01-09 16:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:23:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-09 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:24:05 [end_date_ymd] => 2025-01-09 16:24:05 [RateCDR] => 1 ) [2025-01-09 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:24:05' and `end` < '2025-01-09 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:24:20] Production.INFO: count ==4344 [2025-01-09 16:24:22] Production.ERROR: pbx CDR StartTime 2025-01-09 13:24:05 - End Time 2025-01-09 16:24:05 [2025-01-09 16:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210781', 'tblTempUsageDetail_20' ) start [2025-01-09 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210781', 'tblTempUsageDetail_20' ) end [2025-01-09 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210781', 'tblTempVendorCDR_20' ) start [2025-01-09 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210781', 'tblTempVendorCDR_20' ) end [2025-01-09 16:24:22] Production.INFO: ProcessCDR(1,14210781,1,1,2) [2025-01-09 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210781', 'tblTempUsageDetail_20' ) start [2025-01-09 16:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210781', 'tblTempUsageDetail_20' ) end [2025-01-09 16:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:24:27] Production.INFO: ==12888== Releasing lock... [2025-01-09 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:24:27] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:25:04 [end_date_ymd] => 2025-01-09 16:25:04 [RateCDR] => 1 ) [2025-01-09 16:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:25:04' and `end` < '2025-01-09 16:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:25:25] Production.INFO: count ==4301 [2025-01-09 16:25:26] Production.ERROR: pbx CDR StartTime 2025-01-09 13:25:04 - End Time 2025-01-09 16:25:04 [2025-01-09 16:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210786', 'tblTempUsageDetail_20' ) start [2025-01-09 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210786', 'tblTempUsageDetail_20' ) end [2025-01-09 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210786', 'tblTempVendorCDR_20' ) start [2025-01-09 16:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210786', 'tblTempVendorCDR_20' ) end [2025-01-09 16:25:26] Production.INFO: ProcessCDR(1,14210786,1,1,2) [2025-01-09 16:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210786', 'tblTempUsageDetail_20' ) start [2025-01-09 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210786', 'tblTempUsageDetail_20' ) end [2025-01-09 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:25:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:25:30] Production.INFO: ==12960== Releasing lock... [2025-01-09 16:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:25:30] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:26:05 [end_date_ymd] => 2025-01-09 16:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:26:05' and `end` < '2025-01-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-01-09 16:26:21] Production.INFO: count ==4300 [2025-01-09 16:26:22] Production.ERROR: pbx CDR StartTime 2025-01-09 13:26:05 - End Time 2025-01-09 16:26:05 [2025-01-09 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210791', 'tblTempUsageDetail_20' ) start [2025-01-09 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210791', 'tblTempUsageDetail_20' ) end [2025-01-09 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210791', 'tblTempVendorCDR_20' ) start [2025-01-09 16:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210791', 'tblTempVendorCDR_20' ) end [2025-01-09 16:26:23] Production.INFO: ProcessCDR(1,14210791,1,1,2) [2025-01-09 16:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210791', 'tblTempUsageDetail_20' ) start [2025-01-09 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210791', 'tblTempUsageDetail_20' ) end [2025-01-09 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:26:27] Production.INFO: ==13032== Releasing lock... [2025-01-09 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:26:27] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:27:05 [end_date_ymd] => 2025-01-09 16:27:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:27:05' and `end` < '2025-01-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-01-09 16:27:26] Production.INFO: count ==4292 [2025-01-09 16:27:27] Production.ERROR: pbx CDR StartTime 2025-01-09 13:27:05 - End Time 2025-01-09 16:27:05 [2025-01-09 16:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210796', 'tblTempUsageDetail_20' ) start [2025-01-09 16:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210796', 'tblTempUsageDetail_20' ) end [2025-01-09 16:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210796', 'tblTempVendorCDR_20' ) start [2025-01-09 16:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210796', 'tblTempVendorCDR_20' ) end [2025-01-09 16:27:27] Production.INFO: ProcessCDR(1,14210796,1,1,2) [2025-01-09 16:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210796', 'tblTempUsageDetail_20' ) start [2025-01-09 16:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210796', 'tblTempUsageDetail_20' ) end [2025-01-09 16:27:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:27:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:27:32] Production.INFO: ==13144== Releasing lock... [2025-01-09 16:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:27:32] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:28:05 [end_date_ymd] => 2025-01-09 16:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:28:05' and `end` < '2025-01-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-01-09 16:28:22] Production.INFO: count ==4284 [2025-01-09 16:28:24] Production.ERROR: pbx CDR StartTime 2025-01-09 13:28:05 - End Time 2025-01-09 16:28:05 [2025-01-09 16:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210801', 'tblTempUsageDetail_20' ) start [2025-01-09 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210801', 'tblTempUsageDetail_20' ) end [2025-01-09 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210801', 'tblTempVendorCDR_20' ) start [2025-01-09 16:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210801', 'tblTempVendorCDR_20' ) end [2025-01-09 16:28:24] Production.INFO: ProcessCDR(1,14210801,1,1,2) [2025-01-09 16:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210801', 'tblTempUsageDetail_20' ) start [2025-01-09 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210801', 'tblTempUsageDetail_20' ) end [2025-01-09 16:28:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:28:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:28:28] Production.INFO: ==13215== Releasing lock... [2025-01-09 16:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:28:28] Production.INFO: 60 MB #Memory Used# [2025-01-09 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:29:05 [end_date_ymd] => 2025-01-09 16:29:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:29:05' and `end` < '2025-01-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-01-09 16:29:25] Production.INFO: count ==4294 [2025-01-09 16:29:27] Production.ERROR: pbx CDR StartTime 2025-01-09 13:29:05 - End Time 2025-01-09 16:29:05 [2025-01-09 16:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210806', 'tblTempUsageDetail_20' ) start [2025-01-09 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210806', 'tblTempUsageDetail_20' ) end [2025-01-09 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210806', 'tblTempVendorCDR_20' ) start [2025-01-09 16:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210806', 'tblTempVendorCDR_20' ) end [2025-01-09 16:29:27] Production.INFO: ProcessCDR(1,14210806,1,1,2) [2025-01-09 16:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210806', 'tblTempUsageDetail_20' ) start [2025-01-09 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210806', 'tblTempUsageDetail_20' ) end [2025-01-09 16:29:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:29:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:29:32] Production.INFO: ==13291== Releasing lock... [2025-01-09 16:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:29:32] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:30:06 [end_date_ymd] => 2025-01-09 16:30:06 [RateCDR] => 1 ) [2025-01-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-01-09 13:30:06' and `end` < '2025-01-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-01-09 16:30:20] Production.INFO: count ==4270 [2025-01-09 16:30:22] Production.ERROR: pbx CDR StartTime 2025-01-09 13:30:06 - End Time 2025-01-09 16:30:06 [2025-01-09 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210811', 'tblTempUsageDetail_20' ) start [2025-01-09 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210811', 'tblTempUsageDetail_20' ) end [2025-01-09 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210811', 'tblTempVendorCDR_20' ) start [2025-01-09 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210811', 'tblTempVendorCDR_20' ) end [2025-01-09 16:30:22] Production.INFO: ProcessCDR(1,14210811,1,1,2) [2025-01-09 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210811', 'tblTempUsageDetail_20' ) start [2025-01-09 16:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210811', 'tblTempUsageDetail_20' ) end [2025-01-09 16:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:30:26] Production.INFO: ==13367== Releasing lock... [2025-01-09 16:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:30:26] Production.INFO: 60 MB #Memory Used# [2025-01-09 16:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:31:04 [end_date_ymd] => 2025-01-09 16:31:04 [RateCDR] => 1 ) [2025-01-09 16:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:31:04' and `end` < '2025-01-09 16:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:31:23] Production.INFO: count ==4303 [2025-01-09 16:31:25] Production.ERROR: pbx CDR StartTime 2025-01-09 13:31:04 - End Time 2025-01-09 16:31:04 [2025-01-09 16:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210817', 'tblTempUsageDetail_20' ) start [2025-01-09 16:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210817', 'tblTempUsageDetail_20' ) end [2025-01-09 16:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210817', 'tblTempVendorCDR_20' ) start [2025-01-09 16:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210817', 'tblTempVendorCDR_20' ) end [2025-01-09 16:31:25] Production.INFO: ProcessCDR(1,14210817,1,1,2) [2025-01-09 16:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210817', 'tblTempUsageDetail_20' ) start [2025-01-09 16:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210817', 'tblTempUsageDetail_20' ) end [2025-01-09 16:31:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:31:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:31:29] Production.INFO: ==13439== Releasing lock... [2025-01-09 16:31:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:31:29] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:32:05 [end_date_ymd] => 2025-01-09 16:32:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:32:05' and `end` < '2025-01-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-01-09 16:32:23] Production.INFO: count ==4297 [2025-01-09 16:32:25] Production.ERROR: pbx CDR StartTime 2025-01-09 13:32:05 - End Time 2025-01-09 16:32:05 [2025-01-09 16:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210822', 'tblTempUsageDetail_20' ) start [2025-01-09 16:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210822', 'tblTempUsageDetail_20' ) end [2025-01-09 16:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210822', 'tblTempVendorCDR_20' ) start [2025-01-09 16:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210822', 'tblTempVendorCDR_20' ) end [2025-01-09 16:32:25] Production.INFO: ProcessCDR(1,14210822,1,1,2) [2025-01-09 16:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210822', 'tblTempUsageDetail_20' ) start [2025-01-09 16:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210822', 'tblTempUsageDetail_20' ) end [2025-01-09 16:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:32:30] Production.INFO: ==13509== Releasing lock... [2025-01-09 16:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:32:30] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:33:04 [end_date_ymd] => 2025-01-09 16:33:04 [RateCDR] => 1 ) [2025-01-09 16:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:33:04' and `end` < '2025-01-09 16:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:33:18] Production.INFO: count ==4272 [2025-01-09 16:33:20] Production.ERROR: pbx CDR StartTime 2025-01-09 13:33:04 - End Time 2025-01-09 16:33:04 [2025-01-09 16:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210827', 'tblTempUsageDetail_20' ) start [2025-01-09 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210827', 'tblTempUsageDetail_20' ) end [2025-01-09 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210827', 'tblTempVendorCDR_20' ) start [2025-01-09 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210827', 'tblTempVendorCDR_20' ) end [2025-01-09 16:33:20] Production.INFO: ProcessCDR(1,14210827,1,1,2) [2025-01-09 16:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210827', 'tblTempUsageDetail_20' ) start [2025-01-09 16:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210827', 'tblTempUsageDetail_20' ) end [2025-01-09 16:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:33:24] Production.INFO: ==13583== Releasing lock... [2025-01-09 16:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:33:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:34:05 [end_date_ymd] => 2025-01-09 16:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:34:05' and `end` < '2025-01-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-01-09 16:34:23] Production.INFO: count ==4240 [2025-01-09 16:34:24] Production.ERROR: pbx CDR StartTime 2025-01-09 13:34:05 - End Time 2025-01-09 16:34:05 [2025-01-09 16:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210832', 'tblTempUsageDetail_20' ) start [2025-01-09 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210832', 'tblTempUsageDetail_20' ) end [2025-01-09 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210832', 'tblTempVendorCDR_20' ) start [2025-01-09 16:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210832', 'tblTempVendorCDR_20' ) end [2025-01-09 16:34:25] Production.INFO: ProcessCDR(1,14210832,1,1,2) [2025-01-09 16:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210832', 'tblTempUsageDetail_20' ) start [2025-01-09 16:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210832', 'tblTempUsageDetail_20' ) end [2025-01-09 16:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:34:29] Production.INFO: ==13664== Releasing lock... [2025-01-09 16:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:34:29] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 16:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:35:04 [end_date_ymd] => 2025-01-09 16:35:04 [RateCDR] => 1 ) [2025-01-09 16:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:35:04' and `end` < '2025-01-09 16:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:35:25] Production.INFO: count ==4231 [2025-01-09 16:35:26] Production.ERROR: pbx CDR StartTime 2025-01-09 13:35:04 - End Time 2025-01-09 16:35:04 [2025-01-09 16:35:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:35:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210837', 'tblTempUsageDetail_20' ) start [2025-01-09 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210837', 'tblTempUsageDetail_20' ) end [2025-01-09 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210837', 'tblTempVendorCDR_20' ) start [2025-01-09 16:35:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210837', 'tblTempVendorCDR_20' ) end [2025-01-09 16:35:27] Production.INFO: ProcessCDR(1,14210837,1,1,2) [2025-01-09 16:35:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:35:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:35:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:35:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210837', 'tblTempUsageDetail_20' ) start [2025-01-09 16:35:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210837', 'tblTempUsageDetail_20' ) end [2025-01-09 16:35:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:35:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:35:31] Production.INFO: ==13735== Releasing lock... [2025-01-09 16:35:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:35:31] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:36:05 [end_date_ymd] => 2025-01-09 16:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:36:05' and `end` < '2025-01-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-01-09 16:36:25] Production.INFO: count ==4251 [2025-01-09 16:36:27] Production.ERROR: pbx CDR StartTime 2025-01-09 13:36:05 - End Time 2025-01-09 16:36:05 [2025-01-09 16:36:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210842', 'tblTempUsageDetail_20' ) start [2025-01-09 16:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210842', 'tblTempUsageDetail_20' ) end [2025-01-09 16:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210842', 'tblTempVendorCDR_20' ) start [2025-01-09 16:36:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210842', 'tblTempVendorCDR_20' ) end [2025-01-09 16:36:27] Production.INFO: ProcessCDR(1,14210842,1,1,2) [2025-01-09 16:36:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:36:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:36:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:36:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210842', 'tblTempUsageDetail_20' ) start [2025-01-09 16:36:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210842', 'tblTempUsageDetail_20' ) end [2025-01-09 16:36:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:36:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:36:32] Production.INFO: ==13805== Releasing lock... [2025-01-09 16:36:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:36:32] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:37:05 [end_date_ymd] => 2025-01-09 16:37:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:37:05' and `end` < '2025-01-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-01-09 16:37:24] Production.INFO: count ==4237 [2025-01-09 16:37:26] Production.ERROR: pbx CDR StartTime 2025-01-09 13:37:05 - End Time 2025-01-09 16:37:05 [2025-01-09 16:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210846', 'tblTempUsageDetail_20' ) start [2025-01-09 16:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210846', 'tblTempUsageDetail_20' ) end [2025-01-09 16:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210846', 'tblTempVendorCDR_20' ) start [2025-01-09 16:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210846', 'tblTempVendorCDR_20' ) end [2025-01-09 16:37:26] Production.INFO: ProcessCDR(1,14210846,1,1,2) [2025-01-09 16:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210846', 'tblTempUsageDetail_20' ) start [2025-01-09 16:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210846', 'tblTempUsageDetail_20' ) end [2025-01-09 16:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:37:31] Production.INFO: ==13876== Releasing lock... [2025-01-09 16:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:37:31] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:38:05 [end_date_ymd] => 2025-01-09 16:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:38:05' and `end` < '2025-01-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-01-09 16:38:23] Production.INFO: count ==4249 [2025-01-09 16:38:24] Production.ERROR: pbx CDR StartTime 2025-01-09 13:38:05 - End Time 2025-01-09 16:38:05 [2025-01-09 16:38:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210852', 'tblTempUsageDetail_20' ) start [2025-01-09 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210852', 'tblTempUsageDetail_20' ) end [2025-01-09 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210852', 'tblTempVendorCDR_20' ) start [2025-01-09 16:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210852', 'tblTempVendorCDR_20' ) end [2025-01-09 16:38:25] Production.INFO: ProcessCDR(1,14210852,1,1,2) [2025-01-09 16:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:38:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:38:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:38:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210852', 'tblTempUsageDetail_20' ) start [2025-01-09 16:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210852', 'tblTempUsageDetail_20' ) end [2025-01-09 16:38:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:38:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:38:29] Production.INFO: ==13946== Releasing lock... [2025-01-09 16:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:38:29] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 16:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:39:04 [end_date_ymd] => 2025-01-09 16:39:04 [RateCDR] => 1 ) [2025-01-09 16:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:39:04' and `end` < '2025-01-09 16:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:39:21] Production.INFO: count ==4217 [2025-01-09 16:39:23] Production.ERROR: pbx CDR StartTime 2025-01-09 13:39:04 - End Time 2025-01-09 16:39:04 [2025-01-09 16:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210857', 'tblTempUsageDetail_20' ) start [2025-01-09 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210857', 'tblTempUsageDetail_20' ) end [2025-01-09 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210857', 'tblTempVendorCDR_20' ) start [2025-01-09 16:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210857', 'tblTempVendorCDR_20' ) end [2025-01-09 16:39:23] Production.INFO: ProcessCDR(1,14210857,1,1,2) [2025-01-09 16:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210857', 'tblTempUsageDetail_20' ) start [2025-01-09 16:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210857', 'tblTempUsageDetail_20' ) end [2025-01-09 16:39:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:39:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:39:28] Production.INFO: ==14016== Releasing lock... [2025-01-09 16:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:39:28] Production.INFO: 59.5 MB #Memory Used# [2025-01-09 16:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:40:05 [end_date_ymd] => 2025-01-09 16:40:05 [RateCDR] => 1 ) [2025-01-09 16:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:40:05' and `end` < '2025-01-09 16:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:40:28] Production.INFO: count ==4215 [2025-01-09 16:40:29] Production.ERROR: pbx CDR StartTime 2025-01-09 13:40:05 - End Time 2025-01-09 16:40:05 [2025-01-09 16:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210863', 'tblTempUsageDetail_20' ) start [2025-01-09 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210863', 'tblTempUsageDetail_20' ) end [2025-01-09 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210863', 'tblTempVendorCDR_20' ) start [2025-01-09 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210863', 'tblTempVendorCDR_20' ) end [2025-01-09 16:40:29] Production.INFO: ProcessCDR(1,14210863,1,1,2) [2025-01-09 16:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:40:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:40:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:40:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210863', 'tblTempUsageDetail_20' ) start [2025-01-09 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210863', 'tblTempUsageDetail_20' ) end [2025-01-09 16:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:40:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:40:34] Production.INFO: ==14089== Releasing lock... [2025-01-09 16:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:40:34] Production.INFO: 59.5 MB #Memory Used# [2025-01-09 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:41:04 [end_date_ymd] => 2025-01-09 16:41:04 [RateCDR] => 1 ) [2025-01-09 16:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:41:04' and `end` < '2025-01-09 16:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:41:30] Production.INFO: count ==4332 [2025-01-09 16:41:32] Production.ERROR: pbx CDR StartTime 2025-01-09 13:41:04 - End Time 2025-01-09 16:41:04 [2025-01-09 16:41:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210868', 'tblTempUsageDetail_20' ) start [2025-01-09 16:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210868', 'tblTempUsageDetail_20' ) end [2025-01-09 16:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210868', 'tblTempVendorCDR_20' ) start [2025-01-09 16:41:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210868', 'tblTempVendorCDR_20' ) end [2025-01-09 16:41:32] Production.INFO: ProcessCDR(1,14210868,1,1,2) [2025-01-09 16:41:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:41:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:41:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:41:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210868', 'tblTempUsageDetail_20' ) start [2025-01-09 16:41:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210868', 'tblTempUsageDetail_20' ) end [2025-01-09 16:41:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:41:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:41:35] Production.INFO: ==14166== Releasing lock... [2025-01-09 16:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:41:35] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:42:05 [end_date_ymd] => 2025-01-09 16:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:42:05' and `end` < '2025-01-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-01-09 16:42:23] Production.INFO: count ==4334 [2025-01-09 16:42:25] Production.ERROR: pbx CDR StartTime 2025-01-09 13:42:05 - End Time 2025-01-09 16:42:05 [2025-01-09 16:42:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210873', 'tblTempUsageDetail_20' ) start [2025-01-09 16:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210873', 'tblTempUsageDetail_20' ) end [2025-01-09 16:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210873', 'tblTempVendorCDR_20' ) start [2025-01-09 16:42:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210873', 'tblTempVendorCDR_20' ) end [2025-01-09 16:42:25] Production.INFO: ProcessCDR(1,14210873,1,1,2) [2025-01-09 16:42:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:42:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:42:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210873', 'tblTempUsageDetail_20' ) start [2025-01-09 16:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210873', 'tblTempUsageDetail_20' ) end [2025-01-09 16:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:42:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:42:30] Production.INFO: ==14242== Releasing lock... [2025-01-09 16:42:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:42:30] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:43:04 [end_date_ymd] => 2025-01-09 16:43:04 [RateCDR] => 1 ) [2025-01-09 16:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:43:04' and `end` < '2025-01-09 16:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:43:18] Production.INFO: count ==4330 [2025-01-09 16:43:20] Production.ERROR: pbx CDR StartTime 2025-01-09 13:43:04 - End Time 2025-01-09 16:43:04 [2025-01-09 16:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210878', 'tblTempUsageDetail_20' ) start [2025-01-09 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210878', 'tblTempUsageDetail_20' ) end [2025-01-09 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210878', 'tblTempVendorCDR_20' ) start [2025-01-09 16:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210878', 'tblTempVendorCDR_20' ) end [2025-01-09 16:43:20] Production.INFO: ProcessCDR(1,14210878,1,1,2) [2025-01-09 16:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210878', 'tblTempUsageDetail_20' ) start [2025-01-09 16:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210878', 'tblTempUsageDetail_20' ) end [2025-01-09 16:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:43:25] Production.INFO: ==14353== Releasing lock... [2025-01-09 16:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:43:25] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:44:05 [end_date_ymd] => 2025-01-09 16:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:44:05' and `end` < '2025-01-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-01-09 16:44:35] Production.INFO: count ==4344 [2025-01-09 16:44:36] Production.ERROR: pbx CDR StartTime 2025-01-09 13:44:05 - End Time 2025-01-09 16:44:05 [2025-01-09 16:44:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:44:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210883', 'tblTempUsageDetail_20' ) start [2025-01-09 16:44:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210883', 'tblTempUsageDetail_20' ) end [2025-01-09 16:44:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210883', 'tblTempVendorCDR_20' ) start [2025-01-09 16:44:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210883', 'tblTempVendorCDR_20' ) end [2025-01-09 16:44:37] Production.INFO: ProcessCDR(1,14210883,1,1,2) [2025-01-09 16:44:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:44:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:44:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:44:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:44:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210883', 'tblTempUsageDetail_20' ) start [2025-01-09 16:44:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210883', 'tblTempUsageDetail_20' ) end [2025-01-09 16:44:41] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:44:41] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:44:41] Production.INFO: ==14427== Releasing lock... [2025-01-09 16:44:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:44:41] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:45:05 [end_date_ymd] => 2025-01-09 16:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:45:05' and `end` < '2025-01-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-01-09 16:45:27] Production.INFO: count ==4341 [2025-01-09 16:45:29] Production.ERROR: pbx CDR StartTime 2025-01-09 13:45:05 - End Time 2025-01-09 16:45:05 [2025-01-09 16:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210888', 'tblTempUsageDetail_20' ) start [2025-01-09 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210888', 'tblTempUsageDetail_20' ) end [2025-01-09 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210888', 'tblTempVendorCDR_20' ) start [2025-01-09 16:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210888', 'tblTempVendorCDR_20' ) end [2025-01-09 16:45:29] Production.INFO: ProcessCDR(1,14210888,1,1,2) [2025-01-09 16:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210888', 'tblTempUsageDetail_20' ) start [2025-01-09 16:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210888', 'tblTempUsageDetail_20' ) end [2025-01-09 16:45:34] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:45:34] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:45:34] Production.INFO: ==14498== Releasing lock... [2025-01-09 16:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:45:34] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:46:04 [end_date_ymd] => 2025-01-09 16:46:04 [RateCDR] => 1 ) [2025-01-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-01-09 13:46:04' and `end` < '2025-01-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-01-09 16:46:23] Production.INFO: count ==4340 [2025-01-09 16:46:25] Production.ERROR: pbx CDR StartTime 2025-01-09 13:46:04 - End Time 2025-01-09 16:46:04 [2025-01-09 16:46:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210893', 'tblTempUsageDetail_20' ) start [2025-01-09 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210893', 'tblTempUsageDetail_20' ) end [2025-01-09 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210893', 'tblTempVendorCDR_20' ) start [2025-01-09 16:46:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210893', 'tblTempVendorCDR_20' ) end [2025-01-09 16:46:25] Production.INFO: ProcessCDR(1,14210893,1,1,2) [2025-01-09 16:46:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210893', 'tblTempUsageDetail_20' ) start [2025-01-09 16:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210893', 'tblTempUsageDetail_20' ) end [2025-01-09 16:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:46:29] Production.INFO: ==14576== Releasing lock... [2025-01-09 16:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:46:29] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:47:05 [end_date_ymd] => 2025-01-09 16:47:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:47:05' and `end` < '2025-01-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-01-09 16:47:19] Production.INFO: count ==4309 [2025-01-09 16:47:21] Production.ERROR: pbx CDR StartTime 2025-01-09 13:47:05 - End Time 2025-01-09 16:47:05 [2025-01-09 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210898', 'tblTempUsageDetail_20' ) start [2025-01-09 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210898', 'tblTempUsageDetail_20' ) end [2025-01-09 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210898', 'tblTempVendorCDR_20' ) start [2025-01-09 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210898', 'tblTempVendorCDR_20' ) end [2025-01-09 16:47:21] Production.INFO: ProcessCDR(1,14210898,1,1,2) [2025-01-09 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210898', 'tblTempUsageDetail_20' ) start [2025-01-09 16:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210898', 'tblTempUsageDetail_20' ) end [2025-01-09 16:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:47:25] Production.INFO: ==14660== Releasing lock... [2025-01-09 16:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:47:25] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:48:05 [end_date_ymd] => 2025-01-09 16:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:48:05' and `end` < '2025-01-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-01-09 16:48:23] Production.INFO: count ==4311 [2025-01-09 16:48:25] Production.ERROR: pbx CDR StartTime 2025-01-09 13:48:05 - End Time 2025-01-09 16:48:05 [2025-01-09 16:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210903', 'tblTempUsageDetail_20' ) start [2025-01-09 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210903', 'tblTempUsageDetail_20' ) end [2025-01-09 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210903', 'tblTempVendorCDR_20' ) start [2025-01-09 16:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210903', 'tblTempVendorCDR_20' ) end [2025-01-09 16:48:25] Production.INFO: ProcessCDR(1,14210903,1,1,2) [2025-01-09 16:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210903', 'tblTempUsageDetail_20' ) start [2025-01-09 16:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210903', 'tblTempUsageDetail_20' ) end [2025-01-09 16:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:48:30] Production.INFO: ==14739== Releasing lock... [2025-01-09 16:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:48:30] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:49:05 [end_date_ymd] => 2025-01-09 16:49:05 [RateCDR] => 1 ) [2025-01-09 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:49:05' and `end` < '2025-01-09 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:49:20] Production.INFO: count ==4307 [2025-01-09 16:49:22] Production.ERROR: pbx CDR StartTime 2025-01-09 13:49:05 - End Time 2025-01-09 16:49:05 [2025-01-09 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210908', 'tblTempUsageDetail_20' ) start [2025-01-09 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210908', 'tblTempUsageDetail_20' ) end [2025-01-09 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210908', 'tblTempVendorCDR_20' ) start [2025-01-09 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210908', 'tblTempVendorCDR_20' ) end [2025-01-09 16:49:22] Production.INFO: ProcessCDR(1,14210908,1,1,2) [2025-01-09 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210908', 'tblTempUsageDetail_20' ) start [2025-01-09 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210908', 'tblTempUsageDetail_20' ) end [2025-01-09 16:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:49:27] Production.INFO: ==14820== Releasing lock... [2025-01-09 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:49:27] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:50:06 [end_date_ymd] => 2025-01-09 16:50:06 [RateCDR] => 1 ) [2025-01-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-01-09 13:50:06' and `end` < '2025-01-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-01-09 16:50:26] Production.INFO: count ==4298 [2025-01-09 16:50:28] Production.ERROR: pbx CDR StartTime 2025-01-09 13:50:06 - End Time 2025-01-09 16:50:06 [2025-01-09 16:50:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210914', 'tblTempUsageDetail_20' ) start [2025-01-09 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210914', 'tblTempUsageDetail_20' ) end [2025-01-09 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210914', 'tblTempVendorCDR_20' ) start [2025-01-09 16:50:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210914', 'tblTempVendorCDR_20' ) end [2025-01-09 16:50:28] Production.INFO: ProcessCDR(1,14210914,1,1,2) [2025-01-09 16:50:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:50:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:50:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:50:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210914', 'tblTempUsageDetail_20' ) start [2025-01-09 16:50:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210914', 'tblTempUsageDetail_20' ) end [2025-01-09 16:50:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:50:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:50:33] Production.INFO: ==14903== Releasing lock... [2025-01-09 16:50:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:50:33] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:51:05 [end_date_ymd] => 2025-01-09 16:51:05 [RateCDR] => 1 ) [2025-01-09 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:51:05' and `end` < '2025-01-09 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:51:23] Production.INFO: count ==4333 [2025-01-09 16:51:24] Production.ERROR: pbx CDR StartTime 2025-01-09 13:51:05 - End Time 2025-01-09 16:51:05 [2025-01-09 16:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210919', 'tblTempUsageDetail_20' ) start [2025-01-09 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210919', 'tblTempUsageDetail_20' ) end [2025-01-09 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210919', 'tblTempVendorCDR_20' ) start [2025-01-09 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210919', 'tblTempVendorCDR_20' ) end [2025-01-09 16:51:24] Production.INFO: ProcessCDR(1,14210919,1,1,2) [2025-01-09 16:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210919', 'tblTempUsageDetail_20' ) start [2025-01-09 16:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210919', 'tblTempUsageDetail_20' ) end [2025-01-09 16:51:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:51:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:51:29] Production.INFO: ==14982== Releasing lock... [2025-01-09 16:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:51:29] Production.INFO: 60.5 MB #Memory Used# [2025-01-09 16:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:52:04 [end_date_ymd] => 2025-01-09 16:52:04 [RateCDR] => 1 ) [2025-01-09 16:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:52:04' and `end` < '2025-01-09 16:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:52:18] Production.INFO: count ==4301 [2025-01-09 16:52:20] Production.ERROR: pbx CDR StartTime 2025-01-09 13:52:04 - End Time 2025-01-09 16:52:04 [2025-01-09 16:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210924', 'tblTempUsageDetail_20' ) start [2025-01-09 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210924', 'tblTempUsageDetail_20' ) end [2025-01-09 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210924', 'tblTempVendorCDR_20' ) start [2025-01-09 16:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210924', 'tblTempVendorCDR_20' ) end [2025-01-09 16:52:20] Production.INFO: ProcessCDR(1,14210924,1,1,2) [2025-01-09 16:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210924', 'tblTempUsageDetail_20' ) start [2025-01-09 16:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210924', 'tblTempUsageDetail_20' ) end [2025-01-09 16:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:52:24] Production.INFO: ==15063== Releasing lock... [2025-01-09 16:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:52:24] Production.INFO: 60.25 MB #Memory Used# [2025-01-09 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:53:05 [end_date_ymd] => 2025-01-09 16:53:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:53:05' and `end` < '2025-01-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-01-09 16:53:19] Production.INFO: count ==4275 [2025-01-09 16:53:21] Production.ERROR: pbx CDR StartTime 2025-01-09 13:53:05 - End Time 2025-01-09 16:53:05 [2025-01-09 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210929', 'tblTempUsageDetail_20' ) start [2025-01-09 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210929', 'tblTempUsageDetail_20' ) end [2025-01-09 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210929', 'tblTempVendorCDR_20' ) start [2025-01-09 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210929', 'tblTempVendorCDR_20' ) end [2025-01-09 16:53:21] Production.INFO: ProcessCDR(1,14210929,1,1,2) [2025-01-09 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210929', 'tblTempUsageDetail_20' ) start [2025-01-09 16:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210929', 'tblTempUsageDetail_20' ) end [2025-01-09 16:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:53:25] Production.INFO: ==15144== Releasing lock... [2025-01-09 16:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:53:25] Production.INFO: 60 MB #Memory Used# [2025-01-09 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:54:05 [end_date_ymd] => 2025-01-09 16:54:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:54:05' and `end` < '2025-01-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-01-09 16:54:18] Production.INFO: count ==4263 [2025-01-09 16:54:20] Production.ERROR: pbx CDR StartTime 2025-01-09 13:54:05 - End Time 2025-01-09 16:54:05 [2025-01-09 16:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210934', 'tblTempUsageDetail_20' ) start [2025-01-09 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210934', 'tblTempUsageDetail_20' ) end [2025-01-09 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210934', 'tblTempVendorCDR_20' ) start [2025-01-09 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210934', 'tblTempVendorCDR_20' ) end [2025-01-09 16:54:20] Production.INFO: ProcessCDR(1,14210934,1,1,2) [2025-01-09 16:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210934', 'tblTempUsageDetail_20' ) start [2025-01-09 16:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210934', 'tblTempUsageDetail_20' ) end [2025-01-09 16:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:54:25] Production.INFO: ==15226== Releasing lock... [2025-01-09 16:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:54:25] Production.INFO: 60 MB #Memory Used# [2025-01-09 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:55:05 [end_date_ymd] => 2025-01-09 16:55:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:55:05' and `end` < '2025-01-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-01-09 16:55:21] Production.INFO: count ==4248 [2025-01-09 16:55:22] Production.ERROR: pbx CDR StartTime 2025-01-09 13:55:05 - End Time 2025-01-09 16:55:05 [2025-01-09 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210939', 'tblTempUsageDetail_20' ) start [2025-01-09 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210939', 'tblTempUsageDetail_20' ) end [2025-01-09 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210939', 'tblTempVendorCDR_20' ) start [2025-01-09 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210939', 'tblTempVendorCDR_20' ) end [2025-01-09 16:55:22] Production.INFO: ProcessCDR(1,14210939,1,1,2) [2025-01-09 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210939', 'tblTempUsageDetail_20' ) start [2025-01-09 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210939', 'tblTempUsageDetail_20' ) end [2025-01-09 16:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:55:27] Production.INFO: ==15310== Releasing lock... [2025-01-09 16:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:55:27] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:56:05 [end_date_ymd] => 2025-01-09 16:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:56:05' and `end` < '2025-01-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-01-09 16:56:20] Production.INFO: count ==4215 [2025-01-09 16:56:21] Production.ERROR: pbx CDR StartTime 2025-01-09 13:56:05 - End Time 2025-01-09 16:56:05 [2025-01-09 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210944', 'tblTempUsageDetail_20' ) start [2025-01-09 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210944', 'tblTempUsageDetail_20' ) end [2025-01-09 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210944', 'tblTempVendorCDR_20' ) start [2025-01-09 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210944', 'tblTempVendorCDR_20' ) end [2025-01-09 16:56:21] Production.INFO: ProcessCDR(1,14210944,1,1,2) [2025-01-09 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210944', 'tblTempUsageDetail_20' ) start [2025-01-09 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210944', 'tblTempUsageDetail_20' ) end [2025-01-09 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:56:26] Production.INFO: ==15395== Releasing lock... [2025-01-09 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:56:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-09 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:57:05 [end_date_ymd] => 2025-01-09 16:57:05 [RateCDR] => 1 ) [2025-01-09 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 13:57:05' and `end` < '2025-01-09 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 16:57:22] Production.INFO: count ==4198 [2025-01-09 16:57:23] Production.ERROR: pbx CDR StartTime 2025-01-09 13:57:05 - End Time 2025-01-09 16:57:05 [2025-01-09 16:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210949', 'tblTempUsageDetail_20' ) start [2025-01-09 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210949', 'tblTempUsageDetail_20' ) end [2025-01-09 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210949', 'tblTempVendorCDR_20' ) start [2025-01-09 16:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210949', 'tblTempVendorCDR_20' ) end [2025-01-09 16:57:23] Production.INFO: ProcessCDR(1,14210949,1,1,2) [2025-01-09 16:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:57:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:57:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210949', 'tblTempUsageDetail_20' ) start [2025-01-09 16:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210949', 'tblTempUsageDetail_20' ) end [2025-01-09 16:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:57:28] Production.INFO: ==15471== Releasing lock... [2025-01-09 16:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:57:28] Production.INFO: 59.5 MB #Memory Used# [2025-01-09 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:58:05 [end_date_ymd] => 2025-01-09 16:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:58:05' and `end` < '2025-01-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-01-09 16:58:20] Production.INFO: count ==4184 [2025-01-09 16:58:21] Production.ERROR: pbx CDR StartTime 2025-01-09 13:58:05 - End Time 2025-01-09 16:58:05 [2025-01-09 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210954', 'tblTempUsageDetail_20' ) start [2025-01-09 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210954', 'tblTempUsageDetail_20' ) end [2025-01-09 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210954', 'tblTempVendorCDR_20' ) start [2025-01-09 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210954', 'tblTempVendorCDR_20' ) end [2025-01-09 16:58:22] Production.INFO: ProcessCDR(1,14210954,1,1,2) [2025-01-09 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210954', 'tblTempUsageDetail_20' ) start [2025-01-09 16:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210954', 'tblTempUsageDetail_20' ) end [2025-01-09 16:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:58:26] Production.INFO: ==15588== Releasing lock... [2025-01-09 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:58:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-09 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 13:59:05 [end_date_ymd] => 2025-01-09 16:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 13:59:05' and `end` < '2025-01-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-01-09 16:59:19] Production.INFO: count ==4183 [2025-01-09 16:59:21] Production.ERROR: pbx CDR StartTime 2025-01-09 13:59:05 - End Time 2025-01-09 16:59:05 [2025-01-09 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210959', 'tblTempUsageDetail_20' ) start [2025-01-09 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210959', 'tblTempUsageDetail_20' ) end [2025-01-09 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210959', 'tblTempVendorCDR_20' ) start [2025-01-09 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210959', 'tblTempVendorCDR_20' ) end [2025-01-09 16:59:21] Production.INFO: ProcessCDR(1,14210959,1,1,2) [2025-01-09 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210959', 'tblTempUsageDetail_20' ) start [2025-01-09 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210959', 'tblTempUsageDetail_20' ) end [2025-01-09 16:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 16:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 16:59:25] Production.INFO: ==15667== Releasing lock... [2025-01-09 16:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 16:59:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-09 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:00:05 [end_date_ymd] => 2025-01-09 17:00:05 [RateCDR] => 1 ) [2025-01-09 17:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:00:05' and `end` < '2025-01-09 17:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:00:19] Production.INFO: count ==4178 [2025-01-09 17:00:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:00:05 - End Time 2025-01-09 17:00:05 [2025-01-09 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210965', 'tblTempUsageDetail_20' ) start [2025-01-09 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210965', 'tblTempUsageDetail_20' ) end [2025-01-09 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210965', 'tblTempVendorCDR_20' ) start [2025-01-09 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210965', 'tblTempVendorCDR_20' ) end [2025-01-09 17:00:20] Production.INFO: ProcessCDR(1,14210965,1,1,2) [2025-01-09 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210965', 'tblTempUsageDetail_20' ) start [2025-01-09 17:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210965', 'tblTempUsageDetail_20' ) end [2025-01-09 17:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:00:23] Production.INFO: ==15757== Releasing lock... [2025-01-09 17:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:00:23] Production.INFO: 59.25 MB #Memory Used# [2025-01-09 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:01:05 [end_date_ymd] => 2025-01-09 17:01:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:01:05' and `end` < '2025-01-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-01-09 17:01:23] Production.INFO: count ==4238 [2025-01-09 17:01:24] Production.ERROR: pbx CDR StartTime 2025-01-09 14:01:05 - End Time 2025-01-09 17:01:05 [2025-01-09 17:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210970', 'tblTempUsageDetail_20' ) start [2025-01-09 17:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210970', 'tblTempUsageDetail_20' ) end [2025-01-09 17:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210970', 'tblTempVendorCDR_20' ) start [2025-01-09 17:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210970', 'tblTempVendorCDR_20' ) end [2025-01-09 17:01:24] Production.INFO: ProcessCDR(1,14210970,1,1,2) [2025-01-09 17:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210970', 'tblTempUsageDetail_20' ) start [2025-01-09 17:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210970', 'tblTempUsageDetail_20' ) end [2025-01-09 17:01:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:01:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:01:29] Production.INFO: ==15859== Releasing lock... [2025-01-09 17:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:01:29] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:02:05 [end_date_ymd] => 2025-01-09 17:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:02:05' and `end` < '2025-01-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-01-09 17:02:19] Production.INFO: count ==4215 [2025-01-09 17:02:21] Production.ERROR: pbx CDR StartTime 2025-01-09 14:02:05 - End Time 2025-01-09 17:02:05 [2025-01-09 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210975', 'tblTempUsageDetail_20' ) start [2025-01-09 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210975', 'tblTempUsageDetail_20' ) end [2025-01-09 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210975', 'tblTempVendorCDR_20' ) start [2025-01-09 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210975', 'tblTempVendorCDR_20' ) end [2025-01-09 17:02:21] Production.INFO: ProcessCDR(1,14210975,1,1,2) [2025-01-09 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210975', 'tblTempUsageDetail_20' ) start [2025-01-09 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210975', 'tblTempUsageDetail_20' ) end [2025-01-09 17:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:02:25] Production.INFO: ==15948== Releasing lock... [2025-01-09 17:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:02:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-09 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:03:05 [end_date_ymd] => 2025-01-09 17:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:03:05' and `end` < '2025-01-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-01-09 17:03:22] Production.INFO: count ==4212 [2025-01-09 17:03:24] Production.ERROR: pbx CDR StartTime 2025-01-09 14:03:05 - End Time 2025-01-09 17:03:05 [2025-01-09 17:03:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210980', 'tblTempUsageDetail_20' ) start [2025-01-09 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210980', 'tblTempUsageDetail_20' ) end [2025-01-09 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210980', 'tblTempVendorCDR_20' ) start [2025-01-09 17:03:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210980', 'tblTempVendorCDR_20' ) end [2025-01-09 17:03:24] Production.INFO: ProcessCDR(1,14210980,1,1,2) [2025-01-09 17:03:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210980', 'tblTempUsageDetail_20' ) start [2025-01-09 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210980', 'tblTempUsageDetail_20' ) end [2025-01-09 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:03:27] Production.INFO: ==16031== Releasing lock... [2025-01-09 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:03:27] Production.INFO: 59.5 MB #Memory Used# [2025-01-09 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:04:05 [end_date_ymd] => 2025-01-09 17:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:04:05' and `end` < '2025-01-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-01-09 17:04:20] Production.INFO: count ==4214 [2025-01-09 17:04:21] Production.ERROR: pbx CDR StartTime 2025-01-09 14:04:05 - End Time 2025-01-09 17:04:05 [2025-01-09 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210985', 'tblTempUsageDetail_20' ) start [2025-01-09 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210985', 'tblTempUsageDetail_20' ) end [2025-01-09 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210985', 'tblTempVendorCDR_20' ) start [2025-01-09 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210985', 'tblTempVendorCDR_20' ) end [2025-01-09 17:04:21] Production.INFO: ProcessCDR(1,14210985,1,1,2) [2025-01-09 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210985', 'tblTempUsageDetail_20' ) start [2025-01-09 17:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210985', 'tblTempUsageDetail_20' ) end [2025-01-09 17:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:04:25] Production.INFO: ==16118== Releasing lock... [2025-01-09 17:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:04:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-09 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:05:04 [end_date_ymd] => 2025-01-09 17:05:04 [RateCDR] => 1 ) [2025-01-09 17:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:05:04' and `end` < '2025-01-09 17:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:05:18] Production.INFO: count ==4206 [2025-01-09 17:05:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:05:04 - End Time 2025-01-09 17:05:04 [2025-01-09 17:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210990', 'tblTempUsageDetail_20' ) start [2025-01-09 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210990', 'tblTempUsageDetail_20' ) end [2025-01-09 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210990', 'tblTempVendorCDR_20' ) start [2025-01-09 17:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210990', 'tblTempVendorCDR_20' ) end [2025-01-09 17:05:20] Production.INFO: ProcessCDR(1,14210990,1,1,2) [2025-01-09 17:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210990', 'tblTempUsageDetail_20' ) start [2025-01-09 17:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210990', 'tblTempUsageDetail_20' ) end [2025-01-09 17:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:05:24] Production.INFO: ==16202== Releasing lock... [2025-01-09 17:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:05:24] Production.INFO: 59.5 MB #Memory Used# [2025-01-09 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:06:05 [end_date_ymd] => 2025-01-09 17:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:06:05' and `end` < '2025-01-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-01-09 17:06:23] Production.INFO: count ==4197 [2025-01-09 17:06:24] Production.ERROR: pbx CDR StartTime 2025-01-09 14:06:05 - End Time 2025-01-09 17:06:05 [2025-01-09 17:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210995', 'tblTempUsageDetail_20' ) start [2025-01-09 17:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14210995', 'tblTempUsageDetail_20' ) end [2025-01-09 17:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210995', 'tblTempVendorCDR_20' ) start [2025-01-09 17:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14210995', 'tblTempVendorCDR_20' ) end [2025-01-09 17:06:25] Production.INFO: ProcessCDR(1,14210995,1,1,2) [2025-01-09 17:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14210995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14210995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14210995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14210995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210995', 'tblTempUsageDetail_20' ) start [2025-01-09 17:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14210995', 'tblTempUsageDetail_20' ) end [2025-01-09 17:06:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:06:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:06:28] Production.INFO: ==16286== Releasing lock... [2025-01-09 17:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:06:28] Production.INFO: 59.5 MB #Memory Used# [2025-01-09 17:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:07:04 [end_date_ymd] => 2025-01-09 17:07:04 [RateCDR] => 1 ) [2025-01-09 17:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:07:04' and `end` < '2025-01-09 17:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:07:18] Production.INFO: count ==4187 [2025-01-09 17:07:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:07:04 - End Time 2025-01-09 17:07:04 [2025-01-09 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211000', 'tblTempUsageDetail_20' ) start [2025-01-09 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211000', 'tblTempUsageDetail_20' ) end [2025-01-09 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211000', 'tblTempVendorCDR_20' ) start [2025-01-09 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211000', 'tblTempVendorCDR_20' ) end [2025-01-09 17:07:20] Production.INFO: ProcessCDR(1,14211000,1,1,2) [2025-01-09 17:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211000', 'tblTempUsageDetail_20' ) start [2025-01-09 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211000', 'tblTempUsageDetail_20' ) end [2025-01-09 17:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:07:25] Production.INFO: ==16370== Releasing lock... [2025-01-09 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:07:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-09 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:08:05 [end_date_ymd] => 2025-01-09 17:08:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:08:05' and `end` < '2025-01-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-01-09 17:08:19] Production.INFO: count ==4167 [2025-01-09 17:08:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:08:05 - End Time 2025-01-09 17:08:05 [2025-01-09 17:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211005', 'tblTempUsageDetail_20' ) start [2025-01-09 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211005', 'tblTempUsageDetail_20' ) end [2025-01-09 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211005', 'tblTempVendorCDR_20' ) start [2025-01-09 17:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211005', 'tblTempVendorCDR_20' ) end [2025-01-09 17:08:20] Production.INFO: ProcessCDR(1,14211005,1,1,2) [2025-01-09 17:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211005', 'tblTempUsageDetail_20' ) start [2025-01-09 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211005', 'tblTempUsageDetail_20' ) end [2025-01-09 17:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:08:25] Production.INFO: ==16456== Releasing lock... [2025-01-09 17:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:08:25] Production.INFO: 59.5 MB #Memory Used# [2025-01-09 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:09:05 [end_date_ymd] => 2025-01-09 17:09:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:09:05' and `end` < '2025-01-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-01-09 17:09:18] Production.INFO: count ==4159 [2025-01-09 17:09:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:09:05 - End Time 2025-01-09 17:09:05 [2025-01-09 17:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211010', 'tblTempUsageDetail_20' ) start [2025-01-09 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211010', 'tblTempUsageDetail_20' ) end [2025-01-09 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211010', 'tblTempVendorCDR_20' ) start [2025-01-09 17:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211010', 'tblTempVendorCDR_20' ) end [2025-01-09 17:09:20] Production.INFO: ProcessCDR(1,14211010,1,1,2) [2025-01-09 17:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211010', 'tblTempUsageDetail_20' ) start [2025-01-09 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211010', 'tblTempUsageDetail_20' ) end [2025-01-09 17:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:09:23] Production.INFO: ==16543== Releasing lock... [2025-01-09 17:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:09:23] Production.INFO: 59.25 MB #Memory Used# [2025-01-09 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:10:05 [end_date_ymd] => 2025-01-09 17:10:05 [RateCDR] => 1 ) [2025-01-09 17:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:10:05' and `end` < '2025-01-09 17:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:10:30] Production.INFO: count ==4168 [2025-01-09 17:10:31] Production.ERROR: pbx CDR StartTime 2025-01-09 14:10:05 - End Time 2025-01-09 17:10:05 [2025-01-09 17:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211015', 'tblTempUsageDetail_20' ) start [2025-01-09 17:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211015', 'tblTempUsageDetail_20' ) end [2025-01-09 17:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211015', 'tblTempVendorCDR_20' ) start [2025-01-09 17:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211015', 'tblTempVendorCDR_20' ) end [2025-01-09 17:10:31] Production.INFO: ProcessCDR(1,14211015,1,1,2) [2025-01-09 17:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:10:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:10:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:10:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211015', 'tblTempUsageDetail_20' ) start [2025-01-09 17:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211015', 'tblTempUsageDetail_20' ) end [2025-01-09 17:10:36] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:10:36] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:10:36] Production.INFO: ==16631== Releasing lock... [2025-01-09 17:10:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:10:36] Production.INFO: 59.25 MB #Memory Used# [2025-01-09 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:11:05 [end_date_ymd] => 2025-01-09 17:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:11:05' and `end` < '2025-01-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-01-09 17:11:24] Production.INFO: count ==4241 [2025-01-09 17:11:26] Production.ERROR: pbx CDR StartTime 2025-01-09 14:11:05 - End Time 2025-01-09 17:11:05 [2025-01-09 17:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211021', 'tblTempUsageDetail_20' ) start [2025-01-09 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211021', 'tblTempUsageDetail_20' ) end [2025-01-09 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211021', 'tblTempVendorCDR_20' ) start [2025-01-09 17:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211021', 'tblTempVendorCDR_20' ) end [2025-01-09 17:11:26] Production.INFO: ProcessCDR(1,14211021,1,1,2) [2025-01-09 17:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211021', 'tblTempUsageDetail_20' ) start [2025-01-09 17:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211021', 'tblTempUsageDetail_20' ) end [2025-01-09 17:11:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:11:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:11:30] Production.INFO: ==16710== Releasing lock... [2025-01-09 17:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:11:30] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:12:05 [end_date_ymd] => 2025-01-09 17:12:05 [RateCDR] => 1 ) [2025-01-09 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:12:05' and `end` < '2025-01-09 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:12:24] Production.INFO: count ==4247 [2025-01-09 17:12:26] Production.ERROR: pbx CDR StartTime 2025-01-09 14:12:05 - End Time 2025-01-09 17:12:05 [2025-01-09 17:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211026', 'tblTempUsageDetail_20' ) start [2025-01-09 17:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211026', 'tblTempUsageDetail_20' ) end [2025-01-09 17:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211026', 'tblTempVendorCDR_20' ) start [2025-01-09 17:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211026', 'tblTempVendorCDR_20' ) end [2025-01-09 17:12:26] Production.INFO: ProcessCDR(1,14211026,1,1,2) [2025-01-09 17:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211026', 'tblTempUsageDetail_20' ) start [2025-01-09 17:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211026', 'tblTempUsageDetail_20' ) end [2025-01-09 17:12:30] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:12:30] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:12:30] Production.INFO: ==16784== Releasing lock... [2025-01-09 17:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:12:30] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 17:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:13:04 [end_date_ymd] => 2025-01-09 17:13:04 [RateCDR] => 1 ) [2025-01-09 17:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:13:04' and `end` < '2025-01-09 17:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:13:18] Production.INFO: count ==4221 [2025-01-09 17:13:19] Production.ERROR: pbx CDR StartTime 2025-01-09 14:13:04 - End Time 2025-01-09 17:13:04 [2025-01-09 17:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211031', 'tblTempUsageDetail_20' ) start [2025-01-09 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211031', 'tblTempUsageDetail_20' ) end [2025-01-09 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211031', 'tblTempVendorCDR_20' ) start [2025-01-09 17:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211031', 'tblTempVendorCDR_20' ) end [2025-01-09 17:13:19] Production.INFO: ProcessCDR(1,14211031,1,1,2) [2025-01-09 17:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211031', 'tblTempUsageDetail_20' ) start [2025-01-09 17:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211031', 'tblTempUsageDetail_20' ) end [2025-01-09 17:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:13:24] Production.INFO: ==16863== Releasing lock... [2025-01-09 17:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:13:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-09 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:14:05 [end_date_ymd] => 2025-01-09 17:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:14:05' and `end` < '2025-01-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-01-09 17:14:20] Production.INFO: count ==4219 [2025-01-09 17:14:22] Production.ERROR: pbx CDR StartTime 2025-01-09 14:14:05 - End Time 2025-01-09 17:14:05 [2025-01-09 17:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211036', 'tblTempUsageDetail_20' ) start [2025-01-09 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211036', 'tblTempUsageDetail_20' ) end [2025-01-09 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211036', 'tblTempVendorCDR_20' ) start [2025-01-09 17:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211036', 'tblTempVendorCDR_20' ) end [2025-01-09 17:14:22] Production.INFO: ProcessCDR(1,14211036,1,1,2) [2025-01-09 17:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211036', 'tblTempUsageDetail_20' ) start [2025-01-09 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211036', 'tblTempUsageDetail_20' ) end [2025-01-09 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:14:26] Production.INFO: ==16979== Releasing lock... [2025-01-09 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:14:26] Production.INFO: 59.5 MB #Memory Used# [2025-01-09 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:15:05 [end_date_ymd] => 2025-01-09 17:15:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:15:05' and `end` < '2025-01-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-01-09 17:15:20] Production.INFO: count ==4162 [2025-01-09 17:15:22] Production.ERROR: pbx CDR StartTime 2025-01-09 14:15:05 - End Time 2025-01-09 17:15:05 [2025-01-09 17:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211041', 'tblTempUsageDetail_20' ) start [2025-01-09 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211041', 'tblTempUsageDetail_20' ) end [2025-01-09 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211041', 'tblTempVendorCDR_20' ) start [2025-01-09 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211041', 'tblTempVendorCDR_20' ) end [2025-01-09 17:15:22] Production.INFO: ProcessCDR(1,14211041,1,1,2) [2025-01-09 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211041', 'tblTempUsageDetail_20' ) start [2025-01-09 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211041', 'tblTempUsageDetail_20' ) end [2025-01-09 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:15:26] Production.INFO: ==17054== Releasing lock... [2025-01-09 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:15:26] Production.INFO: 59.25 MB #Memory Used# [2025-01-09 17:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:16:04 [end_date_ymd] => 2025-01-09 17:16:04 [RateCDR] => 1 ) [2025-01-09 17:16:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:16:04' and `end` < '2025-01-09 17:16:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:16:23] Production.INFO: count ==4139 [2025-01-09 17:16:24] Production.ERROR: pbx CDR StartTime 2025-01-09 14:16:04 - End Time 2025-01-09 17:16:04 [2025-01-09 17:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211046', 'tblTempUsageDetail_20' ) start [2025-01-09 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211046', 'tblTempUsageDetail_20' ) end [2025-01-09 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211046', 'tblTempVendorCDR_20' ) start [2025-01-09 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211046', 'tblTempVendorCDR_20' ) end [2025-01-09 17:16:24] Production.INFO: ProcessCDR(1,14211046,1,1,2) [2025-01-09 17:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211046', 'tblTempUsageDetail_20' ) start [2025-01-09 17:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211046', 'tblTempUsageDetail_20' ) end [2025-01-09 17:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:16:29] Production.INFO: ==17126== Releasing lock... [2025-01-09 17:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:16:29] Production.INFO: 59 MB #Memory Used# [2025-01-09 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:17:05 [end_date_ymd] => 2025-01-09 17:17:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:17:05' and `end` < '2025-01-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-01-09 17:17:20] Production.INFO: count ==4128 [2025-01-09 17:17:21] Production.ERROR: pbx CDR StartTime 2025-01-09 14:17:05 - End Time 2025-01-09 17:17:05 [2025-01-09 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211051', 'tblTempUsageDetail_20' ) start [2025-01-09 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211051', 'tblTempUsageDetail_20' ) end [2025-01-09 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211051', 'tblTempVendorCDR_20' ) start [2025-01-09 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211051', 'tblTempVendorCDR_20' ) end [2025-01-09 17:17:21] Production.INFO: ProcessCDR(1,14211051,1,1,2) [2025-01-09 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211051', 'tblTempUsageDetail_20' ) start [2025-01-09 17:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211051', 'tblTempUsageDetail_20' ) end [2025-01-09 17:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:17:24] Production.INFO: ==17198== Releasing lock... [2025-01-09 17:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:17:24] Production.INFO: 59 MB #Memory Used# [2025-01-09 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:18:05 [end_date_ymd] => 2025-01-09 17:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:18:05' and `end` < '2025-01-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-01-09 17:18:19] Production.INFO: count ==4107 [2025-01-09 17:18:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:18:05 - End Time 2025-01-09 17:18:05 [2025-01-09 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211056', 'tblTempUsageDetail_20' ) start [2025-01-09 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211056', 'tblTempUsageDetail_20' ) end [2025-01-09 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211056', 'tblTempVendorCDR_20' ) start [2025-01-09 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211056', 'tblTempVendorCDR_20' ) end [2025-01-09 17:18:20] Production.INFO: ProcessCDR(1,14211056,1,1,2) [2025-01-09 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211056', 'tblTempUsageDetail_20' ) start [2025-01-09 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211056', 'tblTempUsageDetail_20' ) end [2025-01-09 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:18:25] Production.INFO: ==17270== Releasing lock... [2025-01-09 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:18:25] Production.INFO: 59 MB #Memory Used# [2025-01-09 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:19:05 [end_date_ymd] => 2025-01-09 17:19:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:19:05' and `end` < '2025-01-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-01-09 17:19:20] Production.INFO: count ==4093 [2025-01-09 17:19:21] Production.ERROR: pbx CDR StartTime 2025-01-09 14:19:05 - End Time 2025-01-09 17:19:05 [2025-01-09 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211061', 'tblTempUsageDetail_20' ) start [2025-01-09 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211061', 'tblTempUsageDetail_20' ) end [2025-01-09 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211061', 'tblTempVendorCDR_20' ) start [2025-01-09 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211061', 'tblTempVendorCDR_20' ) end [2025-01-09 17:19:21] Production.INFO: ProcessCDR(1,14211061,1,1,2) [2025-01-09 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211061', 'tblTempUsageDetail_20' ) start [2025-01-09 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211061', 'tblTempUsageDetail_20' ) end [2025-01-09 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:19:26] Production.INFO: ==17342== Releasing lock... [2025-01-09 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:19:26] Production.INFO: 58.5 MB #Memory Used# [2025-01-09 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:20:05 [end_date_ymd] => 2025-01-09 17:20:05 [RateCDR] => 1 ) [2025-01-09 17:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:20:05' and `end` < '2025-01-09 17:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:20:23] Production.INFO: count ==4095 [2025-01-09 17:20:25] Production.ERROR: pbx CDR StartTime 2025-01-09 14:20:05 - End Time 2025-01-09 17:20:05 [2025-01-09 17:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211067', 'tblTempUsageDetail_20' ) start [2025-01-09 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211067', 'tblTempUsageDetail_20' ) end [2025-01-09 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211067', 'tblTempVendorCDR_20' ) start [2025-01-09 17:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211067', 'tblTempVendorCDR_20' ) end [2025-01-09 17:20:25] Production.INFO: ProcessCDR(1,14211067,1,1,2) [2025-01-09 17:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211067', 'tblTempUsageDetail_20' ) start [2025-01-09 17:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211067', 'tblTempUsageDetail_20' ) end [2025-01-09 17:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:20:30] Production.INFO: ==17416== Releasing lock... [2025-01-09 17:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:20:30] Production.INFO: 58.5 MB #Memory Used# [2025-01-09 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:21:05 [end_date_ymd] => 2025-01-09 17:21:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:21:05' and `end` < '2025-01-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-01-09 17:21:18] Production.INFO: count ==4137 [2025-01-09 17:21:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:21:05 - End Time 2025-01-09 17:21:05 [2025-01-09 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211072', 'tblTempUsageDetail_20' ) start [2025-01-09 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211072', 'tblTempUsageDetail_20' ) end [2025-01-09 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211072', 'tblTempVendorCDR_20' ) start [2025-01-09 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211072', 'tblTempVendorCDR_20' ) end [2025-01-09 17:21:20] Production.INFO: ProcessCDR(1,14211072,1,1,2) [2025-01-09 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211072', 'tblTempUsageDetail_20' ) start [2025-01-09 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211072', 'tblTempUsageDetail_20' ) end [2025-01-09 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:21:25] Production.INFO: ==17495== Releasing lock... [2025-01-09 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:21:25] Production.INFO: 59 MB #Memory Used# [2025-01-09 17:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:22:04 [end_date_ymd] => 2025-01-09 17:22:04 [RateCDR] => 1 ) [2025-01-09 17:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:22:04' and `end` < '2025-01-09 17:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:22:18] Production.INFO: count ==4113 [2025-01-09 17:22:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:22:04 - End Time 2025-01-09 17:22:04 [2025-01-09 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211077', 'tblTempUsageDetail_20' ) start [2025-01-09 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211077', 'tblTempUsageDetail_20' ) end [2025-01-09 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211077', 'tblTempVendorCDR_20' ) start [2025-01-09 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211077', 'tblTempVendorCDR_20' ) end [2025-01-09 17:22:20] Production.INFO: ProcessCDR(1,14211077,1,1,2) [2025-01-09 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211077', 'tblTempUsageDetail_20' ) start [2025-01-09 17:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211077', 'tblTempUsageDetail_20' ) end [2025-01-09 17:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:22:24] Production.INFO: ==17567== Releasing lock... [2025-01-09 17:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:22:24] Production.INFO: 58.75 MB #Memory Used# [2025-01-09 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:23:05 [end_date_ymd] => 2025-01-09 17:23:05 [RateCDR] => 1 ) [2025-01-09 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:23:05' and `end` < '2025-01-09 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:23:18] Production.INFO: count ==4102 [2025-01-09 17:23:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:23:05 - End Time 2025-01-09 17:23:05 [2025-01-09 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211082', 'tblTempUsageDetail_20' ) start [2025-01-09 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211082', 'tblTempUsageDetail_20' ) end [2025-01-09 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211082', 'tblTempVendorCDR_20' ) start [2025-01-09 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211082', 'tblTempVendorCDR_20' ) end [2025-01-09 17:23:20] Production.INFO: ProcessCDR(1,14211082,1,1,2) [2025-01-09 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211082', 'tblTempUsageDetail_20' ) start [2025-01-09 17:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211082', 'tblTempUsageDetail_20' ) end [2025-01-09 17:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:23:24] Production.INFO: ==17643== Releasing lock... [2025-01-09 17:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:23:24] Production.INFO: 58.75 MB #Memory Used# [2025-01-09 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:24:05 [end_date_ymd] => 2025-01-09 17:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:24:05' and `end` < '2025-01-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-01-09 17:24:28] Production.INFO: count ==4103 [2025-01-09 17:24:30] Production.ERROR: pbx CDR StartTime 2025-01-09 14:24:05 - End Time 2025-01-09 17:24:05 [2025-01-09 17:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211087', 'tblTempUsageDetail_20' ) start [2025-01-09 17:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211087', 'tblTempUsageDetail_20' ) end [2025-01-09 17:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211087', 'tblTempVendorCDR_20' ) start [2025-01-09 17:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211087', 'tblTempVendorCDR_20' ) end [2025-01-09 17:24:30] Production.INFO: ProcessCDR(1,14211087,1,1,2) [2025-01-09 17:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:24:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:24:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211087', 'tblTempUsageDetail_20' ) start [2025-01-09 17:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211087', 'tblTempUsageDetail_20' ) end [2025-01-09 17:24:35] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:24:35] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:24:35] Production.INFO: ==17719== Releasing lock... [2025-01-09 17:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:24:35] Production.INFO: 58.75 MB #Memory Used# [2025-01-09 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:25:04 [end_date_ymd] => 2025-01-09 17:25:04 [RateCDR] => 1 ) [2025-01-09 17:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:25:04' and `end` < '2025-01-09 17:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:25:21] Production.INFO: count ==4070 [2025-01-09 17:25:23] Production.ERROR: pbx CDR StartTime 2025-01-09 14:25:04 - End Time 2025-01-09 17:25:04 [2025-01-09 17:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211092', 'tblTempUsageDetail_20' ) start [2025-01-09 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211092', 'tblTempUsageDetail_20' ) end [2025-01-09 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211092', 'tblTempVendorCDR_20' ) start [2025-01-09 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211092', 'tblTempVendorCDR_20' ) end [2025-01-09 17:25:23] Production.INFO: ProcessCDR(1,14211092,1,1,2) [2025-01-09 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211092', 'tblTempUsageDetail_20' ) start [2025-01-09 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211092', 'tblTempUsageDetail_20' ) end [2025-01-09 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:25:35] Production.INFO: ==17791== Releasing lock... [2025-01-09 17:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:25:35] Production.INFO: 58.5 MB #Memory Used# [2025-01-09 17:26:13] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:26:13 [end_date_ymd] => 2025-01-09 17:26:13 [RateCDR] => 1 ) [2025-01-09 17:26:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:26:13' and `end` < '2025-01-09 17:26:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:26:27] Production.INFO: count ==4046 [2025-01-09 17:27:21] Production.ERROR: pbx CDR StartTime 2025-01-09 14:26:13 - End Time 2025-01-09 17:26:13 [2025-01-09 17:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211097', 'tblTempUsageDetail_20' ) start [2025-01-09 17:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211097', 'tblTempUsageDetail_20' ) end [2025-01-09 17:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211097', 'tblTempVendorCDR_20' ) start [2025-01-09 17:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211097', 'tblTempVendorCDR_20' ) end [2025-01-09 17:27:26] Production.INFO: ProcessCDR(1,14211097,1,1,2) [2025-01-09 17:27:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:27:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:27:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211097', 'tblTempUsageDetail_20' ) start [2025-01-09 17:27:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211097', 'tblTempUsageDetail_20' ) end [2025-01-09 17:27:50] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:27:50] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:27:54] Production.INFO: ==17862== Releasing lock... [2025-01-09 17:27:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:27:54] Production.INFO: 58.25 MB #Memory Used# [2025-01-09 17:28:13] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:28:13 [end_date_ymd] => 2025-01-09 17:28:13 [RateCDR] => 1 ) [2025-01-09 17:28:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:28:13' and `end` < '2025-01-09 17:28:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:28:29] Production.INFO: count ==4031 [2025-01-09 17:29:01] Production.ERROR: pbx CDR StartTime 2025-01-09 14:28:13 - End Time 2025-01-09 17:28:13 [2025-01-09 17:29:01] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:29:01] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211105', 'tblTempUsageDetail_20' ) start [2025-01-09 17:29:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211105', 'tblTempUsageDetail_20' ) end [2025-01-09 17:29:03] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211105', 'tblTempVendorCDR_20' ) start [2025-01-09 17:29:04] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211105', 'tblTempVendorCDR_20' ) end [2025-01-09 17:29:04] Production.INFO: ProcessCDR(1,14211105,1,1,2) [2025-01-09 17:29:04] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:29:15] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:29:15] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:29:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211105', 'tblTempUsageDetail_20' ) start [2025-01-09 17:29:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211105', 'tblTempUsageDetail_20' ) end [2025-01-09 17:29:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:29:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:29:28] Production.INFO: ==17990== Releasing lock... [2025-01-09 17:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:29:28] Production.INFO: 58 MB #Memory Used# [2025-01-09 17:30:22] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:30:20 [end_date_ymd] => 2025-01-09 17:30:20 [RateCDR] => 1 ) [2025-01-09 17:30:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:30:20' and `end` < '2025-01-09 17:30:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:30:35] Production.INFO: count ==4039 [2025-01-09 17:30:49] Production.ERROR: pbx CDR StartTime 2025-01-09 14:30:20 - End Time 2025-01-09 17:30:20 [2025-01-09 17:30:49] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:30:49] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211114', 'tblTempUsageDetail_20' ) start [2025-01-09 17:30:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211114', 'tblTempUsageDetail_20' ) end [2025-01-09 17:30:51] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211114', 'tblTempVendorCDR_20' ) start [2025-01-09 17:30:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211114', 'tblTempVendorCDR_20' ) end [2025-01-09 17:30:53] Production.INFO: ProcessCDR(1,14211114,1,1,2) [2025-01-09 17:30:53] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:30:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:30:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:31:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:31:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211114', 'tblTempUsageDetail_20' ) start [2025-01-09 17:31:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211114', 'tblTempUsageDetail_20' ) end [2025-01-09 17:31:16] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:31:16] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:31:16] Production.INFO: ==18223== Releasing lock... [2025-01-09 17:31:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:31:16] Production.INFO: 58.25 MB #Memory Used# [2025-01-09 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:32:05 [end_date_ymd] => 2025-01-09 17:32:05 [RateCDR] => 1 ) [2025-01-09 17:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:32:05' and `end` < '2025-01-09 17:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:32:18] Production.INFO: count ==4037 [2025-01-09 17:32:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:32:05 - End Time 2025-01-09 17:32:05 [2025-01-09 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211123', 'tblTempUsageDetail_20' ) start [2025-01-09 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211123', 'tblTempUsageDetail_20' ) end [2025-01-09 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211123', 'tblTempVendorCDR_20' ) start [2025-01-09 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211123', 'tblTempVendorCDR_20' ) end [2025-01-09 17:32:20] Production.INFO: ProcessCDR(1,14211123,1,1,2) [2025-01-09 17:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211123', 'tblTempUsageDetail_20' ) start [2025-01-09 17:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211123', 'tblTempUsageDetail_20' ) end [2025-01-09 17:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:32:25] Production.INFO: ==18453== Releasing lock... [2025-01-09 17:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:32:25] Production.INFO: 58.5 MB #Memory Used# [2025-01-09 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:33:05 [end_date_ymd] => 2025-01-09 17:33:05 [RateCDR] => 1 ) [2025-01-09 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:33:05' and `end` < '2025-01-09 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:33:20] Production.INFO: count ==4024 [2025-01-09 17:33:21] Production.ERROR: pbx CDR StartTime 2025-01-09 14:33:05 - End Time 2025-01-09 17:33:05 [2025-01-09 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211128', 'tblTempUsageDetail_20' ) start [2025-01-09 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211128', 'tblTempUsageDetail_20' ) end [2025-01-09 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211128', 'tblTempVendorCDR_20' ) start [2025-01-09 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211128', 'tblTempVendorCDR_20' ) end [2025-01-09 17:33:21] Production.INFO: ProcessCDR(1,14211128,1,1,2) [2025-01-09 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211128', 'tblTempUsageDetail_20' ) start [2025-01-09 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211128', 'tblTempUsageDetail_20' ) end [2025-01-09 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:33:26] Production.INFO: ==18568== Releasing lock... [2025-01-09 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:33:26] Production.INFO: 58.25 MB #Memory Used# [2025-01-09 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:34:05 [end_date_ymd] => 2025-01-09 17:34:05 [RateCDR] => 1 ) [2025-01-09 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:34:05' and `end` < '2025-01-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-01-09 17:34:21] Production.INFO: count ==4024 [2025-01-09 17:34:23] Production.ERROR: pbx CDR StartTime 2025-01-09 14:34:05 - End Time 2025-01-09 17:34:05 [2025-01-09 17:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211133', 'tblTempUsageDetail_20' ) start [2025-01-09 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211133', 'tblTempUsageDetail_20' ) end [2025-01-09 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211133', 'tblTempVendorCDR_20' ) start [2025-01-09 17:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211133', 'tblTempVendorCDR_20' ) end [2025-01-09 17:34:23] Production.INFO: ProcessCDR(1,14211133,1,1,2) [2025-01-09 17:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211133', 'tblTempUsageDetail_20' ) start [2025-01-09 17:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211133', 'tblTempUsageDetail_20' ) end [2025-01-09 17:34:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:34:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:34:27] Production.INFO: ==18679== Releasing lock... [2025-01-09 17:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:34:27] Production.INFO: 58 MB #Memory Used# [2025-01-09 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:35:05 [end_date_ymd] => 2025-01-09 17:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:35:05' and `end` < '2025-01-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-01-09 17:35:18] Production.INFO: count ==3988 [2025-01-09 17:35:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:35:05 - End Time 2025-01-09 17:35:05 [2025-01-09 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211138', 'tblTempUsageDetail_20' ) start [2025-01-09 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211138', 'tblTempUsageDetail_20' ) end [2025-01-09 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211138', 'tblTempVendorCDR_20' ) start [2025-01-09 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211138', 'tblTempVendorCDR_20' ) end [2025-01-09 17:35:20] Production.INFO: ProcessCDR(1,14211138,1,1,2) [2025-01-09 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211138', 'tblTempUsageDetail_20' ) start [2025-01-09 17:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211138', 'tblTempUsageDetail_20' ) end [2025-01-09 17:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:35:25] Production.INFO: ==18790== Releasing lock... [2025-01-09 17:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:35:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-09 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:36:05 [end_date_ymd] => 2025-01-09 17:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:36:05' and `end` < '2025-01-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-01-09 17:36:20] Production.INFO: count ==3983 [2025-01-09 17:36:22] Production.ERROR: pbx CDR StartTime 2025-01-09 14:36:05 - End Time 2025-01-09 17:36:05 [2025-01-09 17:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211143', 'tblTempUsageDetail_20' ) start [2025-01-09 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211143', 'tblTempUsageDetail_20' ) end [2025-01-09 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211143', 'tblTempVendorCDR_20' ) start [2025-01-09 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211143', 'tblTempVendorCDR_20' ) end [2025-01-09 17:36:22] Production.INFO: ProcessCDR(1,14211143,1,1,2) [2025-01-09 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211143', 'tblTempUsageDetail_20' ) start [2025-01-09 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211143', 'tblTempUsageDetail_20' ) end [2025-01-09 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:36:26] Production.INFO: ==18905== Releasing lock... [2025-01-09 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:36:26] Production.INFO: 57.75 MB #Memory Used# [2025-01-09 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:37:05 [end_date_ymd] => 2025-01-09 17:37:05 [RateCDR] => 1 ) [2025-01-09 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:37:05' and `end` < '2025-01-09 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:37:19] Production.INFO: count ==3977 [2025-01-09 17:37:21] Production.ERROR: pbx CDR StartTime 2025-01-09 14:37:05 - End Time 2025-01-09 17:37:05 [2025-01-09 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211148', 'tblTempUsageDetail_20' ) start [2025-01-09 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211148', 'tblTempUsageDetail_20' ) end [2025-01-09 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211148', 'tblTempVendorCDR_20' ) start [2025-01-09 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211148', 'tblTempVendorCDR_20' ) end [2025-01-09 17:37:21] Production.INFO: ProcessCDR(1,14211148,1,1,2) [2025-01-09 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211148', 'tblTempUsageDetail_20' ) start [2025-01-09 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211148', 'tblTempUsageDetail_20' ) end [2025-01-09 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:37:25] Production.INFO: ==19023== Releasing lock... [2025-01-09 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:37:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-09 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:38:05 [end_date_ymd] => 2025-01-09 17:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:38:05' and `end` < '2025-01-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-01-09 17:38:19] Production.INFO: count ==3968 [2025-01-09 17:38:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:38:05 - End Time 2025-01-09 17:38:05 [2025-01-09 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211153', 'tblTempUsageDetail_20' ) start [2025-01-09 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211153', 'tblTempUsageDetail_20' ) end [2025-01-09 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211153', 'tblTempVendorCDR_20' ) start [2025-01-09 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211153', 'tblTempVendorCDR_20' ) end [2025-01-09 17:38:21] Production.INFO: ProcessCDR(1,14211153,1,1,2) [2025-01-09 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211153', 'tblTempUsageDetail_20' ) start [2025-01-09 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211153', 'tblTempUsageDetail_20' ) end [2025-01-09 17:38:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:38:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:38:25] Production.INFO: ==19146== Releasing lock... [2025-01-09 17:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:38:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-09 17:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:39:04 [end_date_ymd] => 2025-01-09 17:39:04 [RateCDR] => 1 ) [2025-01-09 17:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:39:04' and `end` < '2025-01-09 17:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:39:18] Production.INFO: count ==3960 [2025-01-09 17:39:19] Production.ERROR: pbx CDR StartTime 2025-01-09 14:39:04 - End Time 2025-01-09 17:39:04 [2025-01-09 17:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211158', 'tblTempUsageDetail_20' ) start [2025-01-09 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211158', 'tblTempUsageDetail_20' ) end [2025-01-09 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211158', 'tblTempVendorCDR_20' ) start [2025-01-09 17:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211158', 'tblTempVendorCDR_20' ) end [2025-01-09 17:39:19] Production.INFO: ProcessCDR(1,14211158,1,1,2) [2025-01-09 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211158', 'tblTempUsageDetail_20' ) start [2025-01-09 17:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211158', 'tblTempUsageDetail_20' ) end [2025-01-09 17:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:39:24] Production.INFO: ==19264== Releasing lock... [2025-01-09 17:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:39:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-09 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:40:05 [end_date_ymd] => 2025-01-09 17:40:05 [RateCDR] => 1 ) [2025-01-09 17:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:40:05' and `end` < '2025-01-09 17:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:40:19] Production.INFO: count ==3965 [2025-01-09 17:40:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:40:05 - End Time 2025-01-09 17:40:05 [2025-01-09 17:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211163', 'tblTempUsageDetail_20' ) start [2025-01-09 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211163', 'tblTempUsageDetail_20' ) end [2025-01-09 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211163', 'tblTempVendorCDR_20' ) start [2025-01-09 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211163', 'tblTempVendorCDR_20' ) end [2025-01-09 17:40:21] Production.INFO: ProcessCDR(1,14211163,1,1,2) [2025-01-09 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211163', 'tblTempUsageDetail_20' ) start [2025-01-09 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211163', 'tblTempUsageDetail_20' ) end [2025-01-09 17:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:40:25] Production.INFO: ==19376== Releasing lock... [2025-01-09 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:40:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-09 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:41:05 [end_date_ymd] => 2025-01-09 17:41:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:41:05' and `end` < '2025-01-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-01-09 17:41:18] Production.INFO: count ==3972 [2025-01-09 17:41:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:41:05 - End Time 2025-01-09 17:41:05 [2025-01-09 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211169', 'tblTempUsageDetail_20' ) start [2025-01-09 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211169', 'tblTempUsageDetail_20' ) end [2025-01-09 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211169', 'tblTempVendorCDR_20' ) start [2025-01-09 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211169', 'tblTempVendorCDR_20' ) end [2025-01-09 17:41:20] Production.INFO: ProcessCDR(1,14211169,1,1,2) [2025-01-09 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211169', 'tblTempUsageDetail_20' ) start [2025-01-09 17:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211169', 'tblTempUsageDetail_20' ) end [2025-01-09 17:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:41:24] Production.INFO: ==19489== Releasing lock... [2025-01-09 17:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:41:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-09 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:42:05 [end_date_ymd] => 2025-01-09 17:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:42:05' and `end` < '2025-01-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-01-09 17:42:19] Production.INFO: count ==3969 [2025-01-09 17:42:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:42:05 - End Time 2025-01-09 17:42:05 [2025-01-09 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211174', 'tblTempUsageDetail_20' ) start [2025-01-09 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211174', 'tblTempUsageDetail_20' ) end [2025-01-09 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211174', 'tblTempVendorCDR_20' ) start [2025-01-09 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211174', 'tblTempVendorCDR_20' ) end [2025-01-09 17:42:20] Production.INFO: ProcessCDR(1,14211174,1,1,2) [2025-01-09 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211174', 'tblTempUsageDetail_20' ) start [2025-01-09 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211174', 'tblTempUsageDetail_20' ) end [2025-01-09 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:42:25] Production.INFO: ==19601== Releasing lock... [2025-01-09 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:42:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-09 17:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:43:04 [end_date_ymd] => 2025-01-09 17:43:04 [RateCDR] => 1 ) [2025-01-09 17:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:43:04' and `end` < '2025-01-09 17:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:43:18] Production.INFO: count ==3944 [2025-01-09 17:43:19] Production.ERROR: pbx CDR StartTime 2025-01-09 14:43:04 - End Time 2025-01-09 17:43:04 [2025-01-09 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211179', 'tblTempUsageDetail_20' ) start [2025-01-09 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211179', 'tblTempUsageDetail_20' ) end [2025-01-09 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211179', 'tblTempVendorCDR_20' ) start [2025-01-09 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211179', 'tblTempVendorCDR_20' ) end [2025-01-09 17:43:19] Production.INFO: ProcessCDR(1,14211179,1,1,2) [2025-01-09 17:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211179', 'tblTempUsageDetail_20' ) start [2025-01-09 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211179', 'tblTempUsageDetail_20' ) end [2025-01-09 17:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:43:24] Production.INFO: ==19714== Releasing lock... [2025-01-09 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:43:24] Production.INFO: 57.5 MB #Memory Used# [2025-01-09 17:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:44:04 [end_date_ymd] => 2025-01-09 17:44:04 [RateCDR] => 1 ) [2025-01-09 17:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:44:04' and `end` < '2025-01-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-01-09 17:44:19] Production.INFO: count ==3928 [2025-01-09 17:44:21] Production.ERROR: pbx CDR StartTime 2025-01-09 14:44:04 - End Time 2025-01-09 17:44:04 [2025-01-09 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211184', 'tblTempUsageDetail_20' ) start [2025-01-09 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211184', 'tblTempUsageDetail_20' ) end [2025-01-09 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211184', 'tblTempVendorCDR_20' ) start [2025-01-09 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211184', 'tblTempVendorCDR_20' ) end [2025-01-09 17:44:21] Production.INFO: ProcessCDR(1,14211184,1,1,2) [2025-01-09 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211184', 'tblTempUsageDetail_20' ) start [2025-01-09 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211184', 'tblTempUsageDetail_20' ) end [2025-01-09 17:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:44:26] Production.INFO: ==19827== Releasing lock... [2025-01-09 17:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:44:26] Production.INFO: 57.25 MB #Memory Used# [2025-01-09 17:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:45:04 [end_date_ymd] => 2025-01-09 17:45:04 [RateCDR] => 1 ) [2025-01-09 17:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:45:04' and `end` < '2025-01-09 17:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:45:22] Production.INFO: count ==3900 [2025-01-09 17:45:23] Production.ERROR: pbx CDR StartTime 2025-01-09 14:45:04 - End Time 2025-01-09 17:45:04 [2025-01-09 17:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211189', 'tblTempUsageDetail_20' ) start [2025-01-09 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211189', 'tblTempUsageDetail_20' ) end [2025-01-09 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211189', 'tblTempVendorCDR_20' ) start [2025-01-09 17:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211189', 'tblTempVendorCDR_20' ) end [2025-01-09 17:45:24] Production.INFO: ProcessCDR(1,14211189,1,1,2) [2025-01-09 17:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211189', 'tblTempUsageDetail_20' ) start [2025-01-09 17:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211189', 'tblTempUsageDetail_20' ) end [2025-01-09 17:45:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:45:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:45:28] Production.INFO: ==19980== Releasing lock... [2025-01-09 17:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:45:28] Production.INFO: 57.25 MB #Memory Used# [2025-01-09 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:46:05 [end_date_ymd] => 2025-01-09 17:46:05 [RateCDR] => 1 ) [2025-01-09 17:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:46:05' and `end` < '2025-01-09 17:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:46:19] Production.INFO: count ==3871 [2025-01-09 17:46:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:46:05 - End Time 2025-01-09 17:46:05 [2025-01-09 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211194', 'tblTempUsageDetail_20' ) start [2025-01-09 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211194', 'tblTempUsageDetail_20' ) end [2025-01-09 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211194', 'tblTempVendorCDR_20' ) start [2025-01-09 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211194', 'tblTempVendorCDR_20' ) end [2025-01-09 17:46:20] Production.INFO: ProcessCDR(1,14211194,1,1,2) [2025-01-09 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211194', 'tblTempUsageDetail_20' ) start [2025-01-09 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211194', 'tblTempUsageDetail_20' ) end [2025-01-09 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:46:25] Production.INFO: ==20053== Releasing lock... [2025-01-09 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:46:25] Production.INFO: 57 MB #Memory Used# [2025-01-09 17:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:47:04 [end_date_ymd] => 2025-01-09 17:47:04 [RateCDR] => 1 ) [2025-01-09 17:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:47:04' and `end` < '2025-01-09 17:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:47:18] Production.INFO: count ==3886 [2025-01-09 17:47:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:47:04 - End Time 2025-01-09 17:47:04 [2025-01-09 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211199', 'tblTempUsageDetail_20' ) start [2025-01-09 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211199', 'tblTempUsageDetail_20' ) end [2025-01-09 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211199', 'tblTempVendorCDR_20' ) start [2025-01-09 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211199', 'tblTempVendorCDR_20' ) end [2025-01-09 17:47:20] Production.INFO: ProcessCDR(1,14211199,1,1,2) [2025-01-09 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211199', 'tblTempUsageDetail_20' ) start [2025-01-09 17:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211199', 'tblTempUsageDetail_20' ) end [2025-01-09 17:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:47:25] Production.INFO: ==20124== Releasing lock... [2025-01-09 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:47:25] Production.INFO: 57 MB #Memory Used# [2025-01-09 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:48:05 [end_date_ymd] => 2025-01-09 17:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:48:05' and `end` < '2025-01-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-01-09 17:48:21] Production.INFO: count ==3895 [2025-01-09 17:48:23] Production.ERROR: pbx CDR StartTime 2025-01-09 14:48:05 - End Time 2025-01-09 17:48:05 [2025-01-09 17:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211204', 'tblTempUsageDetail_20' ) start [2025-01-09 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211204', 'tblTempUsageDetail_20' ) end [2025-01-09 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211204', 'tblTempVendorCDR_20' ) start [2025-01-09 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211204', 'tblTempVendorCDR_20' ) end [2025-01-09 17:48:23] Production.INFO: ProcessCDR(1,14211204,1,1,2) [2025-01-09 17:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211204', 'tblTempUsageDetail_20' ) start [2025-01-09 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211204', 'tblTempUsageDetail_20' ) end [2025-01-09 17:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:48:28] Production.INFO: ==20195== Releasing lock... [2025-01-09 17:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:48:28] Production.INFO: 57 MB #Memory Used# [2025-01-09 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:49:05 [end_date_ymd] => 2025-01-09 17:49:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:49:05' and `end` < '2025-01-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-01-09 17:49:20] Production.INFO: count ==3890 [2025-01-09 17:49:21] Production.ERROR: pbx CDR StartTime 2025-01-09 14:49:05 - End Time 2025-01-09 17:49:05 [2025-01-09 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211209', 'tblTempUsageDetail_20' ) start [2025-01-09 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211209', 'tblTempUsageDetail_20' ) end [2025-01-09 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211209', 'tblTempVendorCDR_20' ) start [2025-01-09 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211209', 'tblTempVendorCDR_20' ) end [2025-01-09 17:49:21] Production.INFO: ProcessCDR(1,14211209,1,1,2) [2025-01-09 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211209', 'tblTempUsageDetail_20' ) start [2025-01-09 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211209', 'tblTempUsageDetail_20' ) end [2025-01-09 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:49:26] Production.INFO: ==20267== Releasing lock... [2025-01-09 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:49:26] Production.INFO: 57 MB #Memory Used# [2025-01-09 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:50:05 [end_date_ymd] => 2025-01-09 17:50:05 [RateCDR] => 1 ) [2025-01-09 17:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:50:05' and `end` < '2025-01-09 17:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:50:19] Production.INFO: count ==3887 [2025-01-09 17:50:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:50:05 - End Time 2025-01-09 17:50:05 [2025-01-09 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211215', 'tblTempUsageDetail_20' ) start [2025-01-09 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211215', 'tblTempUsageDetail_20' ) end [2025-01-09 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211215', 'tblTempVendorCDR_20' ) start [2025-01-09 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211215', 'tblTempVendorCDR_20' ) end [2025-01-09 17:50:21] Production.INFO: ProcessCDR(1,14211215,1,1,2) [2025-01-09 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211215', 'tblTempUsageDetail_20' ) start [2025-01-09 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211215', 'tblTempUsageDetail_20' ) end [2025-01-09 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:50:24] Production.INFO: ==20344== Releasing lock... [2025-01-09 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:50:24] Production.INFO: 57 MB #Memory Used# [2025-01-09 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:51:05 [end_date_ymd] => 2025-01-09 17:51:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:51:05' and `end` < '2025-01-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-01-09 17:51:20] Production.INFO: count ==3886 [2025-01-09 17:51:22] Production.ERROR: pbx CDR StartTime 2025-01-09 14:51:05 - End Time 2025-01-09 17:51:05 [2025-01-09 17:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211220', 'tblTempUsageDetail_20' ) start [2025-01-09 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211220', 'tblTempUsageDetail_20' ) end [2025-01-09 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211220', 'tblTempVendorCDR_20' ) start [2025-01-09 17:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211220', 'tblTempVendorCDR_20' ) end [2025-01-09 17:51:22] Production.INFO: ProcessCDR(1,14211220,1,1,2) [2025-01-09 17:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211220', 'tblTempUsageDetail_20' ) start [2025-01-09 17:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211220', 'tblTempUsageDetail_20' ) end [2025-01-09 17:51:27] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:51:27] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:51:27] Production.INFO: ==20419== Releasing lock... [2025-01-09 17:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:51:27] Production.INFO: 57.25 MB #Memory Used# [2025-01-09 17:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:52:04 [end_date_ymd] => 2025-01-09 17:52:04 [RateCDR] => 1 ) [2025-01-09 17:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:52:04' and `end` < '2025-01-09 17:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:52:18] Production.INFO: count ==3877 [2025-01-09 17:52:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:52:04 - End Time 2025-01-09 17:52:04 [2025-01-09 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211225', 'tblTempUsageDetail_20' ) start [2025-01-09 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211225', 'tblTempUsageDetail_20' ) end [2025-01-09 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211225', 'tblTempVendorCDR_20' ) start [2025-01-09 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211225', 'tblTempVendorCDR_20' ) end [2025-01-09 17:52:20] Production.INFO: ProcessCDR(1,14211225,1,1,2) [2025-01-09 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211225', 'tblTempUsageDetail_20' ) start [2025-01-09 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211225', 'tblTempUsageDetail_20' ) end [2025-01-09 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:52:23] Production.INFO: ==20489== Releasing lock... [2025-01-09 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:52:23] Production.INFO: 57 MB #Memory Used# [2025-01-09 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:53:05 [end_date_ymd] => 2025-01-09 17:53:05 [RateCDR] => 1 ) [2025-01-09 17:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:53:05' and `end` < '2025-01-09 17:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:53:18] Production.INFO: count ==3863 [2025-01-09 17:53:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:53:05 - End Time 2025-01-09 17:53:05 [2025-01-09 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211230', 'tblTempUsageDetail_20' ) start [2025-01-09 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211230', 'tblTempUsageDetail_20' ) end [2025-01-09 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211230', 'tblTempVendorCDR_20' ) start [2025-01-09 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211230', 'tblTempVendorCDR_20' ) end [2025-01-09 17:53:20] Production.INFO: ProcessCDR(1,14211230,1,1,2) [2025-01-09 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211230', 'tblTempUsageDetail_20' ) start [2025-01-09 17:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211230', 'tblTempUsageDetail_20' ) end [2025-01-09 17:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:53:24] Production.INFO: ==20561== Releasing lock... [2025-01-09 17:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:53:24] Production.INFO: 57 MB #Memory Used# [2025-01-09 17:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:54:04 [end_date_ymd] => 2025-01-09 17:54:04 [RateCDR] => 1 ) [2025-01-09 17:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:54:04' and `end` < '2025-01-09 17:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:54:18] Production.INFO: count ==3885 [2025-01-09 17:54:19] Production.ERROR: pbx CDR StartTime 2025-01-09 14:54:04 - End Time 2025-01-09 17:54:04 [2025-01-09 17:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211235', 'tblTempUsageDetail_20' ) start [2025-01-09 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211235', 'tblTempUsageDetail_20' ) end [2025-01-09 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211235', 'tblTempVendorCDR_20' ) start [2025-01-09 17:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211235', 'tblTempVendorCDR_20' ) end [2025-01-09 17:54:19] Production.INFO: ProcessCDR(1,14211235,1,1,2) [2025-01-09 17:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211235', 'tblTempUsageDetail_20' ) start [2025-01-09 17:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211235', 'tblTempUsageDetail_20' ) end [2025-01-09 17:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:54:22] Production.INFO: ==20632== Releasing lock... [2025-01-09 17:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:54:22] Production.INFO: 57 MB #Memory Used# [2025-01-09 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:55:05 [end_date_ymd] => 2025-01-09 17:55:05 [RateCDR] => 1 ) [2025-01-09 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:55:05' and `end` < '2025-01-09 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:55:20] Production.INFO: count ==3877 [2025-01-09 17:55:21] Production.ERROR: pbx CDR StartTime 2025-01-09 14:55:05 - End Time 2025-01-09 17:55:05 [2025-01-09 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211240', 'tblTempUsageDetail_20' ) start [2025-01-09 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211240', 'tblTempUsageDetail_20' ) end [2025-01-09 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211240', 'tblTempVendorCDR_20' ) start [2025-01-09 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211240', 'tblTempVendorCDR_20' ) end [2025-01-09 17:55:21] Production.INFO: ProcessCDR(1,14211240,1,1,2) [2025-01-09 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211240', 'tblTempUsageDetail_20' ) start [2025-01-09 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211240', 'tblTempUsageDetail_20' ) end [2025-01-09 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:55:26] Production.INFO: ==20706== Releasing lock... [2025-01-09 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:55:26] Production.INFO: 57.25 MB #Memory Used# [2025-01-09 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:56:05 [end_date_ymd] => 2025-01-09 17:56:05 [RateCDR] => 1 ) [2025-01-09 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:56:05' and `end` < '2025-01-09 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:56:19] Production.INFO: count ==3870 [2025-01-09 17:56:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:56:05 - End Time 2025-01-09 17:56:05 [2025-01-09 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211245', 'tblTempUsageDetail_20' ) start [2025-01-09 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211245', 'tblTempUsageDetail_20' ) end [2025-01-09 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211245', 'tblTempVendorCDR_20' ) start [2025-01-09 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211245', 'tblTempVendorCDR_20' ) end [2025-01-09 17:56:20] Production.INFO: ProcessCDR(1,14211245,1,1,2) [2025-01-09 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211245', 'tblTempUsageDetail_20' ) start [2025-01-09 17:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211245', 'tblTempUsageDetail_20' ) end [2025-01-09 17:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:56:23] Production.INFO: ==20777== Releasing lock... [2025-01-09 17:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:56:23] Production.INFO: 57 MB #Memory Used# [2025-01-09 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:57:05 [end_date_ymd] => 2025-01-09 17:57:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:57:05' and `end` < '2025-01-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-01-09 17:57:19] Production.INFO: count ==3864 [2025-01-09 17:57:20] Production.ERROR: pbx CDR StartTime 2025-01-09 14:57:05 - End Time 2025-01-09 17:57:05 [2025-01-09 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211250', 'tblTempUsageDetail_20' ) start [2025-01-09 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211250', 'tblTempUsageDetail_20' ) end [2025-01-09 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211250', 'tblTempVendorCDR_20' ) start [2025-01-09 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211250', 'tblTempVendorCDR_20' ) end [2025-01-09 17:57:20] Production.INFO: ProcessCDR(1,14211250,1,1,2) [2025-01-09 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211250', 'tblTempUsageDetail_20' ) start [2025-01-09 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211250', 'tblTempUsageDetail_20' ) end [2025-01-09 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:57:25] Production.INFO: ==20848== Releasing lock... [2025-01-09 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:57:25] Production.INFO: 56.75 MB #Memory Used# [2025-01-09 17:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:58:04 [end_date_ymd] => 2025-01-09 17:58:04 [RateCDR] => 1 ) [2025-01-09 17:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 14:58:04' and `end` < '2025-01-09 17:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 17:58:20] Production.INFO: count ==3853 [2025-01-09 17:58:21] Production.ERROR: pbx CDR StartTime 2025-01-09 14:58:04 - End Time 2025-01-09 17:58:04 [2025-01-09 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211255', 'tblTempUsageDetail_20' ) start [2025-01-09 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211255', 'tblTempUsageDetail_20' ) end [2025-01-09 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211255', 'tblTempVendorCDR_20' ) start [2025-01-09 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211255', 'tblTempVendorCDR_20' ) end [2025-01-09 17:58:21] Production.INFO: ProcessCDR(1,14211255,1,1,2) [2025-01-09 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211255', 'tblTempUsageDetail_20' ) start [2025-01-09 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211255', 'tblTempUsageDetail_20' ) end [2025-01-09 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:58:26] Production.INFO: ==20919== Releasing lock... [2025-01-09 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:58:26] Production.INFO: 57 MB #Memory Used# [2025-01-09 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 14:59:05 [end_date_ymd] => 2025-01-09 17:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 14:59:05' and `end` < '2025-01-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-01-09 17:59:20] Production.INFO: count ==3836 [2025-01-09 17:59:22] Production.ERROR: pbx CDR StartTime 2025-01-09 14:59:05 - End Time 2025-01-09 17:59:05 [2025-01-09 17:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211260', 'tblTempUsageDetail_20' ) start [2025-01-09 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211260', 'tblTempUsageDetail_20' ) end [2025-01-09 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211260', 'tblTempVendorCDR_20' ) start [2025-01-09 17:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211260', 'tblTempVendorCDR_20' ) end [2025-01-09 17:59:22] Production.INFO: ProcessCDR(1,14211260,1,1,2) [2025-01-09 17:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 17:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211260', 'tblTempUsageDetail_20' ) start [2025-01-09 17:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211260', 'tblTempUsageDetail_20' ) end [2025-01-09 17:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 17:59:26] Production.INFO: ==20990== Releasing lock... [2025-01-09 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 17:59:26] Production.INFO: 57.25 MB #Memory Used# [2025-01-09 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:00:06 [end_date_ymd] => 2025-01-09 18:00:06 [RateCDR] => 1 ) [2025-01-09 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:00:06' and `end` < '2025-01-09 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:00:19] Production.INFO: count ==3808 [2025-01-09 18:00:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:00:06 - End Time 2025-01-09 18:00:06 [2025-01-09 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211266', 'tblTempUsageDetail_20' ) start [2025-01-09 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211266', 'tblTempUsageDetail_20' ) end [2025-01-09 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211266', 'tblTempVendorCDR_20' ) start [2025-01-09 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211266', 'tblTempVendorCDR_20' ) end [2025-01-09 18:00:21] Production.INFO: ProcessCDR(1,14211266,1,1,2) [2025-01-09 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211266', 'tblTempUsageDetail_20' ) start [2025-01-09 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211266', 'tblTempUsageDetail_20' ) end [2025-01-09 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:00:25] Production.INFO: ==21103== Releasing lock... [2025-01-09 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:00:25] Production.INFO: 57 MB #Memory Used# [2025-01-09 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:01:04 [end_date_ymd] => 2025-01-09 18:01:04 [RateCDR] => 1 ) [2025-01-09 18:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:01:04' and `end` < '2025-01-09 18:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:01:18] Production.INFO: count ==3726 [2025-01-09 18:01:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:01:04 - End Time 2025-01-09 18:01:04 [2025-01-09 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211271', 'tblTempUsageDetail_20' ) start [2025-01-09 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211271', 'tblTempUsageDetail_20' ) end [2025-01-09 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211271', 'tblTempVendorCDR_20' ) start [2025-01-09 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211271', 'tblTempVendorCDR_20' ) end [2025-01-09 18:01:19] Production.INFO: ProcessCDR(1,14211271,1,1,2) [2025-01-09 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211271', 'tblTempUsageDetail_20' ) start [2025-01-09 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211271', 'tblTempUsageDetail_20' ) end [2025-01-09 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:01:24] Production.INFO: ==21188== Releasing lock... [2025-01-09 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:01:24] Production.INFO: 56 MB #Memory Used# [2025-01-09 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:02:05 [end_date_ymd] => 2025-01-09 18:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:02:05' and `end` < '2025-01-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-01-09 18:02:18] Production.INFO: count ==3688 [2025-01-09 18:02:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:02:05 - End Time 2025-01-09 18:02:05 [2025-01-09 18:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211276', 'tblTempUsageDetail_20' ) start [2025-01-09 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211276', 'tblTempUsageDetail_20' ) end [2025-01-09 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211276', 'tblTempVendorCDR_20' ) start [2025-01-09 18:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211276', 'tblTempVendorCDR_20' ) end [2025-01-09 18:02:19] Production.INFO: ProcessCDR(1,14211276,1,1,2) [2025-01-09 18:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211276', 'tblTempUsageDetail_20' ) start [2025-01-09 18:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211276', 'tblTempUsageDetail_20' ) end [2025-01-09 18:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:02:24] Production.INFO: ==21260== Releasing lock... [2025-01-09 18:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:02:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-09 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:03:04 [end_date_ymd] => 2025-01-09 18:03:04 [RateCDR] => 1 ) [2025-01-09 18:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:03:04' and `end` < '2025-01-09 18:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:03:18] Production.INFO: count ==3671 [2025-01-09 18:03:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:03:04 - End Time 2025-01-09 18:03:04 [2025-01-09 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211281', 'tblTempUsageDetail_20' ) start [2025-01-09 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211281', 'tblTempUsageDetail_20' ) end [2025-01-09 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211281', 'tblTempVendorCDR_20' ) start [2025-01-09 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211281', 'tblTempVendorCDR_20' ) end [2025-01-09 18:03:19] Production.INFO: ProcessCDR(1,14211281,1,1,2) [2025-01-09 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211281', 'tblTempUsageDetail_20' ) start [2025-01-09 18:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211281', 'tblTempUsageDetail_20' ) end [2025-01-09 18:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:03:22] Production.INFO: ==21332== Releasing lock... [2025-01-09 18:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:03:22] Production.INFO: 55.75 MB #Memory Used# [2025-01-09 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:04:05 [end_date_ymd] => 2025-01-09 18:04:05 [RateCDR] => 1 ) [2025-01-09 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:04:05' and `end` < '2025-01-09 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:04:19] Production.INFO: count ==3663 [2025-01-09 18:04:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:04:05 - End Time 2025-01-09 18:04:05 [2025-01-09 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211286', 'tblTempUsageDetail_20' ) start [2025-01-09 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211286', 'tblTempUsageDetail_20' ) end [2025-01-09 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211286', 'tblTempVendorCDR_20' ) start [2025-01-09 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211286', 'tblTempVendorCDR_20' ) end [2025-01-09 18:04:20] Production.INFO: ProcessCDR(1,14211286,1,1,2) [2025-01-09 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211286', 'tblTempUsageDetail_20' ) start [2025-01-09 18:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211286', 'tblTempUsageDetail_20' ) end [2025-01-09 18:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:04:24] Production.INFO: ==21405== Releasing lock... [2025-01-09 18:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:04:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-09 18:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:05:04 [end_date_ymd] => 2025-01-09 18:05:04 [RateCDR] => 1 ) [2025-01-09 18:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:05:04' and `end` < '2025-01-09 18:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:05:19] Production.INFO: count ==3652 [2025-01-09 18:05:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:05:04 - End Time 2025-01-09 18:05:04 [2025-01-09 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211291', 'tblTempUsageDetail_20' ) start [2025-01-09 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211291', 'tblTempUsageDetail_20' ) end [2025-01-09 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211291', 'tblTempVendorCDR_20' ) start [2025-01-09 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211291', 'tblTempVendorCDR_20' ) end [2025-01-09 18:05:20] Production.INFO: ProcessCDR(1,14211291,1,1,2) [2025-01-09 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211291', 'tblTempUsageDetail_20' ) start [2025-01-09 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211291', 'tblTempUsageDetail_20' ) end [2025-01-09 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:05:23] Production.INFO: ==21476== Releasing lock... [2025-01-09 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:05:23] Production.INFO: 56 MB #Memory Used# [2025-01-09 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:06:05 [end_date_ymd] => 2025-01-09 18:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:06:05' and `end` < '2025-01-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-01-09 18:06:19] Production.INFO: count ==3638 [2025-01-09 18:06:21] Production.ERROR: pbx CDR StartTime 2025-01-09 15:06:05 - End Time 2025-01-09 18:06:05 [2025-01-09 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211296', 'tblTempUsageDetail_20' ) start [2025-01-09 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211296', 'tblTempUsageDetail_20' ) end [2025-01-09 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211296', 'tblTempVendorCDR_20' ) start [2025-01-09 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211296', 'tblTempVendorCDR_20' ) end [2025-01-09 18:06:21] Production.INFO: ProcessCDR(1,14211296,1,1,2) [2025-01-09 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211296', 'tblTempUsageDetail_20' ) start [2025-01-09 18:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211296', 'tblTempUsageDetail_20' ) end [2025-01-09 18:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:06:25] Production.INFO: ==21549== Releasing lock... [2025-01-09 18:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:06:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-09 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:07:05 [end_date_ymd] => 2025-01-09 18:07:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:07:05' and `end` < '2025-01-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-01-09 18:07:20] Production.INFO: count ==3600 [2025-01-09 18:07:21] Production.ERROR: pbx CDR StartTime 2025-01-09 15:07:05 - End Time 2025-01-09 18:07:05 [2025-01-09 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211301', 'tblTempUsageDetail_20' ) start [2025-01-09 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211301', 'tblTempUsageDetail_20' ) end [2025-01-09 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211301', 'tblTempVendorCDR_20' ) start [2025-01-09 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211301', 'tblTempVendorCDR_20' ) end [2025-01-09 18:07:21] Production.INFO: ProcessCDR(1,14211301,1,1,2) [2025-01-09 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211301', 'tblTempUsageDetail_20' ) start [2025-01-09 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211301', 'tblTempUsageDetail_20' ) end [2025-01-09 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:07:26] Production.INFO: ==21621== Releasing lock... [2025-01-09 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:07:26] Production.INFO: 55 MB #Memory Used# [2025-01-09 18:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:08:04 [end_date_ymd] => 2025-01-09 18:08:04 [RateCDR] => 1 ) [2025-01-09 18:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:08:04' and `end` < '2025-01-09 18:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:08:19] Production.INFO: count ==3561 [2025-01-09 18:08:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:08:04 - End Time 2025-01-09 18:08:04 [2025-01-09 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211306', 'tblTempUsageDetail_20' ) start [2025-01-09 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211306', 'tblTempUsageDetail_20' ) end [2025-01-09 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211306', 'tblTempVendorCDR_20' ) start [2025-01-09 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211306', 'tblTempVendorCDR_20' ) end [2025-01-09 18:08:20] Production.INFO: ProcessCDR(1,14211306,1,1,2) [2025-01-09 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211306', 'tblTempUsageDetail_20' ) start [2025-01-09 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211306', 'tblTempUsageDetail_20' ) end [2025-01-09 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:08:24] Production.INFO: ==21691== Releasing lock... [2025-01-09 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:08:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-09 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:09:05 [end_date_ymd] => 2025-01-09 18:09:05 [RateCDR] => 1 ) [2025-01-09 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:09:05' and `end` < '2025-01-09 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:09:19] Production.INFO: count ==3559 [2025-01-09 18:09:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:09:05 - End Time 2025-01-09 18:09:05 [2025-01-09 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211311', 'tblTempUsageDetail_20' ) start [2025-01-09 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211311', 'tblTempUsageDetail_20' ) end [2025-01-09 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211311', 'tblTempVendorCDR_20' ) start [2025-01-09 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211311', 'tblTempVendorCDR_20' ) end [2025-01-09 18:09:20] Production.INFO: ProcessCDR(1,14211311,1,1,2) [2025-01-09 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211311', 'tblTempUsageDetail_20' ) start [2025-01-09 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211311', 'tblTempUsageDetail_20' ) end [2025-01-09 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:09:25] Production.INFO: ==21762== Releasing lock... [2025-01-09 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:09:25] Production.INFO: 55.5 MB #Memory Used# [2025-01-09 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:10:05 [end_date_ymd] => 2025-01-09 18:10:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:10:05' and `end` < '2025-01-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-01-09 18:10:19] Production.INFO: count ==3552 [2025-01-09 18:10:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:10:05 - End Time 2025-01-09 18:10:05 [2025-01-09 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211316', 'tblTempUsageDetail_20' ) start [2025-01-09 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211316', 'tblTempUsageDetail_20' ) end [2025-01-09 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211316', 'tblTempVendorCDR_20' ) start [2025-01-09 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211316', 'tblTempVendorCDR_20' ) end [2025-01-09 18:10:20] Production.INFO: ProcessCDR(1,14211316,1,1,2) [2025-01-09 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211316', 'tblTempUsageDetail_20' ) start [2025-01-09 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211316', 'tblTempUsageDetail_20' ) end [2025-01-09 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:10:25] Production.INFO: ==21835== Releasing lock... [2025-01-09 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:10:25] Production.INFO: 55.5 MB #Memory Used# [2025-01-09 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:11:04 [end_date_ymd] => 2025-01-09 18:11:04 [RateCDR] => 1 ) [2025-01-09 18:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:11:04' and `end` < '2025-01-09 18:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:11:34] Production.INFO: count ==3526 [2025-01-09 18:11:35] Production.ERROR: pbx CDR StartTime 2025-01-09 15:11:04 - End Time 2025-01-09 18:11:04 [2025-01-09 18:11:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:11:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211322', 'tblTempUsageDetail_20' ) start [2025-01-09 18:11:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211322', 'tblTempUsageDetail_20' ) end [2025-01-09 18:11:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211322', 'tblTempVendorCDR_20' ) start [2025-01-09 18:11:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211322', 'tblTempVendorCDR_20' ) end [2025-01-09 18:11:35] Production.INFO: ProcessCDR(1,14211322,1,1,2) [2025-01-09 18:11:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:11:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:11:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:11:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:11:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211322', 'tblTempUsageDetail_20' ) start [2025-01-09 18:11:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211322', 'tblTempUsageDetail_20' ) end [2025-01-09 18:11:40] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:11:40] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:11:40] Production.INFO: ==21909== Releasing lock... [2025-01-09 18:11:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:11:40] Production.INFO: 54.25 MB #Memory Used# [2025-01-09 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:12:05 [end_date_ymd] => 2025-01-09 18:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:12:05' and `end` < '2025-01-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-01-09 18:12:22] Production.INFO: count ==3503 [2025-01-09 18:12:23] Production.ERROR: pbx CDR StartTime 2025-01-09 15:12:05 - End Time 2025-01-09 18:12:05 [2025-01-09 18:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211327', 'tblTempUsageDetail_20' ) start [2025-01-09 18:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211327', 'tblTempUsageDetail_20' ) end [2025-01-09 18:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211327', 'tblTempVendorCDR_20' ) start [2025-01-09 18:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211327', 'tblTempVendorCDR_20' ) end [2025-01-09 18:12:24] Production.INFO: ProcessCDR(1,14211327,1,1,2) [2025-01-09 18:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211327', 'tblTempUsageDetail_20' ) start [2025-01-09 18:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211327', 'tblTempUsageDetail_20' ) end [2025-01-09 18:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:12:28] Production.INFO: ==21979== Releasing lock... [2025-01-09 18:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:12:28] Production.INFO: 54.5 MB #Memory Used# [2025-01-09 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:13:05 [end_date_ymd] => 2025-01-09 18:13:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:13:05' and `end` < '2025-01-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-01-09 18:13:20] Production.INFO: count ==3480 [2025-01-09 18:13:21] Production.ERROR: pbx CDR StartTime 2025-01-09 15:13:05 - End Time 2025-01-09 18:13:05 [2025-01-09 18:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211332', 'tblTempUsageDetail_20' ) start [2025-01-09 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211332', 'tblTempUsageDetail_20' ) end [2025-01-09 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211332', 'tblTempVendorCDR_20' ) start [2025-01-09 18:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211332', 'tblTempVendorCDR_20' ) end [2025-01-09 18:13:21] Production.INFO: ProcessCDR(1,14211332,1,1,2) [2025-01-09 18:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211332', 'tblTempUsageDetail_20' ) start [2025-01-09 18:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211332', 'tblTempUsageDetail_20' ) end [2025-01-09 18:13:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:13:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:13:26] Production.INFO: ==22051== Releasing lock... [2025-01-09 18:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:13:26] Production.INFO: 55 MB #Memory Used# [2025-01-09 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:14:05 [end_date_ymd] => 2025-01-09 18:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:14:05' and `end` < '2025-01-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-01-09 18:14:18] Production.INFO: count ==3441 [2025-01-09 18:14:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:14:05 - End Time 2025-01-09 18:14:05 [2025-01-09 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211337', 'tblTempUsageDetail_20' ) start [2025-01-09 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211337', 'tblTempUsageDetail_20' ) end [2025-01-09 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211337', 'tblTempVendorCDR_20' ) start [2025-01-09 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211337', 'tblTempVendorCDR_20' ) end [2025-01-09 18:14:20] Production.INFO: ProcessCDR(1,14211337,1,1,2) [2025-01-09 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211337', 'tblTempUsageDetail_20' ) start [2025-01-09 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211337', 'tblTempUsageDetail_20' ) end [2025-01-09 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:14:24] Production.INFO: ==22123== Releasing lock... [2025-01-09 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:14:24] Production.INFO: 53.75 MB #Memory Used# [2025-01-09 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:15:04 [end_date_ymd] => 2025-01-09 18:15:04 [RateCDR] => 1 ) [2025-01-09 18:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:15:04' and `end` < '2025-01-09 18:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:15:18] Production.INFO: count ==3428 [2025-01-09 18:15:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:15:04 - End Time 2025-01-09 18:15:04 [2025-01-09 18:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211342', 'tblTempUsageDetail_20' ) start [2025-01-09 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211342', 'tblTempUsageDetail_20' ) end [2025-01-09 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211342', 'tblTempVendorCDR_20' ) start [2025-01-09 18:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211342', 'tblTempVendorCDR_20' ) end [2025-01-09 18:15:19] Production.INFO: ProcessCDR(1,14211342,1,1,2) [2025-01-09 18:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211342', 'tblTempUsageDetail_20' ) start [2025-01-09 18:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211342', 'tblTempUsageDetail_20' ) end [2025-01-09 18:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:15:24] Production.INFO: ==22196== Releasing lock... [2025-01-09 18:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:15:24] Production.INFO: 53.5 MB #Memory Used# [2025-01-09 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:16:05 [end_date_ymd] => 2025-01-09 18:16:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:16:05' and `end` < '2025-01-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-01-09 18:16:19] Production.INFO: count ==3421 [2025-01-09 18:16:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:16:05 - End Time 2025-01-09 18:16:05 [2025-01-09 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211347', 'tblTempUsageDetail_20' ) start [2025-01-09 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211347', 'tblTempUsageDetail_20' ) end [2025-01-09 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211347', 'tblTempVendorCDR_20' ) start [2025-01-09 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211347', 'tblTempVendorCDR_20' ) end [2025-01-09 18:16:20] Production.INFO: ProcessCDR(1,14211347,1,1,2) [2025-01-09 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211347', 'tblTempUsageDetail_20' ) start [2025-01-09 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211347', 'tblTempUsageDetail_20' ) end [2025-01-09 18:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:16:24] Production.INFO: ==22306== Releasing lock... [2025-01-09 18:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:16:24] Production.INFO: 53.5 MB #Memory Used# [2025-01-09 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:17:05 [end_date_ymd] => 2025-01-09 18:17:05 [RateCDR] => 1 ) [2025-01-09 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:17:05' and `end` < '2025-01-09 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:17:18] Production.INFO: count ==3415 [2025-01-09 18:17:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:17:05 - End Time 2025-01-09 18:17:05 [2025-01-09 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211352', 'tblTempUsageDetail_20' ) start [2025-01-09 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211352', 'tblTempUsageDetail_20' ) end [2025-01-09 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211352', 'tblTempVendorCDR_20' ) start [2025-01-09 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211352', 'tblTempVendorCDR_20' ) end [2025-01-09 18:17:20] Production.INFO: ProcessCDR(1,14211352,1,1,2) [2025-01-09 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211352', 'tblTempUsageDetail_20' ) start [2025-01-09 18:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211352', 'tblTempUsageDetail_20' ) end [2025-01-09 18:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:17:24] Production.INFO: ==22383== Releasing lock... [2025-01-09 18:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:17:24] Production.INFO: 53.75 MB #Memory Used# [2025-01-09 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:18:05 [end_date_ymd] => 2025-01-09 18:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:18:05' and `end` < '2025-01-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-01-09 18:18:25] Production.INFO: count ==3397 [2025-01-09 18:18:26] Production.ERROR: pbx CDR StartTime 2025-01-09 15:18:05 - End Time 2025-01-09 18:18:05 [2025-01-09 18:18:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211357', 'tblTempUsageDetail_20' ) start [2025-01-09 18:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211357', 'tblTempUsageDetail_20' ) end [2025-01-09 18:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211357', 'tblTempVendorCDR_20' ) start [2025-01-09 18:18:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211357', 'tblTempVendorCDR_20' ) end [2025-01-09 18:18:26] Production.INFO: ProcessCDR(1,14211357,1,1,2) [2025-01-09 18:18:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:18:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:18:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:18:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211357', 'tblTempUsageDetail_20' ) start [2025-01-09 18:18:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211357', 'tblTempUsageDetail_20' ) end [2025-01-09 18:18:31] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:18:31] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:18:31] Production.INFO: ==22454== Releasing lock... [2025-01-09 18:18:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:18:31] Production.INFO: 53.5 MB #Memory Used# [2025-01-09 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:19:05 [end_date_ymd] => 2025-01-09 18:19:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:19:05' and `end` < '2025-01-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-01-09 18:19:19] Production.INFO: count ==3378 [2025-01-09 18:19:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:19:05 - End Time 2025-01-09 18:19:05 [2025-01-09 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211362', 'tblTempUsageDetail_20' ) start [2025-01-09 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211362', 'tblTempUsageDetail_20' ) end [2025-01-09 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211362', 'tblTempVendorCDR_20' ) start [2025-01-09 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211362', 'tblTempVendorCDR_20' ) end [2025-01-09 18:19:20] Production.INFO: ProcessCDR(1,14211362,1,1,2) [2025-01-09 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211362', 'tblTempUsageDetail_20' ) start [2025-01-09 18:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211362', 'tblTempUsageDetail_20' ) end [2025-01-09 18:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:19:24] Production.INFO: ==22525== Releasing lock... [2025-01-09 18:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:19:24] Production.INFO: 53.25 MB #Memory Used# [2025-01-09 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:20:05 [end_date_ymd] => 2025-01-09 18:20:05 [RateCDR] => 1 ) [2025-01-09 18:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:20:05' and `end` < '2025-01-09 18:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:20:23] Production.INFO: count ==3366 [2025-01-09 18:20:24] Production.ERROR: pbx CDR StartTime 2025-01-09 15:20:05 - End Time 2025-01-09 18:20:05 [2025-01-09 18:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211368', 'tblTempUsageDetail_20' ) start [2025-01-09 18:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211368', 'tblTempUsageDetail_20' ) end [2025-01-09 18:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211368', 'tblTempVendorCDR_20' ) start [2025-01-09 18:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211368', 'tblTempVendorCDR_20' ) end [2025-01-09 18:20:24] Production.INFO: ProcessCDR(1,14211368,1,1,2) [2025-01-09 18:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:20:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211368', 'tblTempUsageDetail_20' ) start [2025-01-09 18:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211368', 'tblTempUsageDetail_20' ) end [2025-01-09 18:20:29] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:20:29] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:20:29] Production.INFO: ==22597== Releasing lock... [2025-01-09 18:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:20:29] Production.INFO: 53.75 MB #Memory Used# [2025-01-09 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:21:05 [end_date_ymd] => 2025-01-09 18:21:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:21:05' and `end` < '2025-01-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-01-09 18:21:21] Production.INFO: count ==3253 [2025-01-09 18:21:22] Production.ERROR: pbx CDR StartTime 2025-01-09 15:21:05 - End Time 2025-01-09 18:21:05 [2025-01-09 18:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211373', 'tblTempUsageDetail_20' ) start [2025-01-09 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211373', 'tblTempUsageDetail_20' ) end [2025-01-09 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211373', 'tblTempVendorCDR_20' ) start [2025-01-09 18:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211373', 'tblTempVendorCDR_20' ) end [2025-01-09 18:21:22] Production.INFO: ProcessCDR(1,14211373,1,1,2) [2025-01-09 18:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211373', 'tblTempUsageDetail_20' ) start [2025-01-09 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211373', 'tblTempUsageDetail_20' ) end [2025-01-09 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:21:25] Production.INFO: ==22670== Releasing lock... [2025-01-09 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:21:25] Production.INFO: 52.5 MB #Memory Used# [2025-01-09 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:22:05 [end_date_ymd] => 2025-01-09 18:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:22:05' and `end` < '2025-01-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-01-09 18:22:19] Production.INFO: count ==3240 [2025-01-09 18:22:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:22:05 - End Time 2025-01-09 18:22:05 [2025-01-09 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211378', 'tblTempUsageDetail_20' ) start [2025-01-09 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211378', 'tblTempUsageDetail_20' ) end [2025-01-09 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211378', 'tblTempVendorCDR_20' ) start [2025-01-09 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211378', 'tblTempVendorCDR_20' ) end [2025-01-09 18:22:20] Production.INFO: ProcessCDR(1,14211378,1,1,2) [2025-01-09 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211378', 'tblTempUsageDetail_20' ) start [2025-01-09 18:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211378', 'tblTempUsageDetail_20' ) end [2025-01-09 18:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:22:23] Production.INFO: ==22741== Releasing lock... [2025-01-09 18:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:22:23] Production.INFO: 52.25 MB #Memory Used# [2025-01-09 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:23:05 [end_date_ymd] => 2025-01-09 18:23:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:23:05' and `end` < '2025-01-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-01-09 18:23:19] Production.INFO: count ==3225 [2025-01-09 18:23:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:23:05 - End Time 2025-01-09 18:23:05 [2025-01-09 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211383', 'tblTempUsageDetail_20' ) start [2025-01-09 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211383', 'tblTempUsageDetail_20' ) end [2025-01-09 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211383', 'tblTempVendorCDR_20' ) start [2025-01-09 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211383', 'tblTempVendorCDR_20' ) end [2025-01-09 18:23:20] Production.INFO: ProcessCDR(1,14211383,1,1,2) [2025-01-09 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211383', 'tblTempUsageDetail_20' ) start [2025-01-09 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211383', 'tblTempUsageDetail_20' ) end [2025-01-09 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:23:24] Production.INFO: ==22811== Releasing lock... [2025-01-09 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:23:24] Production.INFO: 52 MB #Memory Used# [2025-01-09 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:24:05 [end_date_ymd] => 2025-01-09 18:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:24:05' and `end` < '2025-01-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-01-09 18:24:19] Production.INFO: count ==3200 [2025-01-09 18:24:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:24:05 - End Time 2025-01-09 18:24:05 [2025-01-09 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211388', 'tblTempUsageDetail_20' ) start [2025-01-09 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211388', 'tblTempUsageDetail_20' ) end [2025-01-09 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211388', 'tblTempVendorCDR_20' ) start [2025-01-09 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211388', 'tblTempVendorCDR_20' ) end [2025-01-09 18:24:20] Production.INFO: ProcessCDR(1,14211388,1,1,2) [2025-01-09 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211388', 'tblTempUsageDetail_20' ) start [2025-01-09 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211388', 'tblTempUsageDetail_20' ) end [2025-01-09 18:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:24:23] Production.INFO: ==22881== Releasing lock... [2025-01-09 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:24:23] Production.INFO: 52 MB #Memory Used# [2025-01-09 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:25:05 [end_date_ymd] => 2025-01-09 18:25:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:25:05' and `end` < '2025-01-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-01-09 18:25:20] Production.INFO: count ==3192 [2025-01-09 18:25:21] Production.ERROR: pbx CDR StartTime 2025-01-09 15:25:05 - End Time 2025-01-09 18:25:05 [2025-01-09 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211393', 'tblTempUsageDetail_20' ) start [2025-01-09 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211393', 'tblTempUsageDetail_20' ) end [2025-01-09 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211393', 'tblTempVendorCDR_20' ) start [2025-01-09 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211393', 'tblTempVendorCDR_20' ) end [2025-01-09 18:25:21] Production.INFO: ProcessCDR(1,14211393,1,1,2) [2025-01-09 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211393', 'tblTempUsageDetail_20' ) start [2025-01-09 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211393', 'tblTempUsageDetail_20' ) end [2025-01-09 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:25:24] Production.INFO: ==22953== Releasing lock... [2025-01-09 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:25:24] Production.INFO: 52.25 MB #Memory Used# [2025-01-09 18:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:26:04 [end_date_ymd] => 2025-01-09 18:26:04 [RateCDR] => 1 ) [2025-01-09 18:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:26:04' and `end` < '2025-01-09 18:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:26:18] Production.INFO: count ==3182 [2025-01-09 18:26:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:26:04 - End Time 2025-01-09 18:26:04 [2025-01-09 18:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211398', 'tblTempUsageDetail_20' ) start [2025-01-09 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211398', 'tblTempUsageDetail_20' ) end [2025-01-09 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211398', 'tblTempVendorCDR_20' ) start [2025-01-09 18:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211398', 'tblTempVendorCDR_20' ) end [2025-01-09 18:26:19] Production.INFO: ProcessCDR(1,14211398,1,1,2) [2025-01-09 18:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211398', 'tblTempUsageDetail_20' ) start [2025-01-09 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211398', 'tblTempUsageDetail_20' ) end [2025-01-09 18:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:26:23] Production.INFO: ==23023== Releasing lock... [2025-01-09 18:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:26:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-09 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:27:05 [end_date_ymd] => 2025-01-09 18:27:05 [RateCDR] => 1 ) [2025-01-09 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:27:05' and `end` < '2025-01-09 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:27:20] Production.INFO: count ==3185 [2025-01-09 18:27:21] Production.ERROR: pbx CDR StartTime 2025-01-09 15:27:05 - End Time 2025-01-09 18:27:05 [2025-01-09 18:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211403', 'tblTempUsageDetail_20' ) start [2025-01-09 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211403', 'tblTempUsageDetail_20' ) end [2025-01-09 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211403', 'tblTempVendorCDR_20' ) start [2025-01-09 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211403', 'tblTempVendorCDR_20' ) end [2025-01-09 18:27:21] Production.INFO: ProcessCDR(1,14211403,1,1,2) [2025-01-09 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211403', 'tblTempUsageDetail_20' ) start [2025-01-09 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211403', 'tblTempUsageDetail_20' ) end [2025-01-09 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:27:24] Production.INFO: ==23095== Releasing lock... [2025-01-09 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:27:24] Production.INFO: 51.75 MB #Memory Used# [2025-01-09 18:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:28:04 [end_date_ymd] => 2025-01-09 18:28:04 [RateCDR] => 1 ) [2025-01-09 18:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:28:04' and `end` < '2025-01-09 18:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:28:18] Production.INFO: count ==3172 [2025-01-09 18:28:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:28:04 - End Time 2025-01-09 18:28:04 [2025-01-09 18:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211408', 'tblTempUsageDetail_20' ) start [2025-01-09 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211408', 'tblTempUsageDetail_20' ) end [2025-01-09 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211408', 'tblTempVendorCDR_20' ) start [2025-01-09 18:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211408', 'tblTempVendorCDR_20' ) end [2025-01-09 18:28:19] Production.INFO: ProcessCDR(1,14211408,1,1,2) [2025-01-09 18:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211408', 'tblTempUsageDetail_20' ) start [2025-01-09 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211408', 'tblTempUsageDetail_20' ) end [2025-01-09 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:28:24] Production.INFO: ==23164== Releasing lock... [2025-01-09 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:28:24] Production.INFO: 51.75 MB #Memory Used# [2025-01-09 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:29:05 [end_date_ymd] => 2025-01-09 18:29:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:29:05' and `end` < '2025-01-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-01-09 18:29:19] Production.INFO: count ==3176 [2025-01-09 18:29:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:29:05 - End Time 2025-01-09 18:29:05 [2025-01-09 18:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211413', 'tblTempUsageDetail_20' ) start [2025-01-09 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211413', 'tblTempUsageDetail_20' ) end [2025-01-09 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211413', 'tblTempVendorCDR_20' ) start [2025-01-09 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211413', 'tblTempVendorCDR_20' ) end [2025-01-09 18:29:20] Production.INFO: ProcessCDR(1,14211413,1,1,2) [2025-01-09 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211413', 'tblTempUsageDetail_20' ) start [2025-01-09 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211413', 'tblTempUsageDetail_20' ) end [2025-01-09 18:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:29:23] Production.INFO: ==23235== Releasing lock... [2025-01-09 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:29:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-09 18:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:30:05 [end_date_ymd] => 2025-01-09 18:30:05 [RateCDR] => 1 ) [2025-01-09 18:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:30:05' and `end` < '2025-01-09 18:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:30:20] Production.INFO: count ==3167 [2025-01-09 18:30:21] Production.ERROR: pbx CDR StartTime 2025-01-09 15:30:05 - End Time 2025-01-09 18:30:05 [2025-01-09 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211419', 'tblTempUsageDetail_20' ) start [2025-01-09 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211419', 'tblTempUsageDetail_20' ) end [2025-01-09 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211419', 'tblTempVendorCDR_20' ) start [2025-01-09 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211419', 'tblTempVendorCDR_20' ) end [2025-01-09 18:30:21] Production.INFO: ProcessCDR(1,14211419,1,1,2) [2025-01-09 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211419', 'tblTempUsageDetail_20' ) start [2025-01-09 18:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211419', 'tblTempUsageDetail_20' ) end [2025-01-09 18:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:30:24] Production.INFO: ==23312== Releasing lock... [2025-01-09 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:30:24] Production.INFO: 51.75 MB #Memory Used# [2025-01-09 18:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:31:05 [end_date_ymd] => 2025-01-09 18:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:31:05' and `end` < '2025-01-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-01-09 18:31:19] Production.INFO: count ==3110 [2025-01-09 18:31:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:31:05 - End Time 2025-01-09 18:31:05 [2025-01-09 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211424', 'tblTempUsageDetail_20' ) start [2025-01-09 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211424', 'tblTempUsageDetail_20' ) end [2025-01-09 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211424', 'tblTempVendorCDR_20' ) start [2025-01-09 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211424', 'tblTempVendorCDR_20' ) end [2025-01-09 18:31:20] Production.INFO: ProcessCDR(1,14211424,1,1,2) [2025-01-09 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211424', 'tblTempUsageDetail_20' ) start [2025-01-09 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211424', 'tblTempUsageDetail_20' ) end [2025-01-09 18:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:31:24] Production.INFO: ==23389== Releasing lock... [2025-01-09 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:31:24] Production.INFO: 51.5 MB #Memory Used# [2025-01-09 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:32:05 [end_date_ymd] => 2025-01-09 18:32:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:32:05' and `end` < '2025-01-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-01-09 18:32:18] Production.INFO: count ==3103 [2025-01-09 18:32:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:32:05 - End Time 2025-01-09 18:32:05 [2025-01-09 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211429', 'tblTempUsageDetail_20' ) start [2025-01-09 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211429', 'tblTempUsageDetail_20' ) end [2025-01-09 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211429', 'tblTempVendorCDR_20' ) start [2025-01-09 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211429', 'tblTempVendorCDR_20' ) end [2025-01-09 18:32:19] Production.INFO: ProcessCDR(1,14211429,1,1,2) [2025-01-09 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211429', 'tblTempUsageDetail_20' ) start [2025-01-09 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211429', 'tblTempUsageDetail_20' ) end [2025-01-09 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:32:24] Production.INFO: ==23499== Releasing lock... [2025-01-09 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:32:24] Production.INFO: 51.5 MB #Memory Used# [2025-01-09 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:33:05 [end_date_ymd] => 2025-01-09 18:33:05 [RateCDR] => 1 ) [2025-01-09 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:33:05' and `end` < '2025-01-09 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:33:19] Production.INFO: count ==3080 [2025-01-09 18:33:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:33:05 - End Time 2025-01-09 18:33:05 [2025-01-09 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211434', 'tblTempUsageDetail_20' ) start [2025-01-09 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211434', 'tblTempUsageDetail_20' ) end [2025-01-09 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211434', 'tblTempVendorCDR_20' ) start [2025-01-09 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211434', 'tblTempVendorCDR_20' ) end [2025-01-09 18:33:20] Production.INFO: ProcessCDR(1,14211434,1,1,2) [2025-01-09 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211434', 'tblTempUsageDetail_20' ) start [2025-01-09 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211434', 'tblTempUsageDetail_20' ) end [2025-01-09 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:33:24] Production.INFO: ==23570== Releasing lock... [2025-01-09 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:33:24] Production.INFO: 51.25 MB #Memory Used# [2025-01-09 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:34:05 [end_date_ymd] => 2025-01-09 18:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:34:05' and `end` < '2025-01-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-01-09 18:34:19] Production.INFO: count ==3057 [2025-01-09 18:34:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:34:05 - End Time 2025-01-09 18:34:05 [2025-01-09 18:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211439', 'tblTempUsageDetail_20' ) start [2025-01-09 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211439', 'tblTempUsageDetail_20' ) end [2025-01-09 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211439', 'tblTempVendorCDR_20' ) start [2025-01-09 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211439', 'tblTempVendorCDR_20' ) end [2025-01-09 18:34:20] Production.INFO: ProcessCDR(1,14211439,1,1,2) [2025-01-09 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211439', 'tblTempUsageDetail_20' ) start [2025-01-09 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211439', 'tblTempUsageDetail_20' ) end [2025-01-09 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:34:24] Production.INFO: ==23640== Releasing lock... [2025-01-09 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:34:24] Production.INFO: 50.75 MB #Memory Used# [2025-01-09 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:35:05 [end_date_ymd] => 2025-01-09 18:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:35:05' and `end` < '2025-01-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-01-09 18:35:19] Production.INFO: count ==3053 [2025-01-09 18:35:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:35:05 - End Time 2025-01-09 18:35:05 [2025-01-09 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211444', 'tblTempUsageDetail_20' ) start [2025-01-09 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211444', 'tblTempUsageDetail_20' ) end [2025-01-09 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211444', 'tblTempVendorCDR_20' ) start [2025-01-09 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211444', 'tblTempVendorCDR_20' ) end [2025-01-09 18:35:20] Production.INFO: ProcessCDR(1,14211444,1,1,2) [2025-01-09 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211444', 'tblTempUsageDetail_20' ) start [2025-01-09 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211444', 'tblTempUsageDetail_20' ) end [2025-01-09 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:35:24] Production.INFO: ==23711== Releasing lock... [2025-01-09 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:35:24] Production.INFO: 50.75 MB #Memory Used# [2025-01-09 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:36:05 [end_date_ymd] => 2025-01-09 18:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:36:05' and `end` < '2025-01-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-01-09 18:36:18] Production.INFO: count ==3051 [2025-01-09 18:36:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:36:05 - End Time 2025-01-09 18:36:05 [2025-01-09 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211449', 'tblTempUsageDetail_20' ) start [2025-01-09 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211449', 'tblTempUsageDetail_20' ) end [2025-01-09 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211449', 'tblTempVendorCDR_20' ) start [2025-01-09 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211449', 'tblTempVendorCDR_20' ) end [2025-01-09 18:36:19] Production.INFO: ProcessCDR(1,14211449,1,1,2) [2025-01-09 18:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211449', 'tblTempUsageDetail_20' ) start [2025-01-09 18:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211449', 'tblTempUsageDetail_20' ) end [2025-01-09 18:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:36:22] Production.INFO: ==23783== Releasing lock... [2025-01-09 18:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:36:22] Production.INFO: 50.75 MB #Memory Used# [2025-01-09 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:37:05 [end_date_ymd] => 2025-01-09 18:37:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:37:05' and `end` < '2025-01-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-01-09 18:37:18] Production.INFO: count ==3046 [2025-01-09 18:37:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:37:05 - End Time 2025-01-09 18:37:05 [2025-01-09 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211454', 'tblTempUsageDetail_20' ) start [2025-01-09 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211454', 'tblTempUsageDetail_20' ) end [2025-01-09 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211454', 'tblTempVendorCDR_20' ) start [2025-01-09 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211454', 'tblTempVendorCDR_20' ) end [2025-01-09 18:37:19] Production.INFO: ProcessCDR(1,14211454,1,1,2) [2025-01-09 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211454', 'tblTempUsageDetail_20' ) start [2025-01-09 18:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211454', 'tblTempUsageDetail_20' ) end [2025-01-09 18:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:37:23] Production.INFO: ==23860== Releasing lock... [2025-01-09 18:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:37:23] Production.INFO: 50.75 MB #Memory Used# [2025-01-09 18:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:38:04 [end_date_ymd] => 2025-01-09 18:38:04 [RateCDR] => 1 ) [2025-01-09 18:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:38:04' and `end` < '2025-01-09 18:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:38:19] Production.INFO: count ==3042 [2025-01-09 18:38:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:38:04 - End Time 2025-01-09 18:38:04 [2025-01-09 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211459', 'tblTempUsageDetail_20' ) start [2025-01-09 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211459', 'tblTempUsageDetail_20' ) end [2025-01-09 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211459', 'tblTempVendorCDR_20' ) start [2025-01-09 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211459', 'tblTempVendorCDR_20' ) end [2025-01-09 18:38:20] Production.INFO: ProcessCDR(1,14211459,1,1,2) [2025-01-09 18:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211459', 'tblTempUsageDetail_20' ) start [2025-01-09 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211459', 'tblTempUsageDetail_20' ) end [2025-01-09 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:38:24] Production.INFO: ==23931== Releasing lock... [2025-01-09 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:38:24] Production.INFO: 50.75 MB #Memory Used# [2025-01-09 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:39:05 [end_date_ymd] => 2025-01-09 18:39:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:39:05' and `end` < '2025-01-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-01-09 18:39:18] Production.INFO: count ==3034 [2025-01-09 18:39:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:39:05 - End Time 2025-01-09 18:39:05 [2025-01-09 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211464', 'tblTempUsageDetail_20' ) start [2025-01-09 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211464', 'tblTempUsageDetail_20' ) end [2025-01-09 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211464', 'tblTempVendorCDR_20' ) start [2025-01-09 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211464', 'tblTempVendorCDR_20' ) end [2025-01-09 18:39:19] Production.INFO: ProcessCDR(1,14211464,1,1,2) [2025-01-09 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211464', 'tblTempUsageDetail_20' ) start [2025-01-09 18:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211464', 'tblTempUsageDetail_20' ) end [2025-01-09 18:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:39:24] Production.INFO: ==24003== Releasing lock... [2025-01-09 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:39:24] Production.INFO: 50.75 MB #Memory Used# [2025-01-09 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:40:05 [end_date_ymd] => 2025-01-09 18:40:05 [RateCDR] => 1 ) [2025-01-09 18:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:40:05' and `end` < '2025-01-09 18:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:40:19] Production.INFO: count ==3010 [2025-01-09 18:40:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:40:05 - End Time 2025-01-09 18:40:05 [2025-01-09 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211470', 'tblTempUsageDetail_20' ) start [2025-01-09 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211470', 'tblTempUsageDetail_20' ) end [2025-01-09 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211470', 'tblTempVendorCDR_20' ) start [2025-01-09 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211470', 'tblTempVendorCDR_20' ) end [2025-01-09 18:40:20] Production.INFO: ProcessCDR(1,14211470,1,1,2) [2025-01-09 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211470', 'tblTempUsageDetail_20' ) start [2025-01-09 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211470', 'tblTempUsageDetail_20' ) end [2025-01-09 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:40:24] Production.INFO: ==24077== Releasing lock... [2025-01-09 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:40:24] Production.INFO: 50.5 MB #Memory Used# [2025-01-09 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:41:05 [end_date_ymd] => 2025-01-09 18:41:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:41:05' and `end` < '2025-01-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-01-09 18:41:19] Production.INFO: count ==2957 [2025-01-09 18:41:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:41:05 - End Time 2025-01-09 18:41:05 [2025-01-09 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211475', 'tblTempUsageDetail_20' ) start [2025-01-09 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211475', 'tblTempUsageDetail_20' ) end [2025-01-09 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211475', 'tblTempVendorCDR_20' ) start [2025-01-09 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211475', 'tblTempVendorCDR_20' ) end [2025-01-09 18:41:19] Production.INFO: ProcessCDR(1,14211475,1,1,2) [2025-01-09 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211475', 'tblTempUsageDetail_20' ) start [2025-01-09 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211475', 'tblTempUsageDetail_20' ) end [2025-01-09 18:41:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:41:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:41:24] Production.INFO: ==24151== Releasing lock... [2025-01-09 18:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:41:24] Production.INFO: 50 MB #Memory Used# [2025-01-09 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:42:05 [end_date_ymd] => 2025-01-09 18:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:42:05' and `end` < '2025-01-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-01-09 18:42:18] Production.INFO: count ==2947 [2025-01-09 18:42:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:42:05 - End Time 2025-01-09 18:42:05 [2025-01-09 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211480', 'tblTempUsageDetail_20' ) start [2025-01-09 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211480', 'tblTempUsageDetail_20' ) end [2025-01-09 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211480', 'tblTempVendorCDR_20' ) start [2025-01-09 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211480', 'tblTempVendorCDR_20' ) end [2025-01-09 18:42:19] Production.INFO: ProcessCDR(1,14211480,1,1,2) [2025-01-09 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211480', 'tblTempUsageDetail_20' ) start [2025-01-09 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211480', 'tblTempUsageDetail_20' ) end [2025-01-09 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:42:23] Production.INFO: ==24222== Releasing lock... [2025-01-09 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:42:23] Production.INFO: 50 MB #Memory Used# [2025-01-09 18:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:43:06 [end_date_ymd] => 2025-01-09 18:43:06 [RateCDR] => 1 ) [2025-01-09 18:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:43:06' and `end` < '2025-01-09 18:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:43:20] Production.INFO: count ==2924 [2025-01-09 18:43:21] Production.ERROR: pbx CDR StartTime 2025-01-09 15:43:06 - End Time 2025-01-09 18:43:06 [2025-01-09 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211485', 'tblTempUsageDetail_20' ) start [2025-01-09 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211485', 'tblTempUsageDetail_20' ) end [2025-01-09 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211485', 'tblTempVendorCDR_20' ) start [2025-01-09 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211485', 'tblTempVendorCDR_20' ) end [2025-01-09 18:43:21] Production.INFO: ProcessCDR(1,14211485,1,1,2) [2025-01-09 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211485', 'tblTempUsageDetail_20' ) start [2025-01-09 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211485', 'tblTempUsageDetail_20' ) end [2025-01-09 18:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:43:26] Production.INFO: ==24294== Releasing lock... [2025-01-09 18:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:43:26] Production.INFO: 49.75 MB #Memory Used# [2025-01-09 18:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:44:04 [end_date_ymd] => 2025-01-09 18:44:04 [RateCDR] => 1 ) [2025-01-09 18:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:44:04' and `end` < '2025-01-09 18:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:44:17] Production.INFO: count ==2906 [2025-01-09 18:44:18] Production.ERROR: pbx CDR StartTime 2025-01-09 15:44:04 - End Time 2025-01-09 18:44:04 [2025-01-09 18:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211490', 'tblTempUsageDetail_20' ) start [2025-01-09 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211490', 'tblTempUsageDetail_20' ) end [2025-01-09 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211490', 'tblTempVendorCDR_20' ) start [2025-01-09 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211490', 'tblTempVendorCDR_20' ) end [2025-01-09 18:44:18] Production.INFO: ProcessCDR(1,14211490,1,1,2) [2025-01-09 18:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211490', 'tblTempUsageDetail_20' ) start [2025-01-09 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211490', 'tblTempUsageDetail_20' ) end [2025-01-09 18:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:44:22] Production.INFO: ==24368== Releasing lock... [2025-01-09 18:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:44:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-09 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:45:05 [end_date_ymd] => 2025-01-09 18:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:45:05' and `end` < '2025-01-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-01-09 18:45:20] Production.INFO: count ==2896 [2025-01-09 18:45:21] Production.ERROR: pbx CDR StartTime 2025-01-09 15:45:05 - End Time 2025-01-09 18:45:05 [2025-01-09 18:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211495', 'tblTempUsageDetail_20' ) start [2025-01-09 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211495', 'tblTempUsageDetail_20' ) end [2025-01-09 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211495', 'tblTempVendorCDR_20' ) start [2025-01-09 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211495', 'tblTempVendorCDR_20' ) end [2025-01-09 18:45:21] Production.INFO: ProcessCDR(1,14211495,1,1,2) [2025-01-09 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211495', 'tblTempUsageDetail_20' ) start [2025-01-09 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211495', 'tblTempUsageDetail_20' ) end [2025-01-09 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:45:24] Production.INFO: ==24442== Releasing lock... [2025-01-09 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:45:24] Production.INFO: 49.75 MB #Memory Used# [2025-01-09 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:46:05 [end_date_ymd] => 2025-01-09 18:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:46:05' and `end` < '2025-01-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-01-09 18:46:18] Production.INFO: count ==2890 [2025-01-09 18:46:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:46:05 - End Time 2025-01-09 18:46:05 [2025-01-09 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211500', 'tblTempUsageDetail_20' ) start [2025-01-09 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211500', 'tblTempUsageDetail_20' ) end [2025-01-09 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211500', 'tblTempVendorCDR_20' ) start [2025-01-09 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211500', 'tblTempVendorCDR_20' ) end [2025-01-09 18:46:19] Production.INFO: ProcessCDR(1,14211500,1,1,2) [2025-01-09 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211500', 'tblTempUsageDetail_20' ) start [2025-01-09 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211500', 'tblTempUsageDetail_20' ) end [2025-01-09 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:46:22] Production.INFO: ==24516== Releasing lock... [2025-01-09 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:46:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-09 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:47:05 [end_date_ymd] => 2025-01-09 18:47:05 [RateCDR] => 1 ) [2025-01-09 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:47:05' and `end` < '2025-01-09 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:47:18] Production.INFO: count ==2880 [2025-01-09 18:47:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:47:05 - End Time 2025-01-09 18:47:05 [2025-01-09 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211505', 'tblTempUsageDetail_20' ) start [2025-01-09 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211505', 'tblTempUsageDetail_20' ) end [2025-01-09 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211505', 'tblTempVendorCDR_20' ) start [2025-01-09 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211505', 'tblTempVendorCDR_20' ) end [2025-01-09 18:47:19] Production.INFO: ProcessCDR(1,14211505,1,1,2) [2025-01-09 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211505', 'tblTempUsageDetail_20' ) start [2025-01-09 18:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211505', 'tblTempUsageDetail_20' ) end [2025-01-09 18:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:47:22] Production.INFO: ==24628== Releasing lock... [2025-01-09 18:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:47:22] Production.INFO: 49.75 MB #Memory Used# [2025-01-09 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:48:05 [end_date_ymd] => 2025-01-09 18:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:48:05' and `end` < '2025-01-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-01-09 18:48:19] Production.INFO: count ==2866 [2025-01-09 18:48:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:48:05 - End Time 2025-01-09 18:48:05 [2025-01-09 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211510', 'tblTempUsageDetail_20' ) start [2025-01-09 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211510', 'tblTempUsageDetail_20' ) end [2025-01-09 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211510', 'tblTempVendorCDR_20' ) start [2025-01-09 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211510', 'tblTempVendorCDR_20' ) end [2025-01-09 18:48:20] Production.INFO: ProcessCDR(1,14211510,1,1,2) [2025-01-09 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211510', 'tblTempUsageDetail_20' ) start [2025-01-09 18:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211510', 'tblTempUsageDetail_20' ) end [2025-01-09 18:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:48:25] Production.INFO: ==24701== Releasing lock... [2025-01-09 18:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:48:25] Production.INFO: 50 MB #Memory Used# [2025-01-09 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:49:05 [end_date_ymd] => 2025-01-09 18:49:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:49:05' and `end` < '2025-01-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-01-09 18:49:18] Production.INFO: count ==2868 [2025-01-09 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:49:05 - End Time 2025-01-09 18:49:05 [2025-01-09 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211515', 'tblTempUsageDetail_20' ) start [2025-01-09 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211515', 'tblTempUsageDetail_20' ) end [2025-01-09 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211515', 'tblTempVendorCDR_20' ) start [2025-01-09 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211515', 'tblTempVendorCDR_20' ) end [2025-01-09 18:49:19] Production.INFO: ProcessCDR(1,14211515,1,1,2) [2025-01-09 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211515', 'tblTempUsageDetail_20' ) start [2025-01-09 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211515', 'tblTempUsageDetail_20' ) end [2025-01-09 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:49:23] Production.INFO: ==24778== Releasing lock... [2025-01-09 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:49:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-09 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:50:06 [end_date_ymd] => 2025-01-09 18:50:06 [RateCDR] => 1 ) [2025-01-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-01-09 15:50:06' and `end` < '2025-01-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-01-09 18:50:19] Production.INFO: count ==2859 [2025-01-09 18:50:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:50:06 - End Time 2025-01-09 18:50:06 [2025-01-09 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211521', 'tblTempUsageDetail_20' ) start [2025-01-09 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211521', 'tblTempUsageDetail_20' ) end [2025-01-09 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211521', 'tblTempVendorCDR_20' ) start [2025-01-09 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211521', 'tblTempVendorCDR_20' ) end [2025-01-09 18:50:20] Production.INFO: ProcessCDR(1,14211521,1,1,2) [2025-01-09 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211521', 'tblTempUsageDetail_20' ) start [2025-01-09 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211521', 'tblTempUsageDetail_20' ) end [2025-01-09 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:50:23] Production.INFO: ==24859== Releasing lock... [2025-01-09 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:50:23] Production.INFO: 49.5 MB #Memory Used# [2025-01-09 18:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:51:04 [end_date_ymd] => 2025-01-09 18:51:04 [RateCDR] => 1 ) [2025-01-09 18:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:51:04' and `end` < '2025-01-09 18:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:51:20] Production.INFO: count ==2785 [2025-01-09 18:51:21] Production.ERROR: pbx CDR StartTime 2025-01-09 15:51:04 - End Time 2025-01-09 18:51:04 [2025-01-09 18:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211526', 'tblTempUsageDetail_20' ) start [2025-01-09 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211526', 'tblTempUsageDetail_20' ) end [2025-01-09 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211526', 'tblTempVendorCDR_20' ) start [2025-01-09 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211526', 'tblTempVendorCDR_20' ) end [2025-01-09 18:51:21] Production.INFO: ProcessCDR(1,14211526,1,1,2) [2025-01-09 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211526', 'tblTempUsageDetail_20' ) start [2025-01-09 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211526', 'tblTempUsageDetail_20' ) end [2025-01-09 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:51:24] Production.INFO: ==24940== Releasing lock... [2025-01-09 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:51:24] Production.INFO: 49 MB #Memory Used# [2025-01-09 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:52:05 [end_date_ymd] => 2025-01-09 18:52:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:52:05' and `end` < '2025-01-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-01-09 18:52:21] Production.INFO: count ==2777 [2025-01-09 18:52:22] Production.ERROR: pbx CDR StartTime 2025-01-09 15:52:05 - End Time 2025-01-09 18:52:05 [2025-01-09 18:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211531', 'tblTempUsageDetail_20' ) start [2025-01-09 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211531', 'tblTempUsageDetail_20' ) end [2025-01-09 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211531', 'tblTempVendorCDR_20' ) start [2025-01-09 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211531', 'tblTempVendorCDR_20' ) end [2025-01-09 18:52:22] Production.INFO: ProcessCDR(1,14211531,1,1,2) [2025-01-09 18:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211531', 'tblTempUsageDetail_20' ) start [2025-01-09 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211531', 'tblTempUsageDetail_20' ) end [2025-01-09 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:52:25] Production.INFO: ==25022== Releasing lock... [2025-01-09 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:52:25] Production.INFO: 49 MB #Memory Used# [2025-01-09 18:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:53:04 [end_date_ymd] => 2025-01-09 18:53:04 [RateCDR] => 1 ) [2025-01-09 18:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:53:04' and `end` < '2025-01-09 18:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:53:18] Production.INFO: count ==2749 [2025-01-09 18:53:18] Production.ERROR: pbx CDR StartTime 2025-01-09 15:53:04 - End Time 2025-01-09 18:53:04 [2025-01-09 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211536', 'tblTempUsageDetail_20' ) start [2025-01-09 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211536', 'tblTempUsageDetail_20' ) end [2025-01-09 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211536', 'tblTempVendorCDR_20' ) start [2025-01-09 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211536', 'tblTempVendorCDR_20' ) end [2025-01-09 18:53:18] Production.INFO: ProcessCDR(1,14211536,1,1,2) [2025-01-09 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211536', 'tblTempUsageDetail_20' ) start [2025-01-09 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211536', 'tblTempUsageDetail_20' ) end [2025-01-09 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:53:22] Production.INFO: ==25101== Releasing lock... [2025-01-09 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:53:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-09 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:54:05 [end_date_ymd] => 2025-01-09 18:54:05 [RateCDR] => 1 ) [2025-01-09 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:54:05' and `end` < '2025-01-09 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:54:18] Production.INFO: count ==2736 [2025-01-09 18:54:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:54:05 - End Time 2025-01-09 18:54:05 [2025-01-09 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211541', 'tblTempUsageDetail_20' ) start [2025-01-09 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211541', 'tblTempUsageDetail_20' ) end [2025-01-09 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211541', 'tblTempVendorCDR_20' ) start [2025-01-09 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211541', 'tblTempVendorCDR_20' ) end [2025-01-09 18:54:19] Production.INFO: ProcessCDR(1,14211541,1,1,2) [2025-01-09 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211541', 'tblTempUsageDetail_20' ) start [2025-01-09 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211541', 'tblTempUsageDetail_20' ) end [2025-01-09 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:54:23] Production.INFO: ==25180== Releasing lock... [2025-01-09 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:54:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-09 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:55:06 [end_date_ymd] => 2025-01-09 18:55:06 [RateCDR] => 1 ) [2025-01-09 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 15:55:06' and `end` < '2025-01-09 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 18:55:20] Production.INFO: count ==2724 [2025-01-09 18:55:21] Production.ERROR: pbx CDR StartTime 2025-01-09 15:55:06 - End Time 2025-01-09 18:55:06 [2025-01-09 18:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211546', 'tblTempUsageDetail_20' ) start [2025-01-09 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211546', 'tblTempUsageDetail_20' ) end [2025-01-09 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211546', 'tblTempVendorCDR_20' ) start [2025-01-09 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211546', 'tblTempVendorCDR_20' ) end [2025-01-09 18:55:21] Production.INFO: ProcessCDR(1,14211546,1,1,2) [2025-01-09 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211546', 'tblTempUsageDetail_20' ) start [2025-01-09 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211546', 'tblTempUsageDetail_20' ) end [2025-01-09 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:55:24] Production.INFO: ==25260== Releasing lock... [2025-01-09 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:55:24] Production.INFO: 48.5 MB #Memory Used# [2025-01-09 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:56:05 [end_date_ymd] => 2025-01-09 18:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:56:05' and `end` < '2025-01-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-01-09 18:56:18] Production.INFO: count ==2729 [2025-01-09 18:56:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:56:05 - End Time 2025-01-09 18:56:05 [2025-01-09 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211551', 'tblTempUsageDetail_20' ) start [2025-01-09 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211551', 'tblTempUsageDetail_20' ) end [2025-01-09 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211551', 'tblTempVendorCDR_20' ) start [2025-01-09 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211551', 'tblTempVendorCDR_20' ) end [2025-01-09 18:56:19] Production.INFO: ProcessCDR(1,14211551,1,1,2) [2025-01-09 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211551', 'tblTempUsageDetail_20' ) start [2025-01-09 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211551', 'tblTempUsageDetail_20' ) end [2025-01-09 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:56:24] Production.INFO: ==25344== Releasing lock... [2025-01-09 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:56:24] Production.INFO: 48.5 MB #Memory Used# [2025-01-09 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:57:05 [end_date_ymd] => 2025-01-09 18:57:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:57:05' and `end` < '2025-01-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-01-09 18:57:19] Production.INFO: count ==2727 [2025-01-09 18:57:20] Production.ERROR: pbx CDR StartTime 2025-01-09 15:57:05 - End Time 2025-01-09 18:57:05 [2025-01-09 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211556', 'tblTempUsageDetail_20' ) start [2025-01-09 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211556', 'tblTempUsageDetail_20' ) end [2025-01-09 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211556', 'tblTempVendorCDR_20' ) start [2025-01-09 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211556', 'tblTempVendorCDR_20' ) end [2025-01-09 18:57:20] Production.INFO: ProcessCDR(1,14211556,1,1,2) [2025-01-09 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211556', 'tblTempUsageDetail_20' ) start [2025-01-09 18:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211556', 'tblTempUsageDetail_20' ) end [2025-01-09 18:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:57:23] Production.INFO: ==25429== Releasing lock... [2025-01-09 18:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:57:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-09 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:58:05 [end_date_ymd] => 2025-01-09 18:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:58:05' and `end` < '2025-01-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-01-09 18:58:18] Production.INFO: count ==2708 [2025-01-09 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-09 15:58:05 - End Time 2025-01-09 18:58:05 [2025-01-09 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211561', 'tblTempUsageDetail_20' ) start [2025-01-09 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211561', 'tblTempUsageDetail_20' ) end [2025-01-09 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211561', 'tblTempVendorCDR_20' ) start [2025-01-09 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211561', 'tblTempVendorCDR_20' ) end [2025-01-09 18:58:19] Production.INFO: ProcessCDR(1,14211561,1,1,2) [2025-01-09 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211561', 'tblTempUsageDetail_20' ) start [2025-01-09 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211561', 'tblTempUsageDetail_20' ) end [2025-01-09 18:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:58:23] Production.INFO: ==25517== Releasing lock... [2025-01-09 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:58:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-09 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 15:59:05 [end_date_ymd] => 2025-01-09 18:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 15:59:05' and `end` < '2025-01-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-01-09 18:59:21] Production.INFO: count ==2687 [2025-01-09 18:59:22] Production.ERROR: pbx CDR StartTime 2025-01-09 15:59:05 - End Time 2025-01-09 18:59:05 [2025-01-09 18:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211566', 'tblTempUsageDetail_20' ) start [2025-01-09 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211566', 'tblTempUsageDetail_20' ) end [2025-01-09 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211566', 'tblTempVendorCDR_20' ) start [2025-01-09 18:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211566', 'tblTempVendorCDR_20' ) end [2025-01-09 18:59:22] Production.INFO: ProcessCDR(1,14211566,1,1,2) [2025-01-09 18:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211566', 'tblTempUsageDetail_20' ) start [2025-01-09 18:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211566', 'tblTempUsageDetail_20' ) end [2025-01-09 18:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 18:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 18:59:25] Production.INFO: ==25599== Releasing lock... [2025-01-09 18:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 18:59:25] Production.INFO: 48.25 MB #Memory Used# [2025-01-09 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:00:05 [end_date_ymd] => 2025-01-09 19:00:05 [RateCDR] => 1 ) [2025-01-09 19:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:00:05' and `end` < '2025-01-09 19:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:00:19] Production.INFO: count ==2680 [2025-01-09 19:00:20] Production.ERROR: pbx CDR StartTime 2025-01-09 16:00:05 - End Time 2025-01-09 19:00:05 [2025-01-09 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211572', 'tblTempUsageDetail_20' ) start [2025-01-09 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211572', 'tblTempUsageDetail_20' ) end [2025-01-09 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211572', 'tblTempVendorCDR_20' ) start [2025-01-09 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211572', 'tblTempVendorCDR_20' ) end [2025-01-09 19:00:20] Production.INFO: ProcessCDR(1,14211572,1,1,2) [2025-01-09 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211572', 'tblTempUsageDetail_20' ) start [2025-01-09 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211572', 'tblTempUsageDetail_20' ) end [2025-01-09 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:00:24] Production.INFO: ==25694== Releasing lock... [2025-01-09 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:00:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-09 19:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:01:04 [end_date_ymd] => 2025-01-09 19:01:04 [RateCDR] => 1 ) [2025-01-09 19:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:01:04' and `end` < '2025-01-09 19:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:01:18] Production.INFO: count ==2636 [2025-01-09 19:01:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:01:04 - End Time 2025-01-09 19:01:04 [2025-01-09 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211577', 'tblTempUsageDetail_20' ) start [2025-01-09 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211577', 'tblTempUsageDetail_20' ) end [2025-01-09 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211577', 'tblTempVendorCDR_20' ) start [2025-01-09 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211577', 'tblTempVendorCDR_20' ) end [2025-01-09 19:01:19] Production.INFO: ProcessCDR(1,14211577,1,1,2) [2025-01-09 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211577', 'tblTempUsageDetail_20' ) start [2025-01-09 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211577', 'tblTempUsageDetail_20' ) end [2025-01-09 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:01:22] Production.INFO: ==25796== Releasing lock... [2025-01-09 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:01:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-09 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:02:05 [end_date_ymd] => 2025-01-09 19:02:05 [RateCDR] => 1 ) [2025-01-09 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:02:05' and `end` < '2025-01-09 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:02:18] Production.INFO: count ==2624 [2025-01-09 19:02:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:02:05 - End Time 2025-01-09 19:02:05 [2025-01-09 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211582', 'tblTempUsageDetail_20' ) start [2025-01-09 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211582', 'tblTempUsageDetail_20' ) end [2025-01-09 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211582', 'tblTempVendorCDR_20' ) start [2025-01-09 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211582', 'tblTempVendorCDR_20' ) end [2025-01-09 19:02:19] Production.INFO: ProcessCDR(1,14211582,1,1,2) [2025-01-09 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211582', 'tblTempUsageDetail_20' ) start [2025-01-09 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211582', 'tblTempUsageDetail_20' ) end [2025-01-09 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:02:24] Production.INFO: ==25962== Releasing lock... [2025-01-09 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:02:24] Production.INFO: 47.75 MB #Memory Used# [2025-01-09 19:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:03:04 [end_date_ymd] => 2025-01-09 19:03:04 [RateCDR] => 1 ) [2025-01-09 19:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:03:04' and `end` < '2025-01-09 19:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:03:18] Production.INFO: count ==2616 [2025-01-09 19:03:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:03:04 - End Time 2025-01-09 19:03:04 [2025-01-09 19:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211587', 'tblTempUsageDetail_20' ) start [2025-01-09 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211587', 'tblTempUsageDetail_20' ) end [2025-01-09 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211587', 'tblTempVendorCDR_20' ) start [2025-01-09 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211587', 'tblTempVendorCDR_20' ) end [2025-01-09 19:03:19] Production.INFO: ProcessCDR(1,14211587,1,1,2) [2025-01-09 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211587', 'tblTempUsageDetail_20' ) start [2025-01-09 19:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211587', 'tblTempUsageDetail_20' ) end [2025-01-09 19:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:03:22] Production.INFO: ==26090== Releasing lock... [2025-01-09 19:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:03:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-09 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:04:05 [end_date_ymd] => 2025-01-09 19:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:04:05' and `end` < '2025-01-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-01-09 19:04:19] Production.INFO: count ==2611 [2025-01-09 19:04:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:04:05 - End Time 2025-01-09 19:04:05 [2025-01-09 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211592', 'tblTempUsageDetail_20' ) start [2025-01-09 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211592', 'tblTempUsageDetail_20' ) end [2025-01-09 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211592', 'tblTempVendorCDR_20' ) start [2025-01-09 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211592', 'tblTempVendorCDR_20' ) end [2025-01-09 19:04:19] Production.INFO: ProcessCDR(1,14211592,1,1,2) [2025-01-09 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211592', 'tblTempUsageDetail_20' ) start [2025-01-09 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211592', 'tblTempUsageDetail_20' ) end [2025-01-09 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:04:23] Production.INFO: ==26182== Releasing lock... [2025-01-09 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:04:23] Production.INFO: 48 MB #Memory Used# [2025-01-09 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:05:05 [end_date_ymd] => 2025-01-09 19:05:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:05:05' and `end` < '2025-01-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-01-09 19:05:18] Production.INFO: count ==2596 [2025-01-09 19:05:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:05:05 - End Time 2025-01-09 19:05:05 [2025-01-09 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211597', 'tblTempUsageDetail_20' ) start [2025-01-09 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211597', 'tblTempUsageDetail_20' ) end [2025-01-09 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211597', 'tblTempVendorCDR_20' ) start [2025-01-09 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211597', 'tblTempVendorCDR_20' ) end [2025-01-09 19:05:19] Production.INFO: ProcessCDR(1,14211597,1,1,2) [2025-01-09 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211597', 'tblTempUsageDetail_20' ) start [2025-01-09 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211597', 'tblTempUsageDetail_20' ) end [2025-01-09 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:05:22] Production.INFO: ==26377== Releasing lock... [2025-01-09 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:05:22] Production.INFO: 47.5 MB #Memory Used# [2025-01-09 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:06:05 [end_date_ymd] => 2025-01-09 19:06:05 [RateCDR] => 1 ) [2025-01-09 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:06:05' and `end` < '2025-01-09 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:06:18] Production.INFO: count ==2576 [2025-01-09 19:06:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:06:05 - End Time 2025-01-09 19:06:05 [2025-01-09 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211602', 'tblTempUsageDetail_20' ) start [2025-01-09 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211602', 'tblTempUsageDetail_20' ) end [2025-01-09 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211602', 'tblTempVendorCDR_20' ) start [2025-01-09 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211602', 'tblTempVendorCDR_20' ) end [2025-01-09 19:06:19] Production.INFO: ProcessCDR(1,14211602,1,1,2) [2025-01-09 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211602', 'tblTempUsageDetail_20' ) start [2025-01-09 19:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211602', 'tblTempUsageDetail_20' ) end [2025-01-09 19:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:06:22] Production.INFO: ==26502== Releasing lock... [2025-01-09 19:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:06:22] Production.INFO: 47.5 MB #Memory Used# [2025-01-09 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:07:05 [end_date_ymd] => 2025-01-09 19:07:05 [RateCDR] => 1 ) [2025-01-09 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:07:05' and `end` < '2025-01-09 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:07:18] Production.INFO: count ==2572 [2025-01-09 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:07:05 - End Time 2025-01-09 19:07:05 [2025-01-09 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211607', 'tblTempUsageDetail_20' ) start [2025-01-09 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211607', 'tblTempUsageDetail_20' ) end [2025-01-09 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211607', 'tblTempVendorCDR_20' ) start [2025-01-09 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211607', 'tblTempVendorCDR_20' ) end [2025-01-09 19:07:19] Production.INFO: ProcessCDR(1,14211607,1,1,2) [2025-01-09 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211607', 'tblTempUsageDetail_20' ) start [2025-01-09 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211607', 'tblTempUsageDetail_20' ) end [2025-01-09 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:07:22] Production.INFO: ==26640== Releasing lock... [2025-01-09 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:07:22] Production.INFO: 47.75 MB #Memory Used# [2025-01-09 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:08:05 [end_date_ymd] => 2025-01-09 19:08:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:08:05' and `end` < '2025-01-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-01-09 19:08:19] Production.INFO: count ==2551 [2025-01-09 19:08:20] Production.ERROR: pbx CDR StartTime 2025-01-09 16:08:05 - End Time 2025-01-09 19:08:05 [2025-01-09 19:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211612', 'tblTempUsageDetail_20' ) start [2025-01-09 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211612', 'tblTempUsageDetail_20' ) end [2025-01-09 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211612', 'tblTempVendorCDR_20' ) start [2025-01-09 19:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211612', 'tblTempVendorCDR_20' ) end [2025-01-09 19:08:20] Production.INFO: ProcessCDR(1,14211612,1,1,2) [2025-01-09 19:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211612', 'tblTempUsageDetail_20' ) start [2025-01-09 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211612', 'tblTempUsageDetail_20' ) end [2025-01-09 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:08:23] Production.INFO: ==26809== Releasing lock... [2025-01-09 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:08:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-09 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:09:05 [end_date_ymd] => 2025-01-09 19:09:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:09:05' and `end` < '2025-01-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-01-09 19:09:19] Production.INFO: count ==2535 [2025-01-09 19:09:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:09:05 - End Time 2025-01-09 19:09:05 [2025-01-09 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211617', 'tblTempUsageDetail_20' ) start [2025-01-09 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211617', 'tblTempUsageDetail_20' ) end [2025-01-09 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211617', 'tblTempVendorCDR_20' ) start [2025-01-09 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211617', 'tblTempVendorCDR_20' ) end [2025-01-09 19:09:20] Production.INFO: ProcessCDR(1,14211617,1,1,2) [2025-01-09 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211617', 'tblTempUsageDetail_20' ) start [2025-01-09 19:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211617', 'tblTempUsageDetail_20' ) end [2025-01-09 19:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:09:23] Production.INFO: ==26985== Releasing lock... [2025-01-09 19:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:09:23] Production.INFO: 47 MB #Memory Used# [2025-01-09 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:10:05 [end_date_ymd] => 2025-01-09 19:10:05 [RateCDR] => 1 ) [2025-01-09 19:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:10:05' and `end` < '2025-01-09 19:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:10:19] Production.INFO: count ==2536 [2025-01-09 19:10:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:10:05 - End Time 2025-01-09 19:10:05 [2025-01-09 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211623', 'tblTempUsageDetail_20' ) start [2025-01-09 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211623', 'tblTempUsageDetail_20' ) end [2025-01-09 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211623', 'tblTempVendorCDR_20' ) start [2025-01-09 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211623', 'tblTempVendorCDR_20' ) end [2025-01-09 19:10:19] Production.INFO: ProcessCDR(1,14211623,1,1,2) [2025-01-09 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211623', 'tblTempUsageDetail_20' ) start [2025-01-09 19:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211623', 'tblTempUsageDetail_20' ) end [2025-01-09 19:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:10:22] Production.INFO: ==27127== Releasing lock... [2025-01-09 19:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:10:22] Production.INFO: 47 MB #Memory Used# [2025-01-09 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:11:05 [end_date_ymd] => 2025-01-09 19:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:11:05' and `end` < '2025-01-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-01-09 19:11:18] Production.INFO: count ==2496 [2025-01-09 19:11:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:11:05 - End Time 2025-01-09 19:11:05 [2025-01-09 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211628', 'tblTempUsageDetail_20' ) start [2025-01-09 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211628', 'tblTempUsageDetail_20' ) end [2025-01-09 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211628', 'tblTempVendorCDR_20' ) start [2025-01-09 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211628', 'tblTempVendorCDR_20' ) end [2025-01-09 19:11:19] Production.INFO: ProcessCDR(1,14211628,1,1,2) [2025-01-09 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211628', 'tblTempUsageDetail_20' ) start [2025-01-09 19:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211628', 'tblTempUsageDetail_20' ) end [2025-01-09 19:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:11:23] Production.INFO: ==27265== Releasing lock... [2025-01-09 19:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:11:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-09 19:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:12:04 [end_date_ymd] => 2025-01-09 19:12:04 [RateCDR] => 1 ) [2025-01-09 19:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:12:04' and `end` < '2025-01-09 19:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:12:18] Production.INFO: count ==2493 [2025-01-09 19:12:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:12:04 - End Time 2025-01-09 19:12:04 [2025-01-09 19:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211633', 'tblTempUsageDetail_20' ) start [2025-01-09 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211633', 'tblTempUsageDetail_20' ) end [2025-01-09 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211633', 'tblTempVendorCDR_20' ) start [2025-01-09 19:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211633', 'tblTempVendorCDR_20' ) end [2025-01-09 19:12:18] Production.INFO: ProcessCDR(1,14211633,1,1,2) [2025-01-09 19:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211633', 'tblTempUsageDetail_20' ) start [2025-01-09 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211633', 'tblTempUsageDetail_20' ) end [2025-01-09 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:12:22] Production.INFO: ==27481== Releasing lock... [2025-01-09 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:12:22] Production.INFO: 46.75 MB #Memory Used# [2025-01-09 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:13:05 [end_date_ymd] => 2025-01-09 19:13:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:13:05' and `end` < '2025-01-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-01-09 19:13:19] Production.INFO: count ==2479 [2025-01-09 19:13:20] Production.ERROR: pbx CDR StartTime 2025-01-09 16:13:05 - End Time 2025-01-09 19:13:05 [2025-01-09 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211638', 'tblTempUsageDetail_20' ) start [2025-01-09 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211638', 'tblTempUsageDetail_20' ) end [2025-01-09 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211638', 'tblTempVendorCDR_20' ) start [2025-01-09 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211638', 'tblTempVendorCDR_20' ) end [2025-01-09 19:13:20] Production.INFO: ProcessCDR(1,14211638,1,1,2) [2025-01-09 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211638', 'tblTempUsageDetail_20' ) start [2025-01-09 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211638', 'tblTempUsageDetail_20' ) end [2025-01-09 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:13:23] Production.INFO: ==27614== Releasing lock... [2025-01-09 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:13:23] Production.INFO: 46.75 MB #Memory Used# [2025-01-09 19:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:14:04 [end_date_ymd] => 2025-01-09 19:14:04 [RateCDR] => 1 ) [2025-01-09 19:14:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:14:04' and `end` < '2025-01-09 19:14:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:14:18] Production.INFO: count ==2470 [2025-01-09 19:14:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:14:04 - End Time 2025-01-09 19:14:04 [2025-01-09 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211643', 'tblTempUsageDetail_20' ) start [2025-01-09 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211643', 'tblTempUsageDetail_20' ) end [2025-01-09 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211643', 'tblTempVendorCDR_20' ) start [2025-01-09 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211643', 'tblTempVendorCDR_20' ) end [2025-01-09 19:14:18] Production.INFO: ProcessCDR(1,14211643,1,1,2) [2025-01-09 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211643', 'tblTempUsageDetail_20' ) start [2025-01-09 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211643', 'tblTempUsageDetail_20' ) end [2025-01-09 19:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:14:21] Production.INFO: ==27739== Releasing lock... [2025-01-09 19:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:14:21] Production.INFO: 46.5 MB #Memory Used# [2025-01-09 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:15:04 [end_date_ymd] => 2025-01-09 19:15:04 [RateCDR] => 1 ) [2025-01-09 19:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:15:04' and `end` < '2025-01-09 19:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:15:18] Production.INFO: count ==2442 [2025-01-09 19:15:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:15:04 - End Time 2025-01-09 19:15:04 [2025-01-09 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211648', 'tblTempUsageDetail_20' ) start [2025-01-09 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211648', 'tblTempUsageDetail_20' ) end [2025-01-09 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211648', 'tblTempVendorCDR_20' ) start [2025-01-09 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211648', 'tblTempVendorCDR_20' ) end [2025-01-09 19:15:19] Production.INFO: ProcessCDR(1,14211648,1,1,2) [2025-01-09 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211648', 'tblTempUsageDetail_20' ) start [2025-01-09 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211648', 'tblTempUsageDetail_20' ) end [2025-01-09 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:15:22] Production.INFO: ==27910== Releasing lock... [2025-01-09 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:15:22] Production.INFO: 46.5 MB #Memory Used# [2025-01-09 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:16:05 [end_date_ymd] => 2025-01-09 19:16:05 [RateCDR] => 1 ) [2025-01-09 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:16:05' and `end` < '2025-01-09 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:16:19] Production.INFO: count ==2416 [2025-01-09 19:16:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:16:05 - End Time 2025-01-09 19:16:05 [2025-01-09 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211653', 'tblTempUsageDetail_20' ) start [2025-01-09 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211653', 'tblTempUsageDetail_20' ) end [2025-01-09 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211653', 'tblTempVendorCDR_20' ) start [2025-01-09 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211653', 'tblTempVendorCDR_20' ) end [2025-01-09 19:16:19] Production.INFO: ProcessCDR(1,14211653,1,1,2) [2025-01-09 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211653', 'tblTempUsageDetail_20' ) start [2025-01-09 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211653', 'tblTempUsageDetail_20' ) end [2025-01-09 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:16:22] Production.INFO: ==28079== Releasing lock... [2025-01-09 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:16:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-09 19:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:17:04 [end_date_ymd] => 2025-01-09 19:17:04 [RateCDR] => 1 ) [2025-01-09 19:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:17:04' and `end` < '2025-01-09 19:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:17:18] Production.INFO: count ==2413 [2025-01-09 19:17:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:17:04 - End Time 2025-01-09 19:17:04 [2025-01-09 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211658', 'tblTempUsageDetail_20' ) start [2025-01-09 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211658', 'tblTempUsageDetail_20' ) end [2025-01-09 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211658', 'tblTempVendorCDR_20' ) start [2025-01-09 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211658', 'tblTempVendorCDR_20' ) end [2025-01-09 19:17:18] Production.INFO: ProcessCDR(1,14211658,1,1,2) [2025-01-09 19:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211658', 'tblTempUsageDetail_20' ) start [2025-01-09 19:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211658', 'tblTempUsageDetail_20' ) end [2025-01-09 19:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:17:21] Production.INFO: ==28208== Releasing lock... [2025-01-09 19:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:17:21] Production.INFO: 46.25 MB #Memory Used# [2025-01-09 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:18:05 [end_date_ymd] => 2025-01-09 19:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:18:05' and `end` < '2025-01-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-01-09 19:18:18] Production.INFO: count ==2400 [2025-01-09 19:18:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:18:05 - End Time 2025-01-09 19:18:05 [2025-01-09 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211663', 'tblTempUsageDetail_20' ) start [2025-01-09 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211663', 'tblTempUsageDetail_20' ) end [2025-01-09 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211663', 'tblTempVendorCDR_20' ) start [2025-01-09 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211663', 'tblTempVendorCDR_20' ) end [2025-01-09 19:18:19] Production.INFO: ProcessCDR(1,14211663,1,1,2) [2025-01-09 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211663', 'tblTempUsageDetail_20' ) start [2025-01-09 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211663', 'tblTempUsageDetail_20' ) end [2025-01-09 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:18:23] Production.INFO: ==28340== Releasing lock... [2025-01-09 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:18:23] Production.INFO: 46 MB #Memory Used# [2025-01-09 19:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:19:04 [end_date_ymd] => 2025-01-09 19:19:04 [RateCDR] => 1 ) [2025-01-09 19:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:19:04' and `end` < '2025-01-09 19:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:19:18] Production.INFO: count ==2392 [2025-01-09 19:19:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:19:04 - End Time 2025-01-09 19:19:04 [2025-01-09 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211668', 'tblTempUsageDetail_20' ) start [2025-01-09 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211668', 'tblTempUsageDetail_20' ) end [2025-01-09 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211668', 'tblTempVendorCDR_20' ) start [2025-01-09 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211668', 'tblTempVendorCDR_20' ) end [2025-01-09 19:19:19] Production.INFO: ProcessCDR(1,14211668,1,1,2) [2025-01-09 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211668', 'tblTempUsageDetail_20' ) start [2025-01-09 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211668', 'tblTempUsageDetail_20' ) end [2025-01-09 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:19:22] Production.INFO: ==28491== Releasing lock... [2025-01-09 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:19:22] Production.INFO: 46 MB #Memory Used# [2025-01-09 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:20:06 [end_date_ymd] => 2025-01-09 19:20:06 [RateCDR] => 1 ) [2025-01-09 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:20:06' and `end` < '2025-01-09 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:20:19] Production.INFO: count ==2378 [2025-01-09 19:20:20] Production.ERROR: pbx CDR StartTime 2025-01-09 16:20:06 - End Time 2025-01-09 19:20:06 [2025-01-09 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211673', 'tblTempUsageDetail_20' ) start [2025-01-09 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211673', 'tblTempUsageDetail_20' ) end [2025-01-09 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211673', 'tblTempVendorCDR_20' ) start [2025-01-09 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211673', 'tblTempVendorCDR_20' ) end [2025-01-09 19:20:20] Production.INFO: ProcessCDR(1,14211673,1,1,2) [2025-01-09 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211673', 'tblTempUsageDetail_20' ) start [2025-01-09 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211673', 'tblTempUsageDetail_20' ) end [2025-01-09 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:20:24] Production.INFO: ==28582== Releasing lock... [2025-01-09 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:20:24] Production.INFO: 46.25 MB #Memory Used# [2025-01-09 19:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:21:04 [end_date_ymd] => 2025-01-09 19:21:04 [RateCDR] => 1 ) [2025-01-09 19:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:21:04' and `end` < '2025-01-09 19:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:21:18] Production.INFO: count ==2315 [2025-01-09 19:21:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:21:04 - End Time 2025-01-09 19:21:04 [2025-01-09 19:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211679', 'tblTempUsageDetail_20' ) start [2025-01-09 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211679', 'tblTempUsageDetail_20' ) end [2025-01-09 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211679', 'tblTempVendorCDR_20' ) start [2025-01-09 19:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211679', 'tblTempVendorCDR_20' ) end [2025-01-09 19:21:18] Production.INFO: ProcessCDR(1,14211679,1,1,2) [2025-01-09 19:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211679', 'tblTempUsageDetail_20' ) start [2025-01-09 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211679', 'tblTempUsageDetail_20' ) end [2025-01-09 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:21:22] Production.INFO: ==28672== Releasing lock... [2025-01-09 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:21:22] Production.INFO: 45.5 MB #Memory Used# [2025-01-09 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:22:05 [end_date_ymd] => 2025-01-09 19:22:05 [RateCDR] => 1 ) [2025-01-09 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:22:05' and `end` < '2025-01-09 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:22:18] Production.INFO: count ==2273 [2025-01-09 19:22:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:22:05 - End Time 2025-01-09 19:22:05 [2025-01-09 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211684', 'tblTempUsageDetail_20' ) start [2025-01-09 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211684', 'tblTempUsageDetail_20' ) end [2025-01-09 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211684', 'tblTempVendorCDR_20' ) start [2025-01-09 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211684', 'tblTempVendorCDR_20' ) end [2025-01-09 19:22:19] Production.INFO: ProcessCDR(1,14211684,1,1,2) [2025-01-09 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211684', 'tblTempUsageDetail_20' ) start [2025-01-09 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211684', 'tblTempUsageDetail_20' ) end [2025-01-09 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:22:23] Production.INFO: ==28759== Releasing lock... [2025-01-09 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:22:23] Production.INFO: 45.25 MB #Memory Used# [2025-01-09 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:23:05 [end_date_ymd] => 2025-01-09 19:23:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:23:05' and `end` < '2025-01-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-01-09 19:23:19] Production.INFO: count ==2253 [2025-01-09 19:23:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:23:05 - End Time 2025-01-09 19:23:05 [2025-01-09 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211689', 'tblTempUsageDetail_20' ) start [2025-01-09 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211689', 'tblTempUsageDetail_20' ) end [2025-01-09 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211689', 'tblTempVendorCDR_20' ) start [2025-01-09 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211689', 'tblTempVendorCDR_20' ) end [2025-01-09 19:23:19] Production.INFO: ProcessCDR(1,14211689,1,1,2) [2025-01-09 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211689', 'tblTempUsageDetail_20' ) start [2025-01-09 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211689', 'tblTempUsageDetail_20' ) end [2025-01-09 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:23:24] Production.INFO: ==28849== Releasing lock... [2025-01-09 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:23:24] Production.INFO: 45 MB #Memory Used# [2025-01-09 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:24:05 [end_date_ymd] => 2025-01-09 19:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:24:05' and `end` < '2025-01-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-01-09 19:24:18] Production.INFO: count ==2250 [2025-01-09 19:24:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:24:05 - End Time 2025-01-09 19:24:05 [2025-01-09 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211694', 'tblTempUsageDetail_20' ) start [2025-01-09 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211694', 'tblTempUsageDetail_20' ) end [2025-01-09 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211694', 'tblTempVendorCDR_20' ) start [2025-01-09 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211694', 'tblTempVendorCDR_20' ) end [2025-01-09 19:24:19] Production.INFO: ProcessCDR(1,14211694,1,1,2) [2025-01-09 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211694', 'tblTempUsageDetail_20' ) start [2025-01-09 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211694', 'tblTempUsageDetail_20' ) end [2025-01-09 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:24:22] Production.INFO: ==28944== Releasing lock... [2025-01-09 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:24:22] Production.INFO: 45 MB #Memory Used# [2025-01-09 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:25:05 [end_date_ymd] => 2025-01-09 19:25:05 [RateCDR] => 1 ) [2025-01-09 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:25:05' and `end` < '2025-01-09 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:25:18] Production.INFO: count ==2234 [2025-01-09 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:25:05 - End Time 2025-01-09 19:25:05 [2025-01-09 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211699', 'tblTempUsageDetail_20' ) start [2025-01-09 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211699', 'tblTempUsageDetail_20' ) end [2025-01-09 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211699', 'tblTempVendorCDR_20' ) start [2025-01-09 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211699', 'tblTempVendorCDR_20' ) end [2025-01-09 19:25:19] Production.INFO: ProcessCDR(1,14211699,1,1,2) [2025-01-09 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211699', 'tblTempUsageDetail_20' ) start [2025-01-09 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211699', 'tblTempUsageDetail_20' ) end [2025-01-09 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:25:22] Production.INFO: ==29035== Releasing lock... [2025-01-09 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:25:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-09 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:26:05 [end_date_ymd] => 2025-01-09 19:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:26:05' and `end` < '2025-01-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-01-09 19:26:20] Production.INFO: count ==2223 [2025-01-09 19:26:20] Production.ERROR: pbx CDR StartTime 2025-01-09 16:26:05 - End Time 2025-01-09 19:26:05 [2025-01-09 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211704', 'tblTempUsageDetail_20' ) start [2025-01-09 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211704', 'tblTempUsageDetail_20' ) end [2025-01-09 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211704', 'tblTempVendorCDR_20' ) start [2025-01-09 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211704', 'tblTempVendorCDR_20' ) end [2025-01-09 19:26:20] Production.INFO: ProcessCDR(1,14211704,1,1,2) [2025-01-09 19:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211704', 'tblTempUsageDetail_20' ) start [2025-01-09 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211704', 'tblTempUsageDetail_20' ) end [2025-01-09 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:26:23] Production.INFO: ==29121== Releasing lock... [2025-01-09 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:26:23] Production.INFO: 44.75 MB #Memory Used# [2025-01-09 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:27:05 [end_date_ymd] => 2025-01-09 19:27:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:27:05' and `end` < '2025-01-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-01-09 19:27:18] Production.INFO: count ==2204 [2025-01-09 19:27:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:27:05 - End Time 2025-01-09 19:27:05 [2025-01-09 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211709', 'tblTempUsageDetail_20' ) start [2025-01-09 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211709', 'tblTempUsageDetail_20' ) end [2025-01-09 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211709', 'tblTempVendorCDR_20' ) start [2025-01-09 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211709', 'tblTempVendorCDR_20' ) end [2025-01-09 19:27:19] Production.INFO: ProcessCDR(1,14211709,1,1,2) [2025-01-09 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211709', 'tblTempUsageDetail_20' ) start [2025-01-09 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211709', 'tblTempUsageDetail_20' ) end [2025-01-09 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:27:22] Production.INFO: ==29203== Releasing lock... [2025-01-09 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:27:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-09 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:28:05 [end_date_ymd] => 2025-01-09 19:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:28:05' and `end` < '2025-01-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-01-09 19:28:19] Production.INFO: count ==2180 [2025-01-09 19:28:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:28:05 - End Time 2025-01-09 19:28:05 [2025-01-09 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211714', 'tblTempUsageDetail_20' ) start [2025-01-09 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211714', 'tblTempUsageDetail_20' ) end [2025-01-09 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211714', 'tblTempVendorCDR_20' ) start [2025-01-09 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211714', 'tblTempVendorCDR_20' ) end [2025-01-09 19:28:19] Production.INFO: ProcessCDR(1,14211714,1,1,2) [2025-01-09 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211714', 'tblTempUsageDetail_20' ) start [2025-01-09 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211714', 'tblTempUsageDetail_20' ) end [2025-01-09 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:28:22] Production.INFO: ==29285== Releasing lock... [2025-01-09 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:28:22] Production.INFO: 44.5 MB #Memory Used# [2025-01-09 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:29:04 [end_date_ymd] => 2025-01-09 19:29:04 [RateCDR] => 1 ) [2025-01-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-01-09 16:29:04' and `end` < '2025-01-09 19:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:29:19] Production.INFO: count ==2173 [2025-01-09 19:29:20] Production.ERROR: pbx CDR StartTime 2025-01-09 16:29:04 - End Time 2025-01-09 19:29:04 [2025-01-09 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211719', 'tblTempUsageDetail_20' ) start [2025-01-09 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211719', 'tblTempUsageDetail_20' ) end [2025-01-09 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211719', 'tblTempVendorCDR_20' ) start [2025-01-09 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211719', 'tblTempVendorCDR_20' ) end [2025-01-09 19:29:20] Production.INFO: ProcessCDR(1,14211719,1,1,2) [2025-01-09 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211719', 'tblTempUsageDetail_20' ) start [2025-01-09 19:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211719', 'tblTempUsageDetail_20' ) end [2025-01-09 19:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:29:23] Production.INFO: ==29369== Releasing lock... [2025-01-09 19:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:29:23] Production.INFO: 44.5 MB #Memory Used# [2025-01-09 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:30:06 [end_date_ymd] => 2025-01-09 19:30:06 [RateCDR] => 1 ) [2025-01-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-01-09 16:30:06' and `end` < '2025-01-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-01-09 19:30:19] Production.INFO: count ==2165 [2025-01-09 19:30:20] Production.ERROR: pbx CDR StartTime 2025-01-09 16:30:06 - End Time 2025-01-09 19:30:06 [2025-01-09 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211725', 'tblTempUsageDetail_20' ) start [2025-01-09 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211725', 'tblTempUsageDetail_20' ) end [2025-01-09 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211725', 'tblTempVendorCDR_20' ) start [2025-01-09 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211725', 'tblTempVendorCDR_20' ) end [2025-01-09 19:30:20] Production.INFO: ProcessCDR(1,14211725,1,1,2) [2025-01-09 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211725', 'tblTempUsageDetail_20' ) start [2025-01-09 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211725', 'tblTempUsageDetail_20' ) end [2025-01-09 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:30:23] Production.INFO: ==29453== Releasing lock... [2025-01-09 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:30:23] Production.INFO: 44 MB #Memory Used# [2025-01-09 19:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:31:04 [end_date_ymd] => 2025-01-09 19:31:04 [RateCDR] => 1 ) [2025-01-09 19:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:31:04' and `end` < '2025-01-09 19:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:31:19] Production.INFO: count ==2137 [2025-01-09 19:31:20] Production.ERROR: pbx CDR StartTime 2025-01-09 16:31:04 - End Time 2025-01-09 19:31:04 [2025-01-09 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211730', 'tblTempUsageDetail_20' ) start [2025-01-09 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211730', 'tblTempUsageDetail_20' ) end [2025-01-09 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211730', 'tblTempVendorCDR_20' ) start [2025-01-09 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211730', 'tblTempVendorCDR_20' ) end [2025-01-09 19:31:20] Production.INFO: ProcessCDR(1,14211730,1,1,2) [2025-01-09 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211730', 'tblTempUsageDetail_20' ) start [2025-01-09 19:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211730', 'tblTempUsageDetail_20' ) end [2025-01-09 19:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:31:24] Production.INFO: ==29537== Releasing lock... [2025-01-09 19:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:31:24] Production.INFO: 44.25 MB #Memory Used# [2025-01-09 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:32:05 [end_date_ymd] => 2025-01-09 19:32:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:32:05' and `end` < '2025-01-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-01-09 19:32:19] Production.INFO: count ==2130 [2025-01-09 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:32:05 - End Time 2025-01-09 19:32:05 [2025-01-09 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211735', 'tblTempUsageDetail_20' ) start [2025-01-09 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211735', 'tblTempUsageDetail_20' ) end [2025-01-09 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211735', 'tblTempVendorCDR_20' ) start [2025-01-09 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211735', 'tblTempVendorCDR_20' ) end [2025-01-09 19:32:19] Production.INFO: ProcessCDR(1,14211735,1,1,2) [2025-01-09 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211735', 'tblTempUsageDetail_20' ) start [2025-01-09 19:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211735', 'tblTempUsageDetail_20' ) end [2025-01-09 19:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:32:22] Production.INFO: ==29622== Releasing lock... [2025-01-09 19:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:32:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-09 19:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:33:04 [end_date_ymd] => 2025-01-09 19:33:04 [RateCDR] => 1 ) [2025-01-09 19:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:33:04' and `end` < '2025-01-09 19:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:33:17] Production.INFO: count ==2123 [2025-01-09 19:33:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:33:04 - End Time 2025-01-09 19:33:04 [2025-01-09 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211740', 'tblTempUsageDetail_20' ) start [2025-01-09 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211740', 'tblTempUsageDetail_20' ) end [2025-01-09 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211740', 'tblTempVendorCDR_20' ) start [2025-01-09 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211740', 'tblTempVendorCDR_20' ) end [2025-01-09 19:33:18] Production.INFO: ProcessCDR(1,14211740,1,1,2) [2025-01-09 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211740', 'tblTempUsageDetail_20' ) start [2025-01-09 19:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211740', 'tblTempUsageDetail_20' ) end [2025-01-09 19:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:33:23] Production.INFO: ==29703== Releasing lock... [2025-01-09 19:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:33:23] Production.INFO: 44.25 MB #Memory Used# [2025-01-09 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:34:05 [end_date_ymd] => 2025-01-09 19:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:34:05' and `end` < '2025-01-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-01-09 19:34:18] Production.INFO: count ==2108 [2025-01-09 19:34:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:34:05 - End Time 2025-01-09 19:34:05 [2025-01-09 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211745', 'tblTempUsageDetail_20' ) start [2025-01-09 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211745', 'tblTempUsageDetail_20' ) end [2025-01-09 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211745', 'tblTempVendorCDR_20' ) start [2025-01-09 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211745', 'tblTempVendorCDR_20' ) end [2025-01-09 19:34:19] Production.INFO: ProcessCDR(1,14211745,1,1,2) [2025-01-09 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211745', 'tblTempUsageDetail_20' ) start [2025-01-09 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211745', 'tblTempUsageDetail_20' ) end [2025-01-09 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:34:23] Production.INFO: ==29829== Releasing lock... [2025-01-09 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:34:23] Production.INFO: 44 MB #Memory Used# [2025-01-09 19:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:35:04 [end_date_ymd] => 2025-01-09 19:35:04 [RateCDR] => 1 ) [2025-01-09 19:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:35:04' and `end` < '2025-01-09 19:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:35:17] Production.INFO: count ==2103 [2025-01-09 19:35:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:35:04 - End Time 2025-01-09 19:35:04 [2025-01-09 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211750', 'tblTempUsageDetail_20' ) start [2025-01-09 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211750', 'tblTempUsageDetail_20' ) end [2025-01-09 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211750', 'tblTempVendorCDR_20' ) start [2025-01-09 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211750', 'tblTempVendorCDR_20' ) end [2025-01-09 19:35:18] Production.INFO: ProcessCDR(1,14211750,1,1,2) [2025-01-09 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211750', 'tblTempUsageDetail_20' ) start [2025-01-09 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211750', 'tblTempUsageDetail_20' ) end [2025-01-09 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:35:22] Production.INFO: ==29915== Releasing lock... [2025-01-09 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:35:22] Production.INFO: 44 MB #Memory Used# [2025-01-09 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:36:05 [end_date_ymd] => 2025-01-09 19:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:36:05' and `end` < '2025-01-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-01-09 19:36:19] Production.INFO: count ==2093 [2025-01-09 19:36:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:36:05 - End Time 2025-01-09 19:36:05 [2025-01-09 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211755', 'tblTempUsageDetail_20' ) start [2025-01-09 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211755', 'tblTempUsageDetail_20' ) end [2025-01-09 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211755', 'tblTempVendorCDR_20' ) start [2025-01-09 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211755', 'tblTempVendorCDR_20' ) end [2025-01-09 19:36:19] Production.INFO: ProcessCDR(1,14211755,1,1,2) [2025-01-09 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211755', 'tblTempUsageDetail_20' ) start [2025-01-09 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211755', 'tblTempUsageDetail_20' ) end [2025-01-09 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:36:22] Production.INFO: ==30003== Releasing lock... [2025-01-09 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:36:22] Production.INFO: 43.75 MB #Memory Used# [2025-01-09 19:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:37:04 [end_date_ymd] => 2025-01-09 19:37:04 [RateCDR] => 1 ) [2025-01-09 19:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:37:04' and `end` < '2025-01-09 19:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:37:18] Production.INFO: count ==2076 [2025-01-09 19:37:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:37:04 - End Time 2025-01-09 19:37:04 [2025-01-09 19:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211760', 'tblTempUsageDetail_20' ) start [2025-01-09 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211760', 'tblTempUsageDetail_20' ) end [2025-01-09 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211760', 'tblTempVendorCDR_20' ) start [2025-01-09 19:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211760', 'tblTempVendorCDR_20' ) end [2025-01-09 19:37:18] Production.INFO: ProcessCDR(1,14211760,1,1,2) [2025-01-09 19:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211760', 'tblTempUsageDetail_20' ) start [2025-01-09 19:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211760', 'tblTempUsageDetail_20' ) end [2025-01-09 19:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:37:21] Production.INFO: ==30087== Releasing lock... [2025-01-09 19:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:37:21] Production.INFO: 44 MB #Memory Used# [2025-01-09 19:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:38:04 [end_date_ymd] => 2025-01-09 19:38:04 [RateCDR] => 1 ) [2025-01-09 19:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:38:04' and `end` < '2025-01-09 19:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:38:18] Production.INFO: count ==2058 [2025-01-09 19:38:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:38:04 - End Time 2025-01-09 19:38:04 [2025-01-09 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211765', 'tblTempUsageDetail_20' ) start [2025-01-09 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211765', 'tblTempUsageDetail_20' ) end [2025-01-09 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211765', 'tblTempVendorCDR_20' ) start [2025-01-09 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211765', 'tblTempVendorCDR_20' ) end [2025-01-09 19:38:18] Production.INFO: ProcessCDR(1,14211765,1,1,2) [2025-01-09 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211765', 'tblTempUsageDetail_20' ) start [2025-01-09 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211765', 'tblTempUsageDetail_20' ) end [2025-01-09 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:38:23] Production.INFO: ==30166== Releasing lock... [2025-01-09 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:38:23] Production.INFO: 43.5 MB #Memory Used# [2025-01-09 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:39:05 [end_date_ymd] => 2025-01-09 19:39:05 [RateCDR] => 1 ) [2025-01-09 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:39:05' and `end` < '2025-01-09 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:39:18] Production.INFO: count ==2057 [2025-01-09 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:39:05 - End Time 2025-01-09 19:39:05 [2025-01-09 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211770', 'tblTempUsageDetail_20' ) start [2025-01-09 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211770', 'tblTempUsageDetail_20' ) end [2025-01-09 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211770', 'tblTempVendorCDR_20' ) start [2025-01-09 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211770', 'tblTempVendorCDR_20' ) end [2025-01-09 19:39:19] Production.INFO: ProcessCDR(1,14211770,1,1,2) [2025-01-09 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211770', 'tblTempUsageDetail_20' ) start [2025-01-09 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211770', 'tblTempUsageDetail_20' ) end [2025-01-09 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:39:24] Production.INFO: ==30237== Releasing lock... [2025-01-09 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:39:24] Production.INFO: 43.5 MB #Memory Used# [2025-01-09 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:40:05 [end_date_ymd] => 2025-01-09 19:40:05 [RateCDR] => 1 ) [2025-01-09 19:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:40:05' and `end` < '2025-01-09 19:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:40:18] Production.INFO: count ==2050 [2025-01-09 19:40:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:40:05 - End Time 2025-01-09 19:40:05 [2025-01-09 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211776', 'tblTempUsageDetail_20' ) start [2025-01-09 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211776', 'tblTempUsageDetail_20' ) end [2025-01-09 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211776', 'tblTempVendorCDR_20' ) start [2025-01-09 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211776', 'tblTempVendorCDR_20' ) end [2025-01-09 19:40:19] Production.INFO: ProcessCDR(1,14211776,1,1,2) [2025-01-09 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211776', 'tblTempUsageDetail_20' ) start [2025-01-09 19:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211776', 'tblTempUsageDetail_20' ) end [2025-01-09 19:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:40:22] Production.INFO: ==30308== Releasing lock... [2025-01-09 19:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:40:22] Production.INFO: 43.25 MB #Memory Used# [2025-01-09 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:41:05 [end_date_ymd] => 2025-01-09 19:41:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:41:05' and `end` < '2025-01-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-01-09 19:41:19] Production.INFO: count ==1973 [2025-01-09 19:41:20] Production.ERROR: pbx CDR StartTime 2025-01-09 16:41:05 - End Time 2025-01-09 19:41:05 [2025-01-09 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211781', 'tblTempUsageDetail_20' ) start [2025-01-09 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211781', 'tblTempUsageDetail_20' ) end [2025-01-09 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211781', 'tblTempVendorCDR_20' ) start [2025-01-09 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211781', 'tblTempVendorCDR_20' ) end [2025-01-09 19:41:20] Production.INFO: ProcessCDR(1,14211781,1,1,2) [2025-01-09 19:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211781', 'tblTempUsageDetail_20' ) start [2025-01-09 19:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211781', 'tblTempUsageDetail_20' ) end [2025-01-09 19:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:41:25] Production.INFO: ==30382== Releasing lock... [2025-01-09 19:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:41:25] Production.INFO: 43 MB #Memory Used# [2025-01-09 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:42:05 [end_date_ymd] => 2025-01-09 19:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:42:05' and `end` < '2025-01-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-01-09 19:42:18] Production.INFO: count ==1974 [2025-01-09 19:42:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:42:05 - End Time 2025-01-09 19:42:05 [2025-01-09 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211786', 'tblTempUsageDetail_20' ) start [2025-01-09 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211786', 'tblTempUsageDetail_20' ) end [2025-01-09 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211786', 'tblTempVendorCDR_20' ) start [2025-01-09 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211786', 'tblTempVendorCDR_20' ) end [2025-01-09 19:42:18] Production.INFO: ProcessCDR(1,14211786,1,1,2) [2025-01-09 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211786', 'tblTempUsageDetail_20' ) start [2025-01-09 19:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211786', 'tblTempUsageDetail_20' ) end [2025-01-09 19:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:42:21] Production.INFO: ==30452== Releasing lock... [2025-01-09 19:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:42:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-09 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:43:05 [end_date_ymd] => 2025-01-09 19:43:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:43:05' and `end` < '2025-01-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-01-09 19:43:19] Production.INFO: count ==1974 [2025-01-09 19:43:20] Production.ERROR: pbx CDR StartTime 2025-01-09 16:43:05 - End Time 2025-01-09 19:43:05 [2025-01-09 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211791', 'tblTempUsageDetail_20' ) start [2025-01-09 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211791', 'tblTempUsageDetail_20' ) end [2025-01-09 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211791', 'tblTempVendorCDR_20' ) start [2025-01-09 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211791', 'tblTempVendorCDR_20' ) end [2025-01-09 19:43:20] Production.INFO: ProcessCDR(1,14211791,1,1,2) [2025-01-09 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211791', 'tblTempUsageDetail_20' ) start [2025-01-09 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211791', 'tblTempUsageDetail_20' ) end [2025-01-09 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:43:25] Production.INFO: ==30523== Releasing lock... [2025-01-09 19:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:43:25] Production.INFO: 43.25 MB #Memory Used# [2025-01-09 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:44:05 [end_date_ymd] => 2025-01-09 19:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:44:05' and `end` < '2025-01-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-01-09 19:44:18] Production.INFO: count ==1968 [2025-01-09 19:44:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:44:05 - End Time 2025-01-09 19:44:05 [2025-01-09 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211796', 'tblTempUsageDetail_20' ) start [2025-01-09 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211796', 'tblTempUsageDetail_20' ) end [2025-01-09 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211796', 'tblTempVendorCDR_20' ) start [2025-01-09 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211796', 'tblTempVendorCDR_20' ) end [2025-01-09 19:44:19] Production.INFO: ProcessCDR(1,14211796,1,1,2) [2025-01-09 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211796', 'tblTempUsageDetail_20' ) start [2025-01-09 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211796', 'tblTempUsageDetail_20' ) end [2025-01-09 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:44:22] Production.INFO: ==30593== Releasing lock... [2025-01-09 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:44:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-09 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:45:05 [end_date_ymd] => 2025-01-09 19:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:45:05' and `end` < '2025-01-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-01-09 19:45:18] Production.INFO: count ==1956 [2025-01-09 19:45:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:45:05 - End Time 2025-01-09 19:45:05 [2025-01-09 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211801', 'tblTempUsageDetail_20' ) start [2025-01-09 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211801', 'tblTempUsageDetail_20' ) end [2025-01-09 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211801', 'tblTempVendorCDR_20' ) start [2025-01-09 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211801', 'tblTempVendorCDR_20' ) end [2025-01-09 19:45:19] Production.INFO: ProcessCDR(1,14211801,1,1,2) [2025-01-09 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211801', 'tblTempUsageDetail_20' ) start [2025-01-09 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211801', 'tblTempUsageDetail_20' ) end [2025-01-09 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:45:22] Production.INFO: ==30664== Releasing lock... [2025-01-09 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:45:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-09 19:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:46:04 [end_date_ymd] => 2025-01-09 19:46:04 [RateCDR] => 1 ) [2025-01-09 19:46:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:46:04' and `end` < '2025-01-09 19:46:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:46:18] Production.INFO: count ==1952 [2025-01-09 19:46:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:46:04 - End Time 2025-01-09 19:46:04 [2025-01-09 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211806', 'tblTempUsageDetail_20' ) start [2025-01-09 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211806', 'tblTempUsageDetail_20' ) end [2025-01-09 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211806', 'tblTempVendorCDR_20' ) start [2025-01-09 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211806', 'tblTempVendorCDR_20' ) end [2025-01-09 19:46:19] Production.INFO: ProcessCDR(1,14211806,1,1,2) [2025-01-09 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211806', 'tblTempUsageDetail_20' ) start [2025-01-09 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211806', 'tblTempUsageDetail_20' ) end [2025-01-09 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:46:22] Production.INFO: ==30733== Releasing lock... [2025-01-09 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:46:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-09 19:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:47:04 [end_date_ymd] => 2025-01-09 19:47:04 [RateCDR] => 1 ) [2025-01-09 19:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:47:04' and `end` < '2025-01-09 19:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:47:17] Production.INFO: count ==1945 [2025-01-09 19:47:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:47:04 - End Time 2025-01-09 19:47:04 [2025-01-09 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211811', 'tblTempUsageDetail_20' ) start [2025-01-09 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211811', 'tblTempUsageDetail_20' ) end [2025-01-09 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211811', 'tblTempVendorCDR_20' ) start [2025-01-09 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211811', 'tblTempVendorCDR_20' ) end [2025-01-09 19:47:18] Production.INFO: ProcessCDR(1,14211811,1,1,2) [2025-01-09 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211811', 'tblTempUsageDetail_20' ) start [2025-01-09 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211811', 'tblTempUsageDetail_20' ) end [2025-01-09 19:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:47:21] Production.INFO: ==30805== Releasing lock... [2025-01-09 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:47:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-09 19:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:48:06 [end_date_ymd] => 2025-01-09 19:48:06 [RateCDR] => 1 ) [2025-01-09 19:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:48:06' and `end` < '2025-01-09 19:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:48:19] Production.INFO: count ==1922 [2025-01-09 19:48:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:48:06 - End Time 2025-01-09 19:48:06 [2025-01-09 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211816', 'tblTempUsageDetail_20' ) start [2025-01-09 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211816', 'tblTempUsageDetail_20' ) end [2025-01-09 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211816', 'tblTempVendorCDR_20' ) start [2025-01-09 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211816', 'tblTempVendorCDR_20' ) end [2025-01-09 19:48:19] Production.INFO: ProcessCDR(1,14211816,1,1,2) [2025-01-09 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211816', 'tblTempUsageDetail_20' ) start [2025-01-09 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211816', 'tblTempUsageDetail_20' ) end [2025-01-09 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:48:22] Production.INFO: ==30876== Releasing lock... [2025-01-09 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:48:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-09 19:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:49:04 [end_date_ymd] => 2025-01-09 19:49:04 [RateCDR] => 1 ) [2025-01-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-01-09 16:49:04' and `end` < '2025-01-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-01-09 19:49:17] Production.INFO: count ==1922 [2025-01-09 19:49:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:49:04 - End Time 2025-01-09 19:49:04 [2025-01-09 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211821', 'tblTempUsageDetail_20' ) start [2025-01-09 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211821', 'tblTempUsageDetail_20' ) end [2025-01-09 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211821', 'tblTempVendorCDR_20' ) start [2025-01-09 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211821', 'tblTempVendorCDR_20' ) end [2025-01-09 19:49:18] Production.INFO: ProcessCDR(1,14211821,1,1,2) [2025-01-09 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211821', 'tblTempUsageDetail_20' ) start [2025-01-09 19:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211821', 'tblTempUsageDetail_20' ) end [2025-01-09 19:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:49:22] Production.INFO: ==30946== Releasing lock... [2025-01-09 19:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:49:22] Production.INFO: 42.75 MB #Memory Used# [2025-01-09 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:50:06 [end_date_ymd] => 2025-01-09 19:50:06 [RateCDR] => 1 ) [2025-01-09 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:50:06' and `end` < '2025-01-09 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:50:19] Production.INFO: count ==1914 [2025-01-09 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:50:06 - End Time 2025-01-09 19:50:06 [2025-01-09 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211827', 'tblTempUsageDetail_20' ) start [2025-01-09 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211827', 'tblTempUsageDetail_20' ) end [2025-01-09 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211827', 'tblTempVendorCDR_20' ) start [2025-01-09 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211827', 'tblTempVendorCDR_20' ) end [2025-01-09 19:50:20] Production.INFO: ProcessCDR(1,14211827,1,1,2) [2025-01-09 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211827', 'tblTempUsageDetail_20' ) start [2025-01-09 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211827', 'tblTempUsageDetail_20' ) end [2025-01-09 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:50:24] Production.INFO: ==31059== Releasing lock... [2025-01-09 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:50:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-09 19:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:51:04 [end_date_ymd] => 2025-01-09 19:51:04 [RateCDR] => 1 ) [2025-01-09 19:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:51:04' and `end` < '2025-01-09 19:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:51:18] Production.INFO: count ==1911 [2025-01-09 19:51:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:51:04 - End Time 2025-01-09 19:51:04 [2025-01-09 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211832', 'tblTempUsageDetail_20' ) start [2025-01-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211832', 'tblTempUsageDetail_20' ) end [2025-01-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211832', 'tblTempVendorCDR_20' ) start [2025-01-09 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211832', 'tblTempVendorCDR_20' ) end [2025-01-09 19:51:18] Production.INFO: ProcessCDR(1,14211832,1,1,2) [2025-01-09 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211832', 'tblTempUsageDetail_20' ) start [2025-01-09 19:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211832', 'tblTempUsageDetail_20' ) end [2025-01-09 19:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:51:21] Production.INFO: ==31134== Releasing lock... [2025-01-09 19:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:51:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-09 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:52:04 [end_date_ymd] => 2025-01-09 19:52:04 [RateCDR] => 1 ) [2025-01-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-01-09 16:52:04' and `end` < '2025-01-09 19:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:52:18] Production.INFO: count ==1907 [2025-01-09 19:52:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:52:04 - End Time 2025-01-09 19:52:04 [2025-01-09 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211837', 'tblTempUsageDetail_20' ) start [2025-01-09 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211837', 'tblTempUsageDetail_20' ) end [2025-01-09 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211837', 'tblTempVendorCDR_20' ) start [2025-01-09 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211837', 'tblTempVendorCDR_20' ) end [2025-01-09 19:52:18] Production.INFO: ProcessCDR(1,14211837,1,1,2) [2025-01-09 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211837', 'tblTempUsageDetail_20' ) start [2025-01-09 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211837', 'tblTempUsageDetail_20' ) end [2025-01-09 19:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:52:21] Production.INFO: ==31209== Releasing lock... [2025-01-09 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:52:21] Production.INFO: 42.25 MB #Memory Used# [2025-01-09 19:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:53:04 [end_date_ymd] => 2025-01-09 19:53:04 [RateCDR] => 1 ) [2025-01-09 19:53:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:53:04' and `end` < '2025-01-09 19:53:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:53:17] Production.INFO: count ==1899 [2025-01-09 19:53:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:53:04 - End Time 2025-01-09 19:53:04 [2025-01-09 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211842', 'tblTempUsageDetail_20' ) start [2025-01-09 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211842', 'tblTempUsageDetail_20' ) end [2025-01-09 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211842', 'tblTempVendorCDR_20' ) start [2025-01-09 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211842', 'tblTempVendorCDR_20' ) end [2025-01-09 19:53:18] Production.INFO: ProcessCDR(1,14211842,1,1,2) [2025-01-09 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211842', 'tblTempUsageDetail_20' ) start [2025-01-09 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211842', 'tblTempUsageDetail_20' ) end [2025-01-09 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:53:21] Production.INFO: ==31281== Releasing lock... [2025-01-09 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:53:21] Production.INFO: 42.5 MB #Memory Used# [2025-01-09 19:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:54:04 [end_date_ymd] => 2025-01-09 19:54:04 [RateCDR] => 1 ) [2025-01-09 19:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:54:04' and `end` < '2025-01-09 19:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:54:18] Production.INFO: count ==1889 [2025-01-09 19:54:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:54:04 - End Time 2025-01-09 19:54:04 [2025-01-09 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211847', 'tblTempUsageDetail_20' ) start [2025-01-09 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211847', 'tblTempUsageDetail_20' ) end [2025-01-09 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211847', 'tblTempVendorCDR_20' ) start [2025-01-09 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211847', 'tblTempVendorCDR_20' ) end [2025-01-09 19:54:19] Production.INFO: ProcessCDR(1,14211847,1,1,2) [2025-01-09 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211847', 'tblTempUsageDetail_20' ) start [2025-01-09 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211847', 'tblTempUsageDetail_20' ) end [2025-01-09 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:54:22] Production.INFO: ==31352== Releasing lock... [2025-01-09 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:54:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-09 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:55:05 [end_date_ymd] => 2025-01-09 19:55:05 [RateCDR] => 1 ) [2025-01-09 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:55:05' and `end` < '2025-01-09 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:55:18] Production.INFO: count ==1881 [2025-01-09 19:55:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:55:05 - End Time 2025-01-09 19:55:05 [2025-01-09 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211852', 'tblTempUsageDetail_20' ) start [2025-01-09 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211852', 'tblTempUsageDetail_20' ) end [2025-01-09 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211852', 'tblTempVendorCDR_20' ) start [2025-01-09 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211852', 'tblTempVendorCDR_20' ) end [2025-01-09 19:55:19] Production.INFO: ProcessCDR(1,14211852,1,1,2) [2025-01-09 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211852', 'tblTempUsageDetail_20' ) start [2025-01-09 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211852', 'tblTempUsageDetail_20' ) end [2025-01-09 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:55:23] Production.INFO: ==31421== Releasing lock... [2025-01-09 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:55:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-09 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:56:05 [end_date_ymd] => 2025-01-09 19:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:56:05' and `end` < '2025-01-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-01-09 19:56:18] Production.INFO: count ==1881 [2025-01-09 19:56:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:56:05 - End Time 2025-01-09 19:56:05 [2025-01-09 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211857', 'tblTempUsageDetail_20' ) start [2025-01-09 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211857', 'tblTempUsageDetail_20' ) end [2025-01-09 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211857', 'tblTempVendorCDR_20' ) start [2025-01-09 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211857', 'tblTempVendorCDR_20' ) end [2025-01-09 19:56:19] Production.INFO: ProcessCDR(1,14211857,1,1,2) [2025-01-09 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211857', 'tblTempUsageDetail_20' ) start [2025-01-09 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211857', 'tblTempUsageDetail_20' ) end [2025-01-09 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:56:22] Production.INFO: ==31491== Releasing lock... [2025-01-09 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:56:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-09 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:57:05 [end_date_ymd] => 2025-01-09 19:57:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:57:05' and `end` < '2025-01-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-01-09 19:57:19] Production.INFO: count ==1870 [2025-01-09 19:57:20] Production.ERROR: pbx CDR StartTime 2025-01-09 16:57:05 - End Time 2025-01-09 19:57:05 [2025-01-09 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211862', 'tblTempUsageDetail_20' ) start [2025-01-09 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211862', 'tblTempUsageDetail_20' ) end [2025-01-09 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211862', 'tblTempVendorCDR_20' ) start [2025-01-09 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211862', 'tblTempVendorCDR_20' ) end [2025-01-09 19:57:20] Production.INFO: ProcessCDR(1,14211862,1,1,2) [2025-01-09 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211862', 'tblTempUsageDetail_20' ) start [2025-01-09 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211862', 'tblTempUsageDetail_20' ) end [2025-01-09 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:57:23] Production.INFO: ==31562== Releasing lock... [2025-01-09 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:57:23] Production.INFO: 42.25 MB #Memory Used# [2025-01-09 19:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:58:04 [end_date_ymd] => 2025-01-09 19:58:04 [RateCDR] => 1 ) [2025-01-09 19:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 16:58:04' and `end` < '2025-01-09 19:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 19:58:18] Production.INFO: count ==1866 [2025-01-09 19:58:19] Production.ERROR: pbx CDR StartTime 2025-01-09 16:58:04 - End Time 2025-01-09 19:58:04 [2025-01-09 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211867', 'tblTempUsageDetail_20' ) start [2025-01-09 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211867', 'tblTempUsageDetail_20' ) end [2025-01-09 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211867', 'tblTempVendorCDR_20' ) start [2025-01-09 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211867', 'tblTempVendorCDR_20' ) end [2025-01-09 19:58:19] Production.INFO: ProcessCDR(1,14211867,1,1,2) [2025-01-09 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211867', 'tblTempUsageDetail_20' ) start [2025-01-09 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211867', 'tblTempUsageDetail_20' ) end [2025-01-09 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:58:22] Production.INFO: ==31633== Releasing lock... [2025-01-09 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:58:22] Production.INFO: 42 MB #Memory Used# [2025-01-09 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 16:59:05 [end_date_ymd] => 2025-01-09 19:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 16:59:05' and `end` < '2025-01-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-01-09 19:59:18] Production.INFO: count ==1858 [2025-01-09 19:59:18] Production.ERROR: pbx CDR StartTime 2025-01-09 16:59:05 - End Time 2025-01-09 19:59:05 [2025-01-09 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211872', 'tblTempUsageDetail_20' ) start [2025-01-09 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211872', 'tblTempUsageDetail_20' ) end [2025-01-09 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211872', 'tblTempVendorCDR_20' ) start [2025-01-09 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211872', 'tblTempVendorCDR_20' ) end [2025-01-09 19:59:18] Production.INFO: ProcessCDR(1,14211872,1,1,2) [2025-01-09 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211872', 'tblTempUsageDetail_20' ) start [2025-01-09 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211872', 'tblTempUsageDetail_20' ) end [2025-01-09 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 19:59:22] Production.INFO: ==31704== Releasing lock... [2025-01-09 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 19:59:22] Production.INFO: 42 MB #Memory Used# [2025-01-09 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:00:05 [end_date_ymd] => 2025-01-09 20:00:05 [RateCDR] => 1 ) [2025-01-09 20:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:00:05' and `end` < '2025-01-09 20:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:00:18] Production.INFO: count ==1849 [2025-01-09 20:00:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:00:05 - End Time 2025-01-09 20:00:05 [2025-01-09 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211877', 'tblTempUsageDetail_20' ) start [2025-01-09 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211877', 'tblTempUsageDetail_20' ) end [2025-01-09 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211877', 'tblTempVendorCDR_20' ) start [2025-01-09 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211877', 'tblTempVendorCDR_20' ) end [2025-01-09 20:00:18] Production.INFO: ProcessCDR(1,14211877,1,1,2) [2025-01-09 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211877', 'tblTempUsageDetail_20' ) start [2025-01-09 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211877', 'tblTempUsageDetail_20' ) end [2025-01-09 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:00:22] Production.INFO: ==31777== Releasing lock... [2025-01-09 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:00:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-09 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:01:05 [end_date_ymd] => 2025-01-09 20:01:05 [RateCDR] => 1 ) [2025-01-09 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:01:05' and `end` < '2025-01-09 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:01:19] Production.INFO: count ==1772 [2025-01-09 20:01:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:01:05 - End Time 2025-01-09 20:01:05 [2025-01-09 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211883', 'tblTempUsageDetail_20' ) start [2025-01-09 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211883', 'tblTempUsageDetail_20' ) end [2025-01-09 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211883', 'tblTempVendorCDR_20' ) start [2025-01-09 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211883', 'tblTempVendorCDR_20' ) end [2025-01-09 20:01:20] Production.INFO: ProcessCDR(1,14211883,1,1,2) [2025-01-09 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211883', 'tblTempUsageDetail_20' ) start [2025-01-09 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211883', 'tblTempUsageDetail_20' ) end [2025-01-09 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:01:23] Production.INFO: ==31902== Releasing lock... [2025-01-09 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:01:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-09 20:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:02:04 [end_date_ymd] => 2025-01-09 20:02:04 [RateCDR] => 1 ) [2025-01-09 20:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:02:04' and `end` < '2025-01-09 20:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:02:18] Production.INFO: count ==1770 [2025-01-09 20:02:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:02:04 - End Time 2025-01-09 20:02:04 [2025-01-09 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211888', 'tblTempUsageDetail_20' ) start [2025-01-09 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211888', 'tblTempUsageDetail_20' ) end [2025-01-09 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211888', 'tblTempVendorCDR_20' ) start [2025-01-09 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211888', 'tblTempVendorCDR_20' ) end [2025-01-09 20:02:18] Production.INFO: ProcessCDR(1,14211888,1,1,2) [2025-01-09 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211888', 'tblTempUsageDetail_20' ) start [2025-01-09 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211888', 'tblTempUsageDetail_20' ) end [2025-01-09 20:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:02:21] Production.INFO: ==31973== Releasing lock... [2025-01-09 20:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:02:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-09 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:03:05 [end_date_ymd] => 2025-01-09 20:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:03:05' and `end` < '2025-01-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-01-09 20:03:18] Production.INFO: count ==1768 [2025-01-09 20:03:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:03:05 - End Time 2025-01-09 20:03:05 [2025-01-09 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211893', 'tblTempUsageDetail_20' ) start [2025-01-09 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211893', 'tblTempUsageDetail_20' ) end [2025-01-09 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211893', 'tblTempVendorCDR_20' ) start [2025-01-09 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211893', 'tblTempVendorCDR_20' ) end [2025-01-09 20:03:18] Production.INFO: ProcessCDR(1,14211893,1,1,2) [2025-01-09 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211893', 'tblTempUsageDetail_20' ) start [2025-01-09 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211893', 'tblTempUsageDetail_20' ) end [2025-01-09 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:03:21] Production.INFO: ==32044== Releasing lock... [2025-01-09 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:03:21] Production.INFO: 41 MB #Memory Used# [2025-01-09 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:04:05 [end_date_ymd] => 2025-01-09 20:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:04:05' and `end` < '2025-01-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-01-09 20:04:19] Production.INFO: count ==1757 [2025-01-09 20:04:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:04:05 - End Time 2025-01-09 20:04:05 [2025-01-09 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211898', 'tblTempUsageDetail_20' ) start [2025-01-09 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211898', 'tblTempUsageDetail_20' ) end [2025-01-09 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211898', 'tblTempVendorCDR_20' ) start [2025-01-09 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211898', 'tblTempVendorCDR_20' ) end [2025-01-09 20:04:19] Production.INFO: ProcessCDR(1,14211898,1,1,2) [2025-01-09 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211898', 'tblTempUsageDetail_20' ) start [2025-01-09 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211898', 'tblTempUsageDetail_20' ) end [2025-01-09 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:04:22] Production.INFO: ==32117== Releasing lock... [2025-01-09 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:04:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-09 20:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:05:04 [end_date_ymd] => 2025-01-09 20:05:04 [RateCDR] => 1 ) [2025-01-09 20:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:05:04' and `end` < '2025-01-09 20:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:05:18] Production.INFO: count ==1751 [2025-01-09 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:05:04 - End Time 2025-01-09 20:05:04 [2025-01-09 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211903', 'tblTempUsageDetail_20' ) start [2025-01-09 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211903', 'tblTempUsageDetail_20' ) end [2025-01-09 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211903', 'tblTempVendorCDR_20' ) start [2025-01-09 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211903', 'tblTempVendorCDR_20' ) end [2025-01-09 20:05:18] Production.INFO: ProcessCDR(1,14211903,1,1,2) [2025-01-09 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211903', 'tblTempUsageDetail_20' ) start [2025-01-09 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211903', 'tblTempUsageDetail_20' ) end [2025-01-09 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:05:21] Production.INFO: ==32232== Releasing lock... [2025-01-09 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:05:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-09 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:06:05 [end_date_ymd] => 2025-01-09 20:06:05 [RateCDR] => 1 ) [2025-01-09 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:06:05' and `end` < '2025-01-09 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:06:18] Production.INFO: count ==1739 [2025-01-09 20:06:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:06:05 - End Time 2025-01-09 20:06:05 [2025-01-09 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211908', 'tblTempUsageDetail_20' ) start [2025-01-09 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211908', 'tblTempUsageDetail_20' ) end [2025-01-09 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211908', 'tblTempVendorCDR_20' ) start [2025-01-09 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211908', 'tblTempVendorCDR_20' ) end [2025-01-09 20:06:19] Production.INFO: ProcessCDR(1,14211908,1,1,2) [2025-01-09 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211908', 'tblTempUsageDetail_20' ) start [2025-01-09 20:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211908', 'tblTempUsageDetail_20' ) end [2025-01-09 20:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:06:22] Production.INFO: ==32302== Releasing lock... [2025-01-09 20:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:06:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-09 20:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:07:04 [end_date_ymd] => 2025-01-09 20:07:04 [RateCDR] => 1 ) [2025-01-09 20:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:07:04' and `end` < '2025-01-09 20:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:07:18] Production.INFO: count ==1736 [2025-01-09 20:07:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:07:04 - End Time 2025-01-09 20:07:04 [2025-01-09 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211913', 'tblTempUsageDetail_20' ) start [2025-01-09 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211913', 'tblTempUsageDetail_20' ) end [2025-01-09 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211913', 'tblTempVendorCDR_20' ) start [2025-01-09 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211913', 'tblTempVendorCDR_20' ) end [2025-01-09 20:07:19] Production.INFO: ProcessCDR(1,14211913,1,1,2) [2025-01-09 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211913', 'tblTempUsageDetail_20' ) start [2025-01-09 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211913', 'tblTempUsageDetail_20' ) end [2025-01-09 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:07:24] Production.INFO: ==32373== Releasing lock... [2025-01-09 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:07:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-09 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:08:05 [end_date_ymd] => 2025-01-09 20:08:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:08:05' and `end` < '2025-01-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-01-09 20:08:19] Production.INFO: count ==1735 [2025-01-09 20:08:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:08:05 - End Time 2025-01-09 20:08:05 [2025-01-09 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211918', 'tblTempUsageDetail_20' ) start [2025-01-09 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211918', 'tblTempUsageDetail_20' ) end [2025-01-09 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211918', 'tblTempVendorCDR_20' ) start [2025-01-09 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211918', 'tblTempVendorCDR_20' ) end [2025-01-09 20:08:19] Production.INFO: ProcessCDR(1,14211918,1,1,2) [2025-01-09 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211918', 'tblTempUsageDetail_20' ) start [2025-01-09 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211918', 'tblTempUsageDetail_20' ) end [2025-01-09 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:08:23] Production.INFO: ==32444== Releasing lock... [2025-01-09 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:08:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-09 20:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:09:04 [end_date_ymd] => 2025-01-09 20:09:04 [RateCDR] => 1 ) [2025-01-09 20:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:09:04' and `end` < '2025-01-09 20:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:09:17] Production.INFO: count ==1726 [2025-01-09 20:09:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:09:04 - End Time 2025-01-09 20:09:04 [2025-01-09 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211923', 'tblTempUsageDetail_20' ) start [2025-01-09 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211923', 'tblTempUsageDetail_20' ) end [2025-01-09 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211923', 'tblTempVendorCDR_20' ) start [2025-01-09 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211923', 'tblTempVendorCDR_20' ) end [2025-01-09 20:09:18] Production.INFO: ProcessCDR(1,14211923,1,1,2) [2025-01-09 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211923', 'tblTempUsageDetail_20' ) start [2025-01-09 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211923', 'tblTempUsageDetail_20' ) end [2025-01-09 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:09:21] Production.INFO: ==32514== Releasing lock... [2025-01-09 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:09:21] Production.INFO: 41 MB #Memory Used# [2025-01-09 20:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:10:05 [end_date_ymd] => 2025-01-09 20:10:05 [RateCDR] => 1 ) [2025-01-09 20:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:10:05' and `end` < '2025-01-09 20:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:10:18] Production.INFO: count ==1722 [2025-01-09 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:10:05 - End Time 2025-01-09 20:10:05 [2025-01-09 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211929', 'tblTempUsageDetail_20' ) start [2025-01-09 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211929', 'tblTempUsageDetail_20' ) end [2025-01-09 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211929', 'tblTempVendorCDR_20' ) start [2025-01-09 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211929', 'tblTempVendorCDR_20' ) end [2025-01-09 20:10:19] Production.INFO: ProcessCDR(1,14211929,1,1,2) [2025-01-09 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211929', 'tblTempUsageDetail_20' ) start [2025-01-09 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211929', 'tblTempUsageDetail_20' ) end [2025-01-09 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:10:22] Production.INFO: ==32587== Releasing lock... [2025-01-09 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:10:22] Production.INFO: 41 MB #Memory Used# [2025-01-09 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:11:05 [end_date_ymd] => 2025-01-09 20:11:05 [RateCDR] => 1 ) [2025-01-09 20:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:11:05' and `end` < '2025-01-09 20:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:11:18] Production.INFO: count ==1682 [2025-01-09 20:11:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:11:05 - End Time 2025-01-09 20:11:05 [2025-01-09 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211934', 'tblTempUsageDetail_20' ) start [2025-01-09 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211934', 'tblTempUsageDetail_20' ) end [2025-01-09 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211934', 'tblTempVendorCDR_20' ) start [2025-01-09 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211934', 'tblTempVendorCDR_20' ) end [2025-01-09 20:11:18] Production.INFO: ProcessCDR(1,14211934,1,1,2) [2025-01-09 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211934', 'tblTempUsageDetail_20' ) start [2025-01-09 20:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211934', 'tblTempUsageDetail_20' ) end [2025-01-09 20:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:11:23] Production.INFO: ==32662== Releasing lock... [2025-01-09 20:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:11:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-09 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:12:05 [end_date_ymd] => 2025-01-09 20:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:12:05' and `end` < '2025-01-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-01-09 20:12:19] Production.INFO: count ==1673 [2025-01-09 20:12:20] Production.ERROR: pbx CDR StartTime 2025-01-09 17:12:05 - End Time 2025-01-09 20:12:05 [2025-01-09 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211939', 'tblTempUsageDetail_20' ) start [2025-01-09 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211939', 'tblTempUsageDetail_20' ) end [2025-01-09 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211939', 'tblTempVendorCDR_20' ) start [2025-01-09 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211939', 'tblTempVendorCDR_20' ) end [2025-01-09 20:12:20] Production.INFO: ProcessCDR(1,14211939,1,1,2) [2025-01-09 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211939', 'tblTempUsageDetail_20' ) start [2025-01-09 20:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211939', 'tblTempUsageDetail_20' ) end [2025-01-09 20:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:12:24] Production.INFO: ==32735== Releasing lock... [2025-01-09 20:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:12:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-09 20:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:13:04 [end_date_ymd] => 2025-01-09 20:13:04 [RateCDR] => 1 ) [2025-01-09 20:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:13:04' and `end` < '2025-01-09 20:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:13:18] Production.INFO: count ==1680 [2025-01-09 20:13:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:13:04 - End Time 2025-01-09 20:13:04 [2025-01-09 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211944', 'tblTempUsageDetail_20' ) start [2025-01-09 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211944', 'tblTempUsageDetail_20' ) end [2025-01-09 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211944', 'tblTempVendorCDR_20' ) start [2025-01-09 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211944', 'tblTempVendorCDR_20' ) end [2025-01-09 20:13:18] Production.INFO: ProcessCDR(1,14211944,1,1,2) [2025-01-09 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211944', 'tblTempUsageDetail_20' ) start [2025-01-09 20:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211944', 'tblTempUsageDetail_20' ) end [2025-01-09 20:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:13:23] Production.INFO: ==357== Releasing lock... [2025-01-09 20:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:13:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-09 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:14:05 [end_date_ymd] => 2025-01-09 20:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:14:05' and `end` < '2025-01-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-01-09 20:14:19] Production.INFO: count ==1678 [2025-01-09 20:14:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:14:05 - End Time 2025-01-09 20:14:05 [2025-01-09 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211949', 'tblTempUsageDetail_20' ) start [2025-01-09 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211949', 'tblTempUsageDetail_20' ) end [2025-01-09 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211949', 'tblTempVendorCDR_20' ) start [2025-01-09 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211949', 'tblTempVendorCDR_20' ) end [2025-01-09 20:14:19] Production.INFO: ProcessCDR(1,14211949,1,1,2) [2025-01-09 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211949', 'tblTempUsageDetail_20' ) start [2025-01-09 20:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211949', 'tblTempUsageDetail_20' ) end [2025-01-09 20:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:14:23] Production.INFO: ==428== Releasing lock... [2025-01-09 20:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:14:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-09 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:15:05 [end_date_ymd] => 2025-01-09 20:15:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:15:05' and `end` < '2025-01-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-01-09 20:15:18] Production.INFO: count ==1676 [2025-01-09 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:15:05 - End Time 2025-01-09 20:15:05 [2025-01-09 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211954', 'tblTempUsageDetail_20' ) start [2025-01-09 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211954', 'tblTempUsageDetail_20' ) end [2025-01-09 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211954', 'tblTempVendorCDR_20' ) start [2025-01-09 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211954', 'tblTempVendorCDR_20' ) end [2025-01-09 20:15:19] Production.INFO: ProcessCDR(1,14211954,1,1,2) [2025-01-09 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211954', 'tblTempUsageDetail_20' ) start [2025-01-09 20:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211954', 'tblTempUsageDetail_20' ) end [2025-01-09 20:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:15:22] Production.INFO: ==499== Releasing lock... [2025-01-09 20:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:15:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-09 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:16:05 [end_date_ymd] => 2025-01-09 20:16:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:16:05' and `end` < '2025-01-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-01-09 20:16:19] Production.INFO: count ==1670 [2025-01-09 20:16:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:16:05 - End Time 2025-01-09 20:16:05 [2025-01-09 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211959', 'tblTempUsageDetail_20' ) start [2025-01-09 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211959', 'tblTempUsageDetail_20' ) end [2025-01-09 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211959', 'tblTempVendorCDR_20' ) start [2025-01-09 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211959', 'tblTempVendorCDR_20' ) end [2025-01-09 20:16:19] Production.INFO: ProcessCDR(1,14211959,1,1,2) [2025-01-09 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211959', 'tblTempUsageDetail_20' ) start [2025-01-09 20:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211959', 'tblTempUsageDetail_20' ) end [2025-01-09 20:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:16:22] Production.INFO: ==572== Releasing lock... [2025-01-09 20:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:16:22] Production.INFO: 41 MB #Memory Used# [2025-01-09 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:17:05 [end_date_ymd] => 2025-01-09 20:17:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:17:05' and `end` < '2025-01-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-01-09 20:17:18] Production.INFO: count ==1652 [2025-01-09 20:17:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:17:05 - End Time 2025-01-09 20:17:05 [2025-01-09 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211964', 'tblTempUsageDetail_20' ) start [2025-01-09 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211964', 'tblTempUsageDetail_20' ) end [2025-01-09 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211964', 'tblTempVendorCDR_20' ) start [2025-01-09 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211964', 'tblTempVendorCDR_20' ) end [2025-01-09 20:17:18] Production.INFO: ProcessCDR(1,14211964,1,1,2) [2025-01-09 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211964', 'tblTempUsageDetail_20' ) start [2025-01-09 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211964', 'tblTempUsageDetail_20' ) end [2025-01-09 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:17:22] Production.INFO: ==651== Releasing lock... [2025-01-09 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:17:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-09 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:18:05 [end_date_ymd] => 2025-01-09 20:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:18:05' and `end` < '2025-01-09 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:18:18] Production.INFO: count ==1642 [2025-01-09 20:18:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:18:05 - End Time 2025-01-09 20:18:05 [2025-01-09 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211969', 'tblTempUsageDetail_20' ) start [2025-01-09 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211969', 'tblTempUsageDetail_20' ) end [2025-01-09 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211969', 'tblTempVendorCDR_20' ) start [2025-01-09 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211969', 'tblTempVendorCDR_20' ) end [2025-01-09 20:18:19] Production.INFO: ProcessCDR(1,14211969,1,1,2) [2025-01-09 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211969', 'tblTempUsageDetail_20' ) start [2025-01-09 20:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211969', 'tblTempUsageDetail_20' ) end [2025-01-09 20:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:18:22] Production.INFO: ==772== Releasing lock... [2025-01-09 20:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:18:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-09 20:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:19:04 [end_date_ymd] => 2025-01-09 20:19:04 [RateCDR] => 1 ) [2025-01-09 20:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:19:04' and `end` < '2025-01-09 20:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:19:18] Production.INFO: count ==1641 [2025-01-09 20:19:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:19:04 - End Time 2025-01-09 20:19:04 [2025-01-09 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211974', 'tblTempUsageDetail_20' ) start [2025-01-09 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211974', 'tblTempUsageDetail_20' ) end [2025-01-09 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211974', 'tblTempVendorCDR_20' ) start [2025-01-09 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211974', 'tblTempVendorCDR_20' ) end [2025-01-09 20:19:18] Production.INFO: ProcessCDR(1,14211974,1,1,2) [2025-01-09 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211974', 'tblTempUsageDetail_20' ) start [2025-01-09 20:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211974', 'tblTempUsageDetail_20' ) end [2025-01-09 20:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:19:21] Production.INFO: ==843== Releasing lock... [2025-01-09 20:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:19:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-09 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:20:06 [end_date_ymd] => 2025-01-09 20:20:06 [RateCDR] => 1 ) [2025-01-09 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:20:06' and `end` < '2025-01-09 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:20:19] Production.INFO: count ==1639 [2025-01-09 20:20:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:20:06 - End Time 2025-01-09 20:20:06 [2025-01-09 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211980', 'tblTempUsageDetail_20' ) start [2025-01-09 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211980', 'tblTempUsageDetail_20' ) end [2025-01-09 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211980', 'tblTempVendorCDR_20' ) start [2025-01-09 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211980', 'tblTempVendorCDR_20' ) end [2025-01-09 20:20:19] Production.INFO: ProcessCDR(1,14211980,1,1,2) [2025-01-09 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211980', 'tblTempUsageDetail_20' ) start [2025-01-09 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211980', 'tblTempUsageDetail_20' ) end [2025-01-09 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:20:22] Production.INFO: ==916== Releasing lock... [2025-01-09 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:20:22] Production.INFO: 40 MB #Memory Used# [2025-01-09 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:21:05 [end_date_ymd] => 2025-01-09 20:21:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:21:05' and `end` < '2025-01-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-01-09 20:21:18] Production.INFO: count ==1604 [2025-01-09 20:21:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:21:05 - End Time 2025-01-09 20:21:05 [2025-01-09 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211985', 'tblTempUsageDetail_20' ) start [2025-01-09 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211985', 'tblTempUsageDetail_20' ) end [2025-01-09 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211985', 'tblTempVendorCDR_20' ) start [2025-01-09 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211985', 'tblTempVendorCDR_20' ) end [2025-01-09 20:21:18] Production.INFO: ProcessCDR(1,14211985,1,1,2) [2025-01-09 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211985', 'tblTempUsageDetail_20' ) start [2025-01-09 20:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211985', 'tblTempUsageDetail_20' ) end [2025-01-09 20:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:21:21] Production.INFO: ==1027== Releasing lock... [2025-01-09 20:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:21:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-09 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:22:05 [end_date_ymd] => 2025-01-09 20:22:05 [RateCDR] => 1 ) [2025-01-09 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:22:05' and `end` < '2025-01-09 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:22:19] Production.INFO: count ==1602 [2025-01-09 20:22:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:22:05 - End Time 2025-01-09 20:22:05 [2025-01-09 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211990', 'tblTempUsageDetail_20' ) start [2025-01-09 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211990', 'tblTempUsageDetail_20' ) end [2025-01-09 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211990', 'tblTempVendorCDR_20' ) start [2025-01-09 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211990', 'tblTempVendorCDR_20' ) end [2025-01-09 20:22:19] Production.INFO: ProcessCDR(1,14211990,1,1,2) [2025-01-09 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211990', 'tblTempUsageDetail_20' ) start [2025-01-09 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211990', 'tblTempUsageDetail_20' ) end [2025-01-09 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:22:23] Production.INFO: ==1104== Releasing lock... [2025-01-09 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:22:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-09 20:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:23:04 [end_date_ymd] => 2025-01-09 20:23:04 [RateCDR] => 1 ) [2025-01-09 20:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:23:04' and `end` < '2025-01-09 20:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:23:18] Production.INFO: count ==1588 [2025-01-09 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:23:04 - End Time 2025-01-09 20:23:04 [2025-01-09 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211995', 'tblTempUsageDetail_20' ) start [2025-01-09 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14211995', 'tblTempUsageDetail_20' ) end [2025-01-09 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211995', 'tblTempVendorCDR_20' ) start [2025-01-09 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14211995', 'tblTempVendorCDR_20' ) end [2025-01-09 20:23:18] Production.INFO: ProcessCDR(1,14211995,1,1,2) [2025-01-09 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14211995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14211995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14211995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14211995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211995', 'tblTempUsageDetail_20' ) start [2025-01-09 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14211995', 'tblTempUsageDetail_20' ) end [2025-01-09 20:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:23:21] Production.INFO: ==1181== Releasing lock... [2025-01-09 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:23:21] Production.INFO: 40 MB #Memory Used# [2025-01-09 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:24:05 [end_date_ymd] => 2025-01-09 20:24:05 [RateCDR] => 1 ) [2025-01-09 20:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:24:05' and `end` < '2025-01-09 20:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:24:19] Production.INFO: count ==1585 [2025-01-09 20:24:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:24:05 - End Time 2025-01-09 20:24:05 [2025-01-09 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212000', 'tblTempUsageDetail_20' ) start [2025-01-09 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212000', 'tblTempUsageDetail_20' ) end [2025-01-09 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212000', 'tblTempVendorCDR_20' ) start [2025-01-09 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212000', 'tblTempVendorCDR_20' ) end [2025-01-09 20:24:19] Production.INFO: ProcessCDR(1,14212000,1,1,2) [2025-01-09 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212000', 'tblTempUsageDetail_20' ) start [2025-01-09 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212000', 'tblTempUsageDetail_20' ) end [2025-01-09 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:24:22] Production.INFO: ==1282== Releasing lock... [2025-01-09 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:24:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-09 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:25:04 [end_date_ymd] => 2025-01-09 20:25:04 [RateCDR] => 1 ) [2025-01-09 20:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:25:04' and `end` < '2025-01-09 20:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:25:18] Production.INFO: count ==1567 [2025-01-09 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:25:04 - End Time 2025-01-09 20:25:04 [2025-01-09 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212005', 'tblTempUsageDetail_20' ) start [2025-01-09 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212005', 'tblTempUsageDetail_20' ) end [2025-01-09 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212005', 'tblTempVendorCDR_20' ) start [2025-01-09 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212005', 'tblTempVendorCDR_20' ) end [2025-01-09 20:25:18] Production.INFO: ProcessCDR(1,14212005,1,1,2) [2025-01-09 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212005', 'tblTempUsageDetail_20' ) start [2025-01-09 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212005', 'tblTempUsageDetail_20' ) end [2025-01-09 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:25:21] Production.INFO: ==1381== Releasing lock... [2025-01-09 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:25:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-09 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:26:05 [end_date_ymd] => 2025-01-09 20:26:05 [RateCDR] => 1 ) [2025-01-09 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:26:05' and `end` < '2025-01-09 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:26:19] Production.INFO: count ==1563 [2025-01-09 20:26:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:26:05 - End Time 2025-01-09 20:26:05 [2025-01-09 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212010', 'tblTempUsageDetail_20' ) start [2025-01-09 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212010', 'tblTempUsageDetail_20' ) end [2025-01-09 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212010', 'tblTempVendorCDR_20' ) start [2025-01-09 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212010', 'tblTempVendorCDR_20' ) end [2025-01-09 20:26:19] Production.INFO: ProcessCDR(1,14212010,1,1,2) [2025-01-09 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212010', 'tblTempUsageDetail_20' ) start [2025-01-09 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212010', 'tblTempUsageDetail_20' ) end [2025-01-09 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:26:24] Production.INFO: ==1462== Releasing lock... [2025-01-09 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:26:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-09 20:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:27:04 [end_date_ymd] => 2025-01-09 20:27:04 [RateCDR] => 1 ) [2025-01-09 20:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:27:04' and `end` < '2025-01-09 20:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:27:17] Production.INFO: count ==1558 [2025-01-09 20:27:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:27:04 - End Time 2025-01-09 20:27:04 [2025-01-09 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212015', 'tblTempUsageDetail_20' ) start [2025-01-09 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212015', 'tblTempUsageDetail_20' ) end [2025-01-09 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212015', 'tblTempVendorCDR_20' ) start [2025-01-09 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212015', 'tblTempVendorCDR_20' ) end [2025-01-09 20:27:18] Production.INFO: ProcessCDR(1,14212015,1,1,2) [2025-01-09 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212015', 'tblTempUsageDetail_20' ) start [2025-01-09 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212015', 'tblTempUsageDetail_20' ) end [2025-01-09 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:27:21] Production.INFO: ==1610== Releasing lock... [2025-01-09 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:27:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-09 20:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:28:04 [end_date_ymd] => 2025-01-09 20:28:04 [RateCDR] => 1 ) [2025-01-09 20:28:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:28:04' and `end` < '2025-01-09 20:28:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:28:18] Production.INFO: count ==1551 [2025-01-09 20:28:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:28:04 - End Time 2025-01-09 20:28:04 [2025-01-09 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212020', 'tblTempUsageDetail_20' ) start [2025-01-09 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212020', 'tblTempUsageDetail_20' ) end [2025-01-09 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212020', 'tblTempVendorCDR_20' ) start [2025-01-09 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212020', 'tblTempVendorCDR_20' ) end [2025-01-09 20:28:18] Production.INFO: ProcessCDR(1,14212020,1,1,2) [2025-01-09 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212020', 'tblTempUsageDetail_20' ) start [2025-01-09 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212020', 'tblTempUsageDetail_20' ) end [2025-01-09 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:28:21] Production.INFO: ==1699== Releasing lock... [2025-01-09 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:28:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-09 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:29:05 [end_date_ymd] => 2025-01-09 20:29:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:29:05' and `end` < '2025-01-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-01-09 20:29:18] Production.INFO: count ==1538 [2025-01-09 20:29:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:29:05 - End Time 2025-01-09 20:29:05 [2025-01-09 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212025', 'tblTempUsageDetail_20' ) start [2025-01-09 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212025', 'tblTempUsageDetail_20' ) end [2025-01-09 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212025', 'tblTempVendorCDR_20' ) start [2025-01-09 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212025', 'tblTempVendorCDR_20' ) end [2025-01-09 20:29:19] Production.INFO: ProcessCDR(1,14212025,1,1,2) [2025-01-09 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212025', 'tblTempUsageDetail_20' ) start [2025-01-09 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212025', 'tblTempUsageDetail_20' ) end [2025-01-09 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:29:22] Production.INFO: ==1823== Releasing lock... [2025-01-09 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:29:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-09 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:30:05 [end_date_ymd] => 2025-01-09 20:30:05 [RateCDR] => 1 ) [2025-01-09 20:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:30:05' and `end` < '2025-01-09 20:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:30:20] Production.INFO: count ==1537 [2025-01-09 20:30:21] Production.ERROR: pbx CDR StartTime 2025-01-09 17:30:05 - End Time 2025-01-09 20:30:05 [2025-01-09 20:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212031', 'tblTempUsageDetail_20' ) start [2025-01-09 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212031', 'tblTempUsageDetail_20' ) end [2025-01-09 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212031', 'tblTempVendorCDR_20' ) start [2025-01-09 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212031', 'tblTempVendorCDR_20' ) end [2025-01-09 20:30:21] Production.INFO: ProcessCDR(1,14212031,1,1,2) [2025-01-09 20:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212031', 'tblTempUsageDetail_20' ) start [2025-01-09 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212031', 'tblTempUsageDetail_20' ) end [2025-01-09 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:30:24] Production.INFO: ==1915== Releasing lock... [2025-01-09 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:30:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-09 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:31:05 [end_date_ymd] => 2025-01-09 20:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:31:05' and `end` < '2025-01-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-01-09 20:31:19] Production.INFO: count ==1514 [2025-01-09 20:31:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:31:05 - End Time 2025-01-09 20:31:05 [2025-01-09 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212035', 'tblTempUsageDetail_20' ) start [2025-01-09 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212035', 'tblTempUsageDetail_20' ) end [2025-01-09 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212035', 'tblTempVendorCDR_20' ) start [2025-01-09 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212035', 'tblTempVendorCDR_20' ) end [2025-01-09 20:31:19] Production.INFO: ProcessCDR(1,14212035,1,1,2) [2025-01-09 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212035', 'tblTempUsageDetail_20' ) start [2025-01-09 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212035', 'tblTempUsageDetail_20' ) end [2025-01-09 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:31:23] Production.INFO: ==2055== Releasing lock... [2025-01-09 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:31:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-09 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:32:05 [end_date_ymd] => 2025-01-09 20:32:05 [RateCDR] => 1 ) [2025-01-09 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:32:05' and `end` < '2025-01-09 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:32:20] Production.INFO: count ==1519 [2025-01-09 20:32:20] Production.ERROR: pbx CDR StartTime 2025-01-09 17:32:05 - End Time 2025-01-09 20:32:05 [2025-01-09 20:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212041', 'tblTempUsageDetail_20' ) start [2025-01-09 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212041', 'tblTempUsageDetail_20' ) end [2025-01-09 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212041', 'tblTempVendorCDR_20' ) start [2025-01-09 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212041', 'tblTempVendorCDR_20' ) end [2025-01-09 20:32:20] Production.INFO: ProcessCDR(1,14212041,1,1,2) [2025-01-09 20:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212041', 'tblTempUsageDetail_20' ) start [2025-01-09 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212041', 'tblTempUsageDetail_20' ) end [2025-01-09 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:32:23] Production.INFO: ==2146== Releasing lock... [2025-01-09 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:32:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-09 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:33:05 [end_date_ymd] => 2025-01-09 20:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:33:05' and `end` < '2025-01-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-01-09 20:33:18] Production.INFO: count ==1517 [2025-01-09 20:33:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:33:05 - End Time 2025-01-09 20:33:05 [2025-01-09 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212046', 'tblTempUsageDetail_20' ) start [2025-01-09 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212046', 'tblTempUsageDetail_20' ) end [2025-01-09 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212046', 'tblTempVendorCDR_20' ) start [2025-01-09 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212046', 'tblTempVendorCDR_20' ) end [2025-01-09 20:33:19] Production.INFO: ProcessCDR(1,14212046,1,1,2) [2025-01-09 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212046', 'tblTempUsageDetail_20' ) start [2025-01-09 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212046', 'tblTempUsageDetail_20' ) end [2025-01-09 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:33:22] Production.INFO: ==2286== Releasing lock... [2025-01-09 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:33:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-09 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:34:05 [end_date_ymd] => 2025-01-09 20:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:34:05' and `end` < '2025-01-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-01-09 20:34:20] Production.INFO: count ==1513 [2025-01-09 20:34:20] Production.ERROR: pbx CDR StartTime 2025-01-09 17:34:05 - End Time 2025-01-09 20:34:05 [2025-01-09 20:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212051', 'tblTempUsageDetail_20' ) start [2025-01-09 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212051', 'tblTempUsageDetail_20' ) end [2025-01-09 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212051', 'tblTempVendorCDR_20' ) start [2025-01-09 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212051', 'tblTempVendorCDR_20' ) end [2025-01-09 20:34:20] Production.INFO: ProcessCDR(1,14212051,1,1,2) [2025-01-09 20:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212051', 'tblTempUsageDetail_20' ) start [2025-01-09 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212051', 'tblTempUsageDetail_20' ) end [2025-01-09 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:34:23] Production.INFO: ==2384== Releasing lock... [2025-01-09 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:34:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-09 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:35:05 [end_date_ymd] => 2025-01-09 20:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:35:05' and `end` < '2025-01-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-01-09 20:35:18] Production.INFO: count ==1510 [2025-01-09 20:35:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:35:05 - End Time 2025-01-09 20:35:05 [2025-01-09 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212056', 'tblTempUsageDetail_20' ) start [2025-01-09 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212056', 'tblTempUsageDetail_20' ) end [2025-01-09 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212056', 'tblTempVendorCDR_20' ) start [2025-01-09 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212056', 'tblTempVendorCDR_20' ) end [2025-01-09 20:35:19] Production.INFO: ProcessCDR(1,14212056,1,1,2) [2025-01-09 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212056', 'tblTempUsageDetail_20' ) start [2025-01-09 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212056', 'tblTempUsageDetail_20' ) end [2025-01-09 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:35:22] Production.INFO: ==2513== Releasing lock... [2025-01-09 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:35:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-09 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:36:05 [end_date_ymd] => 2025-01-09 20:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:36:05' and `end` < '2025-01-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-01-09 20:36:18] Production.INFO: count ==1502 [2025-01-09 20:36:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:36:05 - End Time 2025-01-09 20:36:05 [2025-01-09 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212061', 'tblTempUsageDetail_20' ) start [2025-01-09 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212061', 'tblTempUsageDetail_20' ) end [2025-01-09 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212061', 'tblTempVendorCDR_20' ) start [2025-01-09 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212061', 'tblTempVendorCDR_20' ) end [2025-01-09 20:36:19] Production.INFO: ProcessCDR(1,14212061,1,1,2) [2025-01-09 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212061', 'tblTempUsageDetail_20' ) start [2025-01-09 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212061', 'tblTempUsageDetail_20' ) end [2025-01-09 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:36:22] Production.INFO: ==2616== Releasing lock... [2025-01-09 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:36:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-09 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:37:05 [end_date_ymd] => 2025-01-09 20:37:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:37:05' and `end` < '2025-01-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-01-09 20:37:20] Production.INFO: count ==1499 [2025-01-09 20:37:21] Production.ERROR: pbx CDR StartTime 2025-01-09 17:37:05 - End Time 2025-01-09 20:37:05 [2025-01-09 20:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212066', 'tblTempUsageDetail_20' ) start [2025-01-09 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212066', 'tblTempUsageDetail_20' ) end [2025-01-09 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212066', 'tblTempVendorCDR_20' ) start [2025-01-09 20:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212066', 'tblTempVendorCDR_20' ) end [2025-01-09 20:37:21] Production.INFO: ProcessCDR(1,14212066,1,1,2) [2025-01-09 20:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212066', 'tblTempUsageDetail_20' ) start [2025-01-09 20:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212066', 'tblTempUsageDetail_20' ) end [2025-01-09 20:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:37:25] Production.INFO: ==2745== Releasing lock... [2025-01-09 20:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:37:25] Production.INFO: 39.25 MB #Memory Used# [2025-01-09 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:38:05 [end_date_ymd] => 2025-01-09 20:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:38:05' and `end` < '2025-01-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-01-09 20:38:18] Production.INFO: count ==1497 [2025-01-09 20:38:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:38:05 - End Time 2025-01-09 20:38:05 [2025-01-09 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212071', 'tblTempUsageDetail_20' ) start [2025-01-09 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212071', 'tblTempUsageDetail_20' ) end [2025-01-09 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212071', 'tblTempVendorCDR_20' ) start [2025-01-09 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212071', 'tblTempVendorCDR_20' ) end [2025-01-09 20:38:19] Production.INFO: ProcessCDR(1,14212071,1,1,2) [2025-01-09 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212071', 'tblTempUsageDetail_20' ) start [2025-01-09 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212071', 'tblTempUsageDetail_20' ) end [2025-01-09 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:38:22] Production.INFO: ==2832== Releasing lock... [2025-01-09 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:38:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-09 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:39:05 [end_date_ymd] => 2025-01-09 20:39:05 [RateCDR] => 1 ) [2025-01-09 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:39:05' and `end` < '2025-01-09 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:39:18] Production.INFO: count ==1495 [2025-01-09 20:39:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:39:05 - End Time 2025-01-09 20:39:05 [2025-01-09 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212076', 'tblTempUsageDetail_20' ) start [2025-01-09 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212076', 'tblTempUsageDetail_20' ) end [2025-01-09 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212076', 'tblTempVendorCDR_20' ) start [2025-01-09 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212076', 'tblTempVendorCDR_20' ) end [2025-01-09 20:39:19] Production.INFO: ProcessCDR(1,14212076,1,1,2) [2025-01-09 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212076', 'tblTempUsageDetail_20' ) start [2025-01-09 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212076', 'tblTempUsageDetail_20' ) end [2025-01-09 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:39:22] Production.INFO: ==2919== Releasing lock... [2025-01-09 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:39:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-09 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:40:05 [end_date_ymd] => 2025-01-09 20:40:05 [RateCDR] => 1 ) [2025-01-09 20:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:40:05' and `end` < '2025-01-09 20:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:40:18] Production.INFO: count ==1490 [2025-01-09 20:40:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:40:05 - End Time 2025-01-09 20:40:05 [2025-01-09 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212082', 'tblTempUsageDetail_20' ) start [2025-01-09 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212082', 'tblTempUsageDetail_20' ) end [2025-01-09 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212082', 'tblTempVendorCDR_20' ) start [2025-01-09 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212082', 'tblTempVendorCDR_20' ) end [2025-01-09 20:40:18] Production.INFO: ProcessCDR(1,14212082,1,1,2) [2025-01-09 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212082', 'tblTempUsageDetail_20' ) start [2025-01-09 20:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212082', 'tblTempUsageDetail_20' ) end [2025-01-09 20:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:40:23] Production.INFO: ==3004== Releasing lock... [2025-01-09 20:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:40:23] Production.INFO: 39 MB #Memory Used# [2025-01-09 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:41:05 [end_date_ymd] => 2025-01-09 20:41:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:41:05' and `end` < '2025-01-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-01-09 20:41:19] Production.INFO: count ==1481 [2025-01-09 20:41:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:41:05 - End Time 2025-01-09 20:41:05 [2025-01-09 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212087', 'tblTempUsageDetail_20' ) start [2025-01-09 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212087', 'tblTempUsageDetail_20' ) end [2025-01-09 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212087', 'tblTempVendorCDR_20' ) start [2025-01-09 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212087', 'tblTempVendorCDR_20' ) end [2025-01-09 20:41:19] Production.INFO: ProcessCDR(1,14212087,1,1,2) [2025-01-09 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212087', 'tblTempUsageDetail_20' ) start [2025-01-09 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212087', 'tblTempUsageDetail_20' ) end [2025-01-09 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:41:22] Production.INFO: ==3086== Releasing lock... [2025-01-09 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:41:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-09 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:42:05 [end_date_ymd] => 2025-01-09 20:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:42:05' and `end` < '2025-01-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-01-09 20:42:18] Production.INFO: count ==1469 [2025-01-09 20:42:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:42:05 - End Time 2025-01-09 20:42:05 [2025-01-09 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212092', 'tblTempUsageDetail_20' ) start [2025-01-09 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212092', 'tblTempUsageDetail_20' ) end [2025-01-09 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212092', 'tblTempVendorCDR_20' ) start [2025-01-09 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212092', 'tblTempVendorCDR_20' ) end [2025-01-09 20:42:19] Production.INFO: ProcessCDR(1,14212092,1,1,2) [2025-01-09 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212092', 'tblTempUsageDetail_20' ) start [2025-01-09 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212092', 'tblTempUsageDetail_20' ) end [2025-01-09 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:42:22] Production.INFO: ==3161== Releasing lock... [2025-01-09 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:42:22] Production.INFO: 39 MB #Memory Used# [2025-01-09 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:43:05 [end_date_ymd] => 2025-01-09 20:43:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:43:05' and `end` < '2025-01-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-01-09 20:43:18] Production.INFO: count ==1464 [2025-01-09 20:43:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:43:05 - End Time 2025-01-09 20:43:05 [2025-01-09 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212097', 'tblTempUsageDetail_20' ) start [2025-01-09 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212097', 'tblTempUsageDetail_20' ) end [2025-01-09 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212097', 'tblTempVendorCDR_20' ) start [2025-01-09 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212097', 'tblTempVendorCDR_20' ) end [2025-01-09 20:43:18] Production.INFO: ProcessCDR(1,14212097,1,1,2) [2025-01-09 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212097', 'tblTempUsageDetail_20' ) start [2025-01-09 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212097', 'tblTempUsageDetail_20' ) end [2025-01-09 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:43:22] Production.INFO: ==3238== Releasing lock... [2025-01-09 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:43:22] Production.INFO: 39 MB #Memory Used# [2025-01-09 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:44:04 [end_date_ymd] => 2025-01-09 20:44:04 [RateCDR] => 1 ) [2025-01-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-01-09 17:44:04' and `end` < '2025-01-09 20:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:44:18] Production.INFO: count ==1460 [2025-01-09 20:44:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:44:04 - End Time 2025-01-09 20:44:04 [2025-01-09 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212102', 'tblTempUsageDetail_20' ) start [2025-01-09 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212102', 'tblTempUsageDetail_20' ) end [2025-01-09 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212102', 'tblTempVendorCDR_20' ) start [2025-01-09 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212102', 'tblTempVendorCDR_20' ) end [2025-01-09 20:44:18] Production.INFO: ProcessCDR(1,14212102,1,1,2) [2025-01-09 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212102', 'tblTempUsageDetail_20' ) start [2025-01-09 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212102', 'tblTempUsageDetail_20' ) end [2025-01-09 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:44:21] Production.INFO: ==3321== Releasing lock... [2025-01-09 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:44:21] Production.INFO: 39 MB #Memory Used# [2025-01-09 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:45:05 [end_date_ymd] => 2025-01-09 20:45:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:45:05' and `end` < '2025-01-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-01-09 20:45:18] Production.INFO: count ==1452 [2025-01-09 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:45:05 - End Time 2025-01-09 20:45:05 [2025-01-09 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212107', 'tblTempUsageDetail_20' ) start [2025-01-09 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212107', 'tblTempUsageDetail_20' ) end [2025-01-09 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212107', 'tblTempVendorCDR_20' ) start [2025-01-09 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212107', 'tblTempVendorCDR_20' ) end [2025-01-09 20:45:18] Production.INFO: ProcessCDR(1,14212107,1,1,2) [2025-01-09 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212107', 'tblTempUsageDetail_20' ) start [2025-01-09 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212107', 'tblTempUsageDetail_20' ) end [2025-01-09 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:45:21] Production.INFO: ==3407== Releasing lock... [2025-01-09 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:45:21] Production.INFO: 39 MB #Memory Used# [2025-01-09 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:46:06 [end_date_ymd] => 2025-01-09 20:46:06 [RateCDR] => 1 ) [2025-01-09 20:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:46:06' and `end` < '2025-01-09 20:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:46:20] Production.INFO: count ==1442 [2025-01-09 20:46:20] Production.ERROR: pbx CDR StartTime 2025-01-09 17:46:06 - End Time 2025-01-09 20:46:06 [2025-01-09 20:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212112', 'tblTempUsageDetail_20' ) start [2025-01-09 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212112', 'tblTempUsageDetail_20' ) end [2025-01-09 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212112', 'tblTempVendorCDR_20' ) start [2025-01-09 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212112', 'tblTempVendorCDR_20' ) end [2025-01-09 20:46:20] Production.INFO: ProcessCDR(1,14212112,1,1,2) [2025-01-09 20:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212112', 'tblTempUsageDetail_20' ) start [2025-01-09 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212112', 'tblTempUsageDetail_20' ) end [2025-01-09 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:46:24] Production.INFO: ==3480== Releasing lock... [2025-01-09 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:46:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-09 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:47:05 [end_date_ymd] => 2025-01-09 20:47:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:47:05' and `end` < '2025-01-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-01-09 20:47:18] Production.INFO: count ==1425 [2025-01-09 20:47:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:47:05 - End Time 2025-01-09 20:47:05 [2025-01-09 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212117', 'tblTempUsageDetail_20' ) start [2025-01-09 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212117', 'tblTempUsageDetail_20' ) end [2025-01-09 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212117', 'tblTempVendorCDR_20' ) start [2025-01-09 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212117', 'tblTempVendorCDR_20' ) end [2025-01-09 20:47:18] Production.INFO: ProcessCDR(1,14212117,1,1,2) [2025-01-09 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212117', 'tblTempUsageDetail_20' ) start [2025-01-09 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212117', 'tblTempUsageDetail_20' ) end [2025-01-09 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:47:22] Production.INFO: ==3562== Releasing lock... [2025-01-09 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:47:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-09 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:48:05 [end_date_ymd] => 2025-01-09 20:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:48:05' and `end` < '2025-01-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-01-09 20:48:18] Production.INFO: count ==1420 [2025-01-09 20:48:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:48:05 - End Time 2025-01-09 20:48:05 [2025-01-09 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212122', 'tblTempUsageDetail_20' ) start [2025-01-09 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212122', 'tblTempUsageDetail_20' ) end [2025-01-09 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212122', 'tblTempVendorCDR_20' ) start [2025-01-09 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212122', 'tblTempVendorCDR_20' ) end [2025-01-09 20:48:18] Production.INFO: ProcessCDR(1,14212122,1,1,2) [2025-01-09 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212122', 'tblTempUsageDetail_20' ) start [2025-01-09 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212122', 'tblTempUsageDetail_20' ) end [2025-01-09 20:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:48:21] Production.INFO: ==3641== Releasing lock... [2025-01-09 20:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:48:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-09 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:49:05 [end_date_ymd] => 2025-01-09 20:49:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:49:05' and `end` < '2025-01-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-01-09 20:49:19] Production.INFO: count ==1413 [2025-01-09 20:49:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:49:05 - End Time 2025-01-09 20:49:05 [2025-01-09 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212127', 'tblTempUsageDetail_20' ) start [2025-01-09 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212127', 'tblTempUsageDetail_20' ) end [2025-01-09 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212127', 'tblTempVendorCDR_20' ) start [2025-01-09 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212127', 'tblTempVendorCDR_20' ) end [2025-01-09 20:49:19] Production.INFO: ProcessCDR(1,14212127,1,1,2) [2025-01-09 20:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212127', 'tblTempUsageDetail_20' ) start [2025-01-09 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212127', 'tblTempUsageDetail_20' ) end [2025-01-09 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:49:24] Production.INFO: ==3716== Releasing lock... [2025-01-09 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:49:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-09 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:50:05 [end_date_ymd] => 2025-01-09 20:50:05 [RateCDR] => 1 ) [2025-01-09 20:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:50:05' and `end` < '2025-01-09 20:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:50:19] Production.INFO: count ==1402 [2025-01-09 20:50:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:50:05 - End Time 2025-01-09 20:50:05 [2025-01-09 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212133', 'tblTempUsageDetail_20' ) start [2025-01-09 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212133', 'tblTempUsageDetail_20' ) end [2025-01-09 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212133', 'tblTempVendorCDR_20' ) start [2025-01-09 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212133', 'tblTempVendorCDR_20' ) end [2025-01-09 20:50:19] Production.INFO: ProcessCDR(1,14212133,1,1,2) [2025-01-09 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212133', 'tblTempUsageDetail_20' ) start [2025-01-09 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212133', 'tblTempUsageDetail_20' ) end [2025-01-09 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:50:22] Production.INFO: ==3791== Releasing lock... [2025-01-09 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:50:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-09 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:51:05 [end_date_ymd] => 2025-01-09 20:51:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:51:05' and `end` < '2025-01-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-01-09 20:51:18] Production.INFO: count ==1350 [2025-01-09 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:51:05 - End Time 2025-01-09 20:51:05 [2025-01-09 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212138', 'tblTempUsageDetail_20' ) start [2025-01-09 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212138', 'tblTempUsageDetail_20' ) end [2025-01-09 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212138', 'tblTempVendorCDR_20' ) start [2025-01-09 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212138', 'tblTempVendorCDR_20' ) end [2025-01-09 20:51:18] Production.INFO: ProcessCDR(1,14212138,1,1,2) [2025-01-09 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212138', 'tblTempUsageDetail_20' ) start [2025-01-09 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212138', 'tblTempUsageDetail_20' ) end [2025-01-09 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:51:21] Production.INFO: ==3877== Releasing lock... [2025-01-09 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:51:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-09 20:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:52:04 [end_date_ymd] => 2025-01-09 20:52:04 [RateCDR] => 1 ) [2025-01-09 20:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:52:04' and `end` < '2025-01-09 20:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:52:18] Production.INFO: count ==1339 [2025-01-09 20:52:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:52:04 - End Time 2025-01-09 20:52:04 [2025-01-09 20:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212143', 'tblTempUsageDetail_20' ) start [2025-01-09 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212143', 'tblTempUsageDetail_20' ) end [2025-01-09 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212143', 'tblTempVendorCDR_20' ) start [2025-01-09 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212143', 'tblTempVendorCDR_20' ) end [2025-01-09 20:52:19] Production.INFO: ProcessCDR(1,14212143,1,1,2) [2025-01-09 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212143', 'tblTempUsageDetail_20' ) start [2025-01-09 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212143', 'tblTempUsageDetail_20' ) end [2025-01-09 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:52:22] Production.INFO: ==3987== Releasing lock... [2025-01-09 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:52:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-09 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:53:05 [end_date_ymd] => 2025-01-09 20:53:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:53:05' and `end` < '2025-01-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-01-09 20:53:18] Production.INFO: count ==1341 [2025-01-09 20:53:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:53:05 - End Time 2025-01-09 20:53:05 [2025-01-09 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212148', 'tblTempUsageDetail_20' ) start [2025-01-09 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212148', 'tblTempUsageDetail_20' ) end [2025-01-09 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212148', 'tblTempVendorCDR_20' ) start [2025-01-09 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212148', 'tblTempVendorCDR_20' ) end [2025-01-09 20:53:18] Production.INFO: ProcessCDR(1,14212148,1,1,2) [2025-01-09 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212148', 'tblTempUsageDetail_20' ) start [2025-01-09 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212148', 'tblTempUsageDetail_20' ) end [2025-01-09 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:53:23] Production.INFO: ==4064== Releasing lock... [2025-01-09 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:53:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-09 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:54:05 [end_date_ymd] => 2025-01-09 20:54:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:54:05' and `end` < '2025-01-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-01-09 20:54:18] Production.INFO: count ==1338 [2025-01-09 20:54:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:54:05 - End Time 2025-01-09 20:54:05 [2025-01-09 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212153', 'tblTempUsageDetail_20' ) start [2025-01-09 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212153', 'tblTempUsageDetail_20' ) end [2025-01-09 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212153', 'tblTempVendorCDR_20' ) start [2025-01-09 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212153', 'tblTempVendorCDR_20' ) end [2025-01-09 20:54:18] Production.INFO: ProcessCDR(1,14212153,1,1,2) [2025-01-09 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212153', 'tblTempUsageDetail_20' ) start [2025-01-09 20:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212153', 'tblTempUsageDetail_20' ) end [2025-01-09 20:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:54:21] Production.INFO: ==4148== Releasing lock... [2025-01-09 20:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:54:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-09 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:55:05 [end_date_ymd] => 2025-01-09 20:55:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:55:05' and `end` < '2025-01-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-01-09 20:55:18] Production.INFO: count ==1338 [2025-01-09 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:55:05 - End Time 2025-01-09 20:55:05 [2025-01-09 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212158', 'tblTempUsageDetail_20' ) start [2025-01-09 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212158', 'tblTempUsageDetail_20' ) end [2025-01-09 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212158', 'tblTempVendorCDR_20' ) start [2025-01-09 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212158', 'tblTempVendorCDR_20' ) end [2025-01-09 20:55:18] Production.INFO: ProcessCDR(1,14212158,1,1,2) [2025-01-09 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212158', 'tblTempUsageDetail_20' ) start [2025-01-09 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212158', 'tblTempUsageDetail_20' ) end [2025-01-09 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:55:21] Production.INFO: ==4224== Releasing lock... [2025-01-09 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:55:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-09 20:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:56:04 [end_date_ymd] => 2025-01-09 20:56:04 [RateCDR] => 1 ) [2025-01-09 20:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:56:04' and `end` < '2025-01-09 20:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:56:17] Production.INFO: count ==1347 [2025-01-09 20:56:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:56:04 - End Time 2025-01-09 20:56:04 [2025-01-09 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212163', 'tblTempUsageDetail_20' ) start [2025-01-09 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212163', 'tblTempUsageDetail_20' ) end [2025-01-09 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212163', 'tblTempVendorCDR_20' ) start [2025-01-09 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212163', 'tblTempVendorCDR_20' ) end [2025-01-09 20:56:18] Production.INFO: ProcessCDR(1,14212163,1,1,2) [2025-01-09 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212163', 'tblTempUsageDetail_20' ) start [2025-01-09 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212163', 'tblTempUsageDetail_20' ) end [2025-01-09 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:56:21] Production.INFO: ==4301== Releasing lock... [2025-01-09 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:56:21] Production.INFO: 38 MB #Memory Used# [2025-01-09 20:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:57:04 [end_date_ymd] => 2025-01-09 20:57:04 [RateCDR] => 1 ) [2025-01-09 20:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:57:04' and `end` < '2025-01-09 20:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:57:18] Production.INFO: count ==1346 [2025-01-09 20:57:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:57:04 - End Time 2025-01-09 20:57:04 [2025-01-09 20:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212168', 'tblTempUsageDetail_20' ) start [2025-01-09 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212168', 'tblTempUsageDetail_20' ) end [2025-01-09 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212168', 'tblTempVendorCDR_20' ) start [2025-01-09 20:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212168', 'tblTempVendorCDR_20' ) end [2025-01-09 20:57:18] Production.INFO: ProcessCDR(1,14212168,1,1,2) [2025-01-09 20:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212168', 'tblTempUsageDetail_20' ) start [2025-01-09 20:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212168', 'tblTempUsageDetail_20' ) end [2025-01-09 20:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:57:21] Production.INFO: ==4388== Releasing lock... [2025-01-09 20:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:57:21] Production.INFO: 38 MB #Memory Used# [2025-01-09 20:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:58:04 [end_date_ymd] => 2025-01-09 20:58:04 [RateCDR] => 1 ) [2025-01-09 20:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 17:58:04' and `end` < '2025-01-09 20:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 20:58:19] Production.INFO: count ==1343 [2025-01-09 20:58:19] Production.ERROR: pbx CDR StartTime 2025-01-09 17:58:04 - End Time 2025-01-09 20:58:04 [2025-01-09 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212173', 'tblTempUsageDetail_20' ) start [2025-01-09 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212173', 'tblTempUsageDetail_20' ) end [2025-01-09 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212173', 'tblTempVendorCDR_20' ) start [2025-01-09 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212173', 'tblTempVendorCDR_20' ) end [2025-01-09 20:58:19] Production.INFO: ProcessCDR(1,14212173,1,1,2) [2025-01-09 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212173', 'tblTempUsageDetail_20' ) start [2025-01-09 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212173', 'tblTempUsageDetail_20' ) end [2025-01-09 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:58:22] Production.INFO: ==4472== Releasing lock... [2025-01-09 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:58:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-09 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 17:59:05 [end_date_ymd] => 2025-01-09 20:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 17:59:05' and `end` < '2025-01-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-01-09 20:59:18] Production.INFO: count ==1328 [2025-01-09 20:59:18] Production.ERROR: pbx CDR StartTime 2025-01-09 17:59:05 - End Time 2025-01-09 20:59:05 [2025-01-09 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212178', 'tblTempUsageDetail_20' ) start [2025-01-09 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212178', 'tblTempUsageDetail_20' ) end [2025-01-09 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212178', 'tblTempVendorCDR_20' ) start [2025-01-09 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212178', 'tblTempVendorCDR_20' ) end [2025-01-09 20:59:18] Production.INFO: ProcessCDR(1,14212178,1,1,2) [2025-01-09 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212178', 'tblTempUsageDetail_20' ) start [2025-01-09 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212178', 'tblTempUsageDetail_20' ) end [2025-01-09 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 20:59:21] Production.INFO: ==4555== Releasing lock... [2025-01-09 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 20:59:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-09 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:00:06 [end_date_ymd] => 2025-01-09 21:00:06 [RateCDR] => 1 ) [2025-01-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-01-09 18:00:06' and `end` < '2025-01-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-01-09 21:00:19] Production.INFO: count ==1326 [2025-01-09 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:00:06 - End Time 2025-01-09 21:00:06 [2025-01-09 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212184', 'tblTempUsageDetail_20' ) start [2025-01-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212184', 'tblTempUsageDetail_20' ) end [2025-01-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212184', 'tblTempVendorCDR_20' ) start [2025-01-09 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212184', 'tblTempVendorCDR_20' ) end [2025-01-09 21:00:19] Production.INFO: ProcessCDR(1,14212184,1,1,2) [2025-01-09 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212184', 'tblTempUsageDetail_20' ) start [2025-01-09 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212184', 'tblTempUsageDetail_20' ) end [2025-01-09 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:00:22] Production.INFO: ==4650== Releasing lock... [2025-01-09 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:00:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-09 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:01:05 [end_date_ymd] => 2025-01-09 21:01:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:01:05' and `end` < '2025-01-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-01-09 21:01:18] Production.INFO: count ==1309 [2025-01-09 21:01:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:01:05 - End Time 2025-01-09 21:01:05 [2025-01-09 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212189', 'tblTempUsageDetail_20' ) start [2025-01-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212189', 'tblTempUsageDetail_20' ) end [2025-01-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212189', 'tblTempVendorCDR_20' ) start [2025-01-09 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212189', 'tblTempVendorCDR_20' ) end [2025-01-09 21:01:18] Production.INFO: ProcessCDR(1,14212189,1,1,2) [2025-01-09 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212189', 'tblTempUsageDetail_20' ) start [2025-01-09 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212189', 'tblTempUsageDetail_20' ) end [2025-01-09 21:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:01:21] Production.INFO: ==4735== Releasing lock... [2025-01-09 21:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:01:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-09 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:02:05 [end_date_ymd] => 2025-01-09 21:02:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:02:05' and `end` < '2025-01-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-01-09 21:02:18] Production.INFO: count ==1312 [2025-01-09 21:02:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:02:05 - End Time 2025-01-09 21:02:05 [2025-01-09 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212194', 'tblTempUsageDetail_20' ) start [2025-01-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212194', 'tblTempUsageDetail_20' ) end [2025-01-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212194', 'tblTempVendorCDR_20' ) start [2025-01-09 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212194', 'tblTempVendorCDR_20' ) end [2025-01-09 21:02:18] Production.INFO: ProcessCDR(1,14212194,1,1,2) [2025-01-09 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212194', 'tblTempUsageDetail_20' ) start [2025-01-09 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212194', 'tblTempUsageDetail_20' ) end [2025-01-09 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:02:21] Production.INFO: ==4812== Releasing lock... [2025-01-09 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:02:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-09 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:03:05 [end_date_ymd] => 2025-01-09 21:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:03:05' and `end` < '2025-01-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-01-09 21:03:19] Production.INFO: count ==1308 [2025-01-09 21:03:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:03:05 - End Time 2025-01-09 21:03:05 [2025-01-09 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212199', 'tblTempUsageDetail_20' ) start [2025-01-09 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212199', 'tblTempUsageDetail_20' ) end [2025-01-09 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212199', 'tblTempVendorCDR_20' ) start [2025-01-09 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212199', 'tblTempVendorCDR_20' ) end [2025-01-09 21:03:19] Production.INFO: ProcessCDR(1,14212199,1,1,2) [2025-01-09 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212199', 'tblTempUsageDetail_20' ) start [2025-01-09 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212199', 'tblTempUsageDetail_20' ) end [2025-01-09 21:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:03:22] Production.INFO: ==4886== Releasing lock... [2025-01-09 21:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:03:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-09 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:04:05 [end_date_ymd] => 2025-01-09 21:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:04:05' and `end` < '2025-01-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-01-09 21:04:19] Production.INFO: count ==1303 [2025-01-09 21:04:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:04:05 - End Time 2025-01-09 21:04:05 [2025-01-09 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212204', 'tblTempUsageDetail_20' ) start [2025-01-09 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212204', 'tblTempUsageDetail_20' ) end [2025-01-09 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212204', 'tblTempVendorCDR_20' ) start [2025-01-09 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212204', 'tblTempVendorCDR_20' ) end [2025-01-09 21:04:19] Production.INFO: ProcessCDR(1,14212204,1,1,2) [2025-01-09 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212204', 'tblTempUsageDetail_20' ) start [2025-01-09 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212204', 'tblTempUsageDetail_20' ) end [2025-01-09 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:04:22] Production.INFO: ==4966== Releasing lock... [2025-01-09 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:04:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-09 21:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:05:04 [end_date_ymd] => 2025-01-09 21:05:04 [RateCDR] => 1 ) [2025-01-09 21:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:05:04' and `end` < '2025-01-09 21:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:05:18] Production.INFO: count ==1303 [2025-01-09 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:05:04 - End Time 2025-01-09 21:05:04 [2025-01-09 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212209', 'tblTempUsageDetail_20' ) start [2025-01-09 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212209', 'tblTempUsageDetail_20' ) end [2025-01-09 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212209', 'tblTempVendorCDR_20' ) start [2025-01-09 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212209', 'tblTempVendorCDR_20' ) end [2025-01-09 21:05:18] Production.INFO: ProcessCDR(1,14212209,1,1,2) [2025-01-09 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212209', 'tblTempUsageDetail_20' ) start [2025-01-09 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212209', 'tblTempUsageDetail_20' ) end [2025-01-09 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:05:22] Production.INFO: ==5044== Releasing lock... [2025-01-09 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:05:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-09 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:06:05 [end_date_ymd] => 2025-01-09 21:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:06:05' and `end` < '2025-01-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-01-09 21:06:20] Production.INFO: count ==1305 [2025-01-09 21:06:20] Production.ERROR: pbx CDR StartTime 2025-01-09 18:06:05 - End Time 2025-01-09 21:06:05 [2025-01-09 21:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212214', 'tblTempUsageDetail_20' ) start [2025-01-09 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212214', 'tblTempUsageDetail_20' ) end [2025-01-09 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212214', 'tblTempVendorCDR_20' ) start [2025-01-09 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212214', 'tblTempVendorCDR_20' ) end [2025-01-09 21:06:20] Production.INFO: ProcessCDR(1,14212214,1,1,2) [2025-01-09 21:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212214', 'tblTempUsageDetail_20' ) start [2025-01-09 21:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212214', 'tblTempUsageDetail_20' ) end [2025-01-09 21:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:06:25] Production.INFO: ==5121== Releasing lock... [2025-01-09 21:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:06:25] Production.INFO: 37.5 MB #Memory Used# [2025-01-09 21:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:07:04 [end_date_ymd] => 2025-01-09 21:07:04 [RateCDR] => 1 ) [2025-01-09 21:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:07:04' and `end` < '2025-01-09 21:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:07:18] Production.INFO: count ==1299 [2025-01-09 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:07:04 - End Time 2025-01-09 21:07:04 [2025-01-09 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212219', 'tblTempUsageDetail_20' ) start [2025-01-09 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212219', 'tblTempUsageDetail_20' ) end [2025-01-09 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212219', 'tblTempVendorCDR_20' ) start [2025-01-09 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212219', 'tblTempVendorCDR_20' ) end [2025-01-09 21:07:18] Production.INFO: ProcessCDR(1,14212219,1,1,2) [2025-01-09 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212219', 'tblTempUsageDetail_20' ) start [2025-01-09 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212219', 'tblTempUsageDetail_20' ) end [2025-01-09 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:07:21] Production.INFO: ==5202== Releasing lock... [2025-01-09 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:07:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-09 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:08:05 [end_date_ymd] => 2025-01-09 21:08:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:08:05' and `end` < '2025-01-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-01-09 21:08:18] Production.INFO: count ==1291 [2025-01-09 21:08:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:08:05 - End Time 2025-01-09 21:08:05 [2025-01-09 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212224', 'tblTempUsageDetail_20' ) start [2025-01-09 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212224', 'tblTempUsageDetail_20' ) end [2025-01-09 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212224', 'tblTempVendorCDR_20' ) start [2025-01-09 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212224', 'tblTempVendorCDR_20' ) end [2025-01-09 21:08:19] Production.INFO: ProcessCDR(1,14212224,1,1,2) [2025-01-09 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212224', 'tblTempUsageDetail_20' ) start [2025-01-09 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212224', 'tblTempUsageDetail_20' ) end [2025-01-09 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:08:22] Production.INFO: ==5318== Releasing lock... [2025-01-09 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:08:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-09 21:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:09:04 [end_date_ymd] => 2025-01-09 21:09:04 [RateCDR] => 1 ) [2025-01-09 21:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:09:04' and `end` < '2025-01-09 21:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:09:18] Production.INFO: count ==1286 [2025-01-09 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:09:04 - End Time 2025-01-09 21:09:04 [2025-01-09 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212229', 'tblTempUsageDetail_20' ) start [2025-01-09 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212229', 'tblTempUsageDetail_20' ) end [2025-01-09 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212229', 'tblTempVendorCDR_20' ) start [2025-01-09 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212229', 'tblTempVendorCDR_20' ) end [2025-01-09 21:09:18] Production.INFO: ProcessCDR(1,14212229,1,1,2) [2025-01-09 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212229', 'tblTempUsageDetail_20' ) start [2025-01-09 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212229', 'tblTempUsageDetail_20' ) end [2025-01-09 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:09:21] Production.INFO: ==5393== Releasing lock... [2025-01-09 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:09:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-09 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:10:05 [end_date_ymd] => 2025-01-09 21:10:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:10:05' and `end` < '2025-01-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-01-09 21:10:19] Production.INFO: count ==1278 [2025-01-09 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:10:05 - End Time 2025-01-09 21:10:05 [2025-01-09 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212235', 'tblTempUsageDetail_20' ) start [2025-01-09 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212235', 'tblTempUsageDetail_20' ) end [2025-01-09 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212235', 'tblTempVendorCDR_20' ) start [2025-01-09 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212235', 'tblTempVendorCDR_20' ) end [2025-01-09 21:10:19] Production.INFO: ProcessCDR(1,14212235,1,1,2) [2025-01-09 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212235', 'tblTempUsageDetail_20' ) start [2025-01-09 21:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212235', 'tblTempUsageDetail_20' ) end [2025-01-09 21:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:10:22] Production.INFO: ==5471== Releasing lock... [2025-01-09 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:10:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-09 21:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:11:04 [end_date_ymd] => 2025-01-09 21:11:04 [RateCDR] => 1 ) [2025-01-09 21:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:11:04' and `end` < '2025-01-09 21:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:11:17] Production.INFO: count ==1228 [2025-01-09 21:11:17] Production.ERROR: pbx CDR StartTime 2025-01-09 18:11:04 - End Time 2025-01-09 21:11:04 [2025-01-09 21:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212240', 'tblTempUsageDetail_20' ) start [2025-01-09 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212240', 'tblTempUsageDetail_20' ) end [2025-01-09 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212240', 'tblTempVendorCDR_20' ) start [2025-01-09 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212240', 'tblTempVendorCDR_20' ) end [2025-01-09 21:11:18] Production.INFO: ProcessCDR(1,14212240,1,1,2) [2025-01-09 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212240', 'tblTempUsageDetail_20' ) start [2025-01-09 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212240', 'tblTempUsageDetail_20' ) end [2025-01-09 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:11:21] Production.INFO: ==5549== Releasing lock... [2025-01-09 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:11:21] Production.INFO: 37 MB #Memory Used# [2025-01-09 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:12:05 [end_date_ymd] => 2025-01-09 21:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:12:05' and `end` < '2025-01-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-01-09 21:12:18] Production.INFO: count ==1221 [2025-01-09 21:12:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:12:05 - End Time 2025-01-09 21:12:05 [2025-01-09 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212245', 'tblTempUsageDetail_20' ) start [2025-01-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212245', 'tblTempUsageDetail_20' ) end [2025-01-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212245', 'tblTempVendorCDR_20' ) start [2025-01-09 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212245', 'tblTempVendorCDR_20' ) end [2025-01-09 21:12:18] Production.INFO: ProcessCDR(1,14212245,1,1,2) [2025-01-09 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212245', 'tblTempUsageDetail_20' ) start [2025-01-09 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212245', 'tblTempUsageDetail_20' ) end [2025-01-09 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:12:21] Production.INFO: ==5637== Releasing lock... [2025-01-09 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:12:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-09 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:13:05 [end_date_ymd] => 2025-01-09 21:13:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:13:05' and `end` < '2025-01-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-01-09 21:13:19] Production.INFO: count ==1217 [2025-01-09 21:13:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:13:05 - End Time 2025-01-09 21:13:05 [2025-01-09 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212250', 'tblTempUsageDetail_20' ) start [2025-01-09 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212250', 'tblTempUsageDetail_20' ) end [2025-01-09 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212250', 'tblTempVendorCDR_20' ) start [2025-01-09 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212250', 'tblTempVendorCDR_20' ) end [2025-01-09 21:13:19] Production.INFO: ProcessCDR(1,14212250,1,1,2) [2025-01-09 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212250', 'tblTempUsageDetail_20' ) start [2025-01-09 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212250', 'tblTempUsageDetail_20' ) end [2025-01-09 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:13:22] Production.INFO: ==5709== Releasing lock... [2025-01-09 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:13:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-09 21:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:14:04 [end_date_ymd] => 2025-01-09 21:14:04 [RateCDR] => 1 ) [2025-01-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-01-09 18:14:04' and `end` < '2025-01-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-01-09 21:14:18] Production.INFO: count ==1213 [2025-01-09 21:14:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:14:04 - End Time 2025-01-09 21:14:04 [2025-01-09 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212255', 'tblTempUsageDetail_20' ) start [2025-01-09 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212255', 'tblTempUsageDetail_20' ) end [2025-01-09 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212255', 'tblTempVendorCDR_20' ) start [2025-01-09 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212255', 'tblTempVendorCDR_20' ) end [2025-01-09 21:14:18] Production.INFO: ProcessCDR(1,14212255,1,1,2) [2025-01-09 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212255', 'tblTempUsageDetail_20' ) start [2025-01-09 21:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212255', 'tblTempUsageDetail_20' ) end [2025-01-09 21:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:14:21] Production.INFO: ==5783== Releasing lock... [2025-01-09 21:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:14:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-09 21:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:15:04 [end_date_ymd] => 2025-01-09 21:15:04 [RateCDR] => 1 ) [2025-01-09 21:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:15:04' and `end` < '2025-01-09 21:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:15:17] Production.INFO: count ==1214 [2025-01-09 21:15:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:15:04 - End Time 2025-01-09 21:15:04 [2025-01-09 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212260', 'tblTempUsageDetail_20' ) start [2025-01-09 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212260', 'tblTempUsageDetail_20' ) end [2025-01-09 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212260', 'tblTempVendorCDR_20' ) start [2025-01-09 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212260', 'tblTempVendorCDR_20' ) end [2025-01-09 21:15:18] Production.INFO: ProcessCDR(1,14212260,1,1,2) [2025-01-09 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212260', 'tblTempUsageDetail_20' ) start [2025-01-09 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212260', 'tblTempUsageDetail_20' ) end [2025-01-09 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:15:21] Production.INFO: ==5854== Releasing lock... [2025-01-09 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:15:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-09 21:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:16:04 [end_date_ymd] => 2025-01-09 21:16:04 [RateCDR] => 1 ) [2025-01-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-01-09 18:16:04' and `end` < '2025-01-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-01-09 21:16:19] Production.INFO: count ==1213 [2025-01-09 21:16:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:16:04 - End Time 2025-01-09 21:16:04 [2025-01-09 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212265', 'tblTempUsageDetail_20' ) start [2025-01-09 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212265', 'tblTempUsageDetail_20' ) end [2025-01-09 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212265', 'tblTempVendorCDR_20' ) start [2025-01-09 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212265', 'tblTempVendorCDR_20' ) end [2025-01-09 21:16:19] Production.INFO: ProcessCDR(1,14212265,1,1,2) [2025-01-09 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212265', 'tblTempUsageDetail_20' ) start [2025-01-09 21:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212265', 'tblTempUsageDetail_20' ) end [2025-01-09 21:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:16:22] Production.INFO: ==5926== Releasing lock... [2025-01-09 21:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:16:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-09 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:17:05 [end_date_ymd] => 2025-01-09 21:17:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:17:05' and `end` < '2025-01-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-01-09 21:17:19] Production.INFO: count ==1211 [2025-01-09 21:17:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:17:05 - End Time 2025-01-09 21:17:05 [2025-01-09 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212270', 'tblTempUsageDetail_20' ) start [2025-01-09 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212270', 'tblTempUsageDetail_20' ) end [2025-01-09 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212270', 'tblTempVendorCDR_20' ) start [2025-01-09 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212270', 'tblTempVendorCDR_20' ) end [2025-01-09 21:17:19] Production.INFO: ProcessCDR(1,14212270,1,1,2) [2025-01-09 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212270', 'tblTempUsageDetail_20' ) start [2025-01-09 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212270', 'tblTempUsageDetail_20' ) end [2025-01-09 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:17:22] Production.INFO: ==5999== Releasing lock... [2025-01-09 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:17:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-09 21:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:18:04 [end_date_ymd] => 2025-01-09 21:18:04 [RateCDR] => 1 ) [2025-01-09 21:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:18:04' and `end` < '2025-01-09 21:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:18:18] Production.INFO: count ==1209 [2025-01-09 21:18:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:18:04 - End Time 2025-01-09 21:18:04 [2025-01-09 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212275', 'tblTempUsageDetail_20' ) start [2025-01-09 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212275', 'tblTempUsageDetail_20' ) end [2025-01-09 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212275', 'tblTempVendorCDR_20' ) start [2025-01-09 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212275', 'tblTempVendorCDR_20' ) end [2025-01-09 21:18:18] Production.INFO: ProcessCDR(1,14212275,1,1,2) [2025-01-09 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212275', 'tblTempUsageDetail_20' ) start [2025-01-09 21:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212275', 'tblTempUsageDetail_20' ) end [2025-01-09 21:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:18:22] Production.INFO: ==6069== Releasing lock... [2025-01-09 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:18:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-09 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:19:05 [end_date_ymd] => 2025-01-09 21:19:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:19:05' and `end` < '2025-01-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-01-09 21:19:18] Production.INFO: count ==1210 [2025-01-09 21:19:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:19:05 - End Time 2025-01-09 21:19:05 [2025-01-09 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212280', 'tblTempUsageDetail_20' ) start [2025-01-09 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212280', 'tblTempUsageDetail_20' ) end [2025-01-09 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212280', 'tblTempVendorCDR_20' ) start [2025-01-09 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212280', 'tblTempVendorCDR_20' ) end [2025-01-09 21:19:18] Production.INFO: ProcessCDR(1,14212280,1,1,2) [2025-01-09 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212280', 'tblTempUsageDetail_20' ) start [2025-01-09 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212280', 'tblTempUsageDetail_20' ) end [2025-01-09 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:19:21] Production.INFO: ==6141== Releasing lock... [2025-01-09 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:19:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-09 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:20:06 [end_date_ymd] => 2025-01-09 21:20:06 [RateCDR] => 1 ) [2025-01-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-01-09 18:20:06' and `end` < '2025-01-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-01-09 21:20:19] Production.INFO: count ==1205 [2025-01-09 21:20:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:20:06 - End Time 2025-01-09 21:20:06 [2025-01-09 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212286', 'tblTempUsageDetail_20' ) start [2025-01-09 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212286', 'tblTempUsageDetail_20' ) end [2025-01-09 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212286', 'tblTempVendorCDR_20' ) start [2025-01-09 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212286', 'tblTempVendorCDR_20' ) end [2025-01-09 21:20:19] Production.INFO: ProcessCDR(1,14212286,1,1,2) [2025-01-09 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212286', 'tblTempUsageDetail_20' ) start [2025-01-09 21:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212286', 'tblTempUsageDetail_20' ) end [2025-01-09 21:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:20:22] Production.INFO: ==6213== Releasing lock... [2025-01-09 21:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:20:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-09 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:21:05 [end_date_ymd] => 2025-01-09 21:21:05 [RateCDR] => 1 ) [2025-01-09 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:21:05' and `end` < '2025-01-09 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:21:19] Production.INFO: count ==1180 [2025-01-09 21:21:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:21:05 - End Time 2025-01-09 21:21:05 [2025-01-09 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212291', 'tblTempUsageDetail_20' ) start [2025-01-09 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212291', 'tblTempUsageDetail_20' ) end [2025-01-09 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212291', 'tblTempVendorCDR_20' ) start [2025-01-09 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212291', 'tblTempVendorCDR_20' ) end [2025-01-09 21:21:19] Production.INFO: ProcessCDR(1,14212291,1,1,2) [2025-01-09 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212291', 'tblTempUsageDetail_20' ) start [2025-01-09 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212291', 'tblTempUsageDetail_20' ) end [2025-01-09 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:21:22] Production.INFO: ==6284== Releasing lock... [2025-01-09 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:21:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-09 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:22:05 [end_date_ymd] => 2025-01-09 21:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:22:05' and `end` < '2025-01-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-01-09 21:22:19] Production.INFO: count ==1173 [2025-01-09 21:22:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:22:05 - End Time 2025-01-09 21:22:05 [2025-01-09 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212296', 'tblTempUsageDetail_20' ) start [2025-01-09 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212296', 'tblTempUsageDetail_20' ) end [2025-01-09 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212296', 'tblTempVendorCDR_20' ) start [2025-01-09 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212296', 'tblTempVendorCDR_20' ) end [2025-01-09 21:22:19] Production.INFO: ProcessCDR(1,14212296,1,1,2) [2025-01-09 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212296', 'tblTempUsageDetail_20' ) start [2025-01-09 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212296', 'tblTempUsageDetail_20' ) end [2025-01-09 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:22:23] Production.INFO: ==6357== Releasing lock... [2025-01-09 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:22:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-09 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:23:05 [end_date_ymd] => 2025-01-09 21:23:05 [RateCDR] => 1 ) [2025-01-09 21:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:23:05' and `end` < '2025-01-09 21:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:23:20] Production.INFO: count ==1167 [2025-01-09 21:23:20] Production.ERROR: pbx CDR StartTime 2025-01-09 18:23:05 - End Time 2025-01-09 21:23:05 [2025-01-09 21:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212301', 'tblTempUsageDetail_20' ) start [2025-01-09 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212301', 'tblTempUsageDetail_20' ) end [2025-01-09 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212301', 'tblTempVendorCDR_20' ) start [2025-01-09 21:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212301', 'tblTempVendorCDR_20' ) end [2025-01-09 21:23:20] Production.INFO: ProcessCDR(1,14212301,1,1,2) [2025-01-09 21:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212301', 'tblTempUsageDetail_20' ) start [2025-01-09 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212301', 'tblTempUsageDetail_20' ) end [2025-01-09 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:23:23] Production.INFO: ==6439== Releasing lock... [2025-01-09 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:23:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-09 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:24:05 [end_date_ymd] => 2025-01-09 21:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:24:05' and `end` < '2025-01-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-01-09 21:24:19] Production.INFO: count ==1171 [2025-01-09 21:24:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:24:05 - End Time 2025-01-09 21:24:05 [2025-01-09 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212306', 'tblTempUsageDetail_20' ) start [2025-01-09 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212306', 'tblTempUsageDetail_20' ) end [2025-01-09 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212306', 'tblTempVendorCDR_20' ) start [2025-01-09 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212306', 'tblTempVendorCDR_20' ) end [2025-01-09 21:24:19] Production.INFO: ProcessCDR(1,14212306,1,1,2) [2025-01-09 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212306', 'tblTempUsageDetail_20' ) start [2025-01-09 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212306', 'tblTempUsageDetail_20' ) end [2025-01-09 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:24:23] Production.INFO: ==6539== Releasing lock... [2025-01-09 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:24:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-09 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:25:05 [end_date_ymd] => 2025-01-09 21:25:05 [RateCDR] => 1 ) [2025-01-09 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:25:05' and `end` < '2025-01-09 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:25:18] Production.INFO: count ==1147 [2025-01-09 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:25:05 - End Time 2025-01-09 21:25:05 [2025-01-09 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212311', 'tblTempUsageDetail_20' ) start [2025-01-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212311', 'tblTempUsageDetail_20' ) end [2025-01-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212311', 'tblTempVendorCDR_20' ) start [2025-01-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212311', 'tblTempVendorCDR_20' ) end [2025-01-09 21:25:18] Production.INFO: ProcessCDR(1,14212311,1,1,2) [2025-01-09 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212311', 'tblTempUsageDetail_20' ) start [2025-01-09 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212311', 'tblTempUsageDetail_20' ) end [2025-01-09 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:25:21] Production.INFO: ==6617== Releasing lock... [2025-01-09 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:25:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-09 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:26:05 [end_date_ymd] => 2025-01-09 21:26:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:26:05' and `end` < '2025-01-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-01-09 21:26:18] Production.INFO: count ==1135 [2025-01-09 21:26:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:26:05 - End Time 2025-01-09 21:26:05 [2025-01-09 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212316', 'tblTempUsageDetail_20' ) start [2025-01-09 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212316', 'tblTempUsageDetail_20' ) end [2025-01-09 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212316', 'tblTempVendorCDR_20' ) start [2025-01-09 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212316', 'tblTempVendorCDR_20' ) end [2025-01-09 21:26:18] Production.INFO: ProcessCDR(1,14212316,1,1,2) [2025-01-09 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212316', 'tblTempUsageDetail_20' ) start [2025-01-09 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212316', 'tblTempUsageDetail_20' ) end [2025-01-09 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:26:21] Production.INFO: ==6688== Releasing lock... [2025-01-09 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:26:21] Production.INFO: 36 MB #Memory Used# [2025-01-09 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:27:04 [end_date_ymd] => 2025-01-09 21:27:04 [RateCDR] => 1 ) [2025-01-09 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:27:04' and `end` < '2025-01-09 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:27:17] Production.INFO: count ==1127 [2025-01-09 21:27:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:27:04 - End Time 2025-01-09 21:27:04 [2025-01-09 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212321', 'tblTempUsageDetail_20' ) start [2025-01-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212321', 'tblTempUsageDetail_20' ) end [2025-01-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212321', 'tblTempVendorCDR_20' ) start [2025-01-09 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212321', 'tblTempVendorCDR_20' ) end [2025-01-09 21:27:18] Production.INFO: ProcessCDR(1,14212321,1,1,2) [2025-01-09 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212321', 'tblTempUsageDetail_20' ) start [2025-01-09 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212321', 'tblTempUsageDetail_20' ) end [2025-01-09 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:27:21] Production.INFO: ==6757== Releasing lock... [2025-01-09 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:27:21] Production.INFO: 36 MB #Memory Used# [2025-01-09 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:28:05 [end_date_ymd] => 2025-01-09 21:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:28:05' and `end` < '2025-01-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-01-09 21:28:19] Production.INFO: count ==1125 [2025-01-09 21:28:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:28:05 - End Time 2025-01-09 21:28:05 [2025-01-09 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212326', 'tblTempUsageDetail_20' ) start [2025-01-09 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212326', 'tblTempUsageDetail_20' ) end [2025-01-09 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212326', 'tblTempVendorCDR_20' ) start [2025-01-09 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212326', 'tblTempVendorCDR_20' ) end [2025-01-09 21:28:19] Production.INFO: ProcessCDR(1,14212326,1,1,2) [2025-01-09 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212326', 'tblTempUsageDetail_20' ) start [2025-01-09 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212326', 'tblTempUsageDetail_20' ) end [2025-01-09 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:28:22] Production.INFO: ==6829== Releasing lock... [2025-01-09 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:28:22] Production.INFO: 36 MB #Memory Used# [2025-01-09 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:29:05 [end_date_ymd] => 2025-01-09 21:29:05 [RateCDR] => 1 ) [2025-01-09 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:29:05' and `end` < '2025-01-09 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:29:19] Production.INFO: count ==1114 [2025-01-09 21:29:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:29:05 - End Time 2025-01-09 21:29:05 [2025-01-09 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212331', 'tblTempUsageDetail_20' ) start [2025-01-09 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212331', 'tblTempUsageDetail_20' ) end [2025-01-09 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212331', 'tblTempVendorCDR_20' ) start [2025-01-09 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212331', 'tblTempVendorCDR_20' ) end [2025-01-09 21:29:19] Production.INFO: ProcessCDR(1,14212331,1,1,2) [2025-01-09 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212331', 'tblTempUsageDetail_20' ) start [2025-01-09 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212331', 'tblTempUsageDetail_20' ) end [2025-01-09 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:29:22] Production.INFO: ==6902== Releasing lock... [2025-01-09 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:29:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-09 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:30:05 [end_date_ymd] => 2025-01-09 21:30:05 [RateCDR] => 1 ) [2025-01-09 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:30:05' and `end` < '2025-01-09 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:30:18] Production.INFO: count ==1112 [2025-01-09 21:30:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:30:05 - End Time 2025-01-09 21:30:05 [2025-01-09 21:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212337', 'tblTempUsageDetail_20' ) start [2025-01-09 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212337', 'tblTempUsageDetail_20' ) end [2025-01-09 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212337', 'tblTempVendorCDR_20' ) start [2025-01-09 21:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212337', 'tblTempVendorCDR_20' ) end [2025-01-09 21:30:18] Production.INFO: ProcessCDR(1,14212337,1,1,2) [2025-01-09 21:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212337', 'tblTempUsageDetail_20' ) start [2025-01-09 21:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212337', 'tblTempUsageDetail_20' ) end [2025-01-09 21:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:30:21] Production.INFO: ==6978== Releasing lock... [2025-01-09 21:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:30:21] Production.INFO: 36 MB #Memory Used# [2025-01-09 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:31:05 [end_date_ymd] => 2025-01-09 21:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:31:05' and `end` < '2025-01-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-01-09 21:31:19] Production.INFO: count ==1060 [2025-01-09 21:31:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:31:05 - End Time 2025-01-09 21:31:05 [2025-01-09 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212342', 'tblTempUsageDetail_20' ) start [2025-01-09 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212342', 'tblTempUsageDetail_20' ) end [2025-01-09 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212342', 'tblTempVendorCDR_20' ) start [2025-01-09 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212342', 'tblTempVendorCDR_20' ) end [2025-01-09 21:31:19] Production.INFO: ProcessCDR(1,14212342,1,1,2) [2025-01-09 21:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212342', 'tblTempUsageDetail_20' ) start [2025-01-09 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212342', 'tblTempUsageDetail_20' ) end [2025-01-09 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:31:22] Production.INFO: ==7057== Releasing lock... [2025-01-09 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:31:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-09 21:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:32:04 [end_date_ymd] => 2025-01-09 21:32:04 [RateCDR] => 1 ) [2025-01-09 21:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:32:04' and `end` < '2025-01-09 21:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:32:18] Production.INFO: count ==1056 [2025-01-09 21:32:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:32:04 - End Time 2025-01-09 21:32:04 [2025-01-09 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212347', 'tblTempUsageDetail_20' ) start [2025-01-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212347', 'tblTempUsageDetail_20' ) end [2025-01-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212347', 'tblTempVendorCDR_20' ) start [2025-01-09 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212347', 'tblTempVendorCDR_20' ) end [2025-01-09 21:32:18] Production.INFO: ProcessCDR(1,14212347,1,1,2) [2025-01-09 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212347', 'tblTempUsageDetail_20' ) start [2025-01-09 21:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212347', 'tblTempUsageDetail_20' ) end [2025-01-09 21:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:32:21] Production.INFO: ==7145== Releasing lock... [2025-01-09 21:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:32:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-09 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:33:05 [end_date_ymd] => 2025-01-09 21:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:33:05' and `end` < '2025-01-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-01-09 21:33:18] Production.INFO: count ==1054 [2025-01-09 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:33:05 - End Time 2025-01-09 21:33:05 [2025-01-09 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212352', 'tblTempUsageDetail_20' ) start [2025-01-09 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212352', 'tblTempUsageDetail_20' ) end [2025-01-09 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212352', 'tblTempVendorCDR_20' ) start [2025-01-09 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212352', 'tblTempVendorCDR_20' ) end [2025-01-09 21:33:18] Production.INFO: ProcessCDR(1,14212352,1,1,2) [2025-01-09 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212352', 'tblTempUsageDetail_20' ) start [2025-01-09 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212352', 'tblTempUsageDetail_20' ) end [2025-01-09 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:33:21] Production.INFO: ==7234== Releasing lock... [2025-01-09 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:33:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-09 21:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:34:04 [end_date_ymd] => 2025-01-09 21:34:04 [RateCDR] => 1 ) [2025-01-09 21:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:34:04' and `end` < '2025-01-09 21:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:34:17] Production.INFO: count ==1053 [2025-01-09 21:34:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:34:04 - End Time 2025-01-09 21:34:04 [2025-01-09 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212357', 'tblTempUsageDetail_20' ) start [2025-01-09 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212357', 'tblTempUsageDetail_20' ) end [2025-01-09 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212357', 'tblTempVendorCDR_20' ) start [2025-01-09 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212357', 'tblTempVendorCDR_20' ) end [2025-01-09 21:34:18] Production.INFO: ProcessCDR(1,14212357,1,1,2) [2025-01-09 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212357', 'tblTempUsageDetail_20' ) start [2025-01-09 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212357', 'tblTempUsageDetail_20' ) end [2025-01-09 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:34:21] Production.INFO: ==7331== Releasing lock... [2025-01-09 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:34:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-09 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:35:05 [end_date_ymd] => 2025-01-09 21:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:35:05' and `end` < '2025-01-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-01-09 21:35:18] Production.INFO: count ==1045 [2025-01-09 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:35:05 - End Time 2025-01-09 21:35:05 [2025-01-09 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212362', 'tblTempUsageDetail_20' ) start [2025-01-09 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212362', 'tblTempUsageDetail_20' ) end [2025-01-09 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212362', 'tblTempVendorCDR_20' ) start [2025-01-09 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212362', 'tblTempVendorCDR_20' ) end [2025-01-09 21:35:18] Production.INFO: ProcessCDR(1,14212362,1,1,2) [2025-01-09 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212362', 'tblTempUsageDetail_20' ) start [2025-01-09 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212362', 'tblTempUsageDetail_20' ) end [2025-01-09 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:35:21] Production.INFO: ==7421== Releasing lock... [2025-01-09 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:35:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-09 21:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:36:04 [end_date_ymd] => 2025-01-09 21:36:04 [RateCDR] => 1 ) [2025-01-09 21:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:36:04' and `end` < '2025-01-09 21:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:36:18] Production.INFO: count ==1040 [2025-01-09 21:36:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:36:04 - End Time 2025-01-09 21:36:04 [2025-01-09 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212367', 'tblTempUsageDetail_20' ) start [2025-01-09 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212367', 'tblTempUsageDetail_20' ) end [2025-01-09 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212367', 'tblTempVendorCDR_20' ) start [2025-01-09 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212367', 'tblTempVendorCDR_20' ) end [2025-01-09 21:36:18] Production.INFO: ProcessCDR(1,14212367,1,1,2) [2025-01-09 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212367', 'tblTempUsageDetail_20' ) start [2025-01-09 21:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212367', 'tblTempUsageDetail_20' ) end [2025-01-09 21:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:36:21] Production.INFO: ==7514== Releasing lock... [2025-01-09 21:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:36:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-09 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:37:05 [end_date_ymd] => 2025-01-09 21:37:05 [RateCDR] => 1 ) [2025-01-09 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:37:05' and `end` < '2025-01-09 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:37:19] Production.INFO: count ==1038 [2025-01-09 21:37:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:37:05 - End Time 2025-01-09 21:37:05 [2025-01-09 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212372', 'tblTempUsageDetail_20' ) start [2025-01-09 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212372', 'tblTempUsageDetail_20' ) end [2025-01-09 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212372', 'tblTempVendorCDR_20' ) start [2025-01-09 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212372', 'tblTempVendorCDR_20' ) end [2025-01-09 21:37:19] Production.INFO: ProcessCDR(1,14212372,1,1,2) [2025-01-09 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212372', 'tblTempUsageDetail_20' ) start [2025-01-09 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212372', 'tblTempUsageDetail_20' ) end [2025-01-09 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:37:23] Production.INFO: ==7608== Releasing lock... [2025-01-09 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:37:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-09 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:38:05 [end_date_ymd] => 2025-01-09 21:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:38:05' and `end` < '2025-01-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-01-09 21:38:20] Production.INFO: count ==1036 [2025-01-09 21:38:20] Production.ERROR: pbx CDR StartTime 2025-01-09 18:38:05 - End Time 2025-01-09 21:38:05 [2025-01-09 21:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212377', 'tblTempUsageDetail_20' ) start [2025-01-09 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212377', 'tblTempUsageDetail_20' ) end [2025-01-09 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212377', 'tblTempVendorCDR_20' ) start [2025-01-09 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212377', 'tblTempVendorCDR_20' ) end [2025-01-09 21:38:20] Production.INFO: ProcessCDR(1,14212377,1,1,2) [2025-01-09 21:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212377', 'tblTempUsageDetail_20' ) start [2025-01-09 21:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212377', 'tblTempUsageDetail_20' ) end [2025-01-09 21:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:38:24] Production.INFO: ==7697== Releasing lock... [2025-01-09 21:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:38:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-09 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:39:05 [end_date_ymd] => 2025-01-09 21:39:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:39:05' and `end` < '2025-01-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-01-09 21:39:18] Production.INFO: count ==1036 [2025-01-09 21:39:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:39:05 - End Time 2025-01-09 21:39:05 [2025-01-09 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212382', 'tblTempUsageDetail_20' ) start [2025-01-09 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212382', 'tblTempUsageDetail_20' ) end [2025-01-09 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212382', 'tblTempVendorCDR_20' ) start [2025-01-09 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212382', 'tblTempVendorCDR_20' ) end [2025-01-09 21:39:18] Production.INFO: ProcessCDR(1,14212382,1,1,2) [2025-01-09 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212382', 'tblTempUsageDetail_20' ) start [2025-01-09 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212382', 'tblTempUsageDetail_20' ) end [2025-01-09 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:39:21] Production.INFO: ==7834== Releasing lock... [2025-01-09 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:39:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-09 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:40:06 [end_date_ymd] => 2025-01-09 21:40:06 [RateCDR] => 1 ) [2025-01-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-01-09 18:40:06' and `end` < '2025-01-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-01-09 21:40:19] Production.INFO: count ==1034 [2025-01-09 21:40:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:40:06 - End Time 2025-01-09 21:40:06 [2025-01-09 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212388', 'tblTempUsageDetail_20' ) start [2025-01-09 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212388', 'tblTempUsageDetail_20' ) end [2025-01-09 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212388', 'tblTempVendorCDR_20' ) start [2025-01-09 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212388', 'tblTempVendorCDR_20' ) end [2025-01-09 21:40:19] Production.INFO: ProcessCDR(1,14212388,1,1,2) [2025-01-09 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212388', 'tblTempUsageDetail_20' ) start [2025-01-09 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212388', 'tblTempUsageDetail_20' ) end [2025-01-09 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:40:22] Production.INFO: ==7926== Releasing lock... [2025-01-09 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:40:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-09 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:41:04 [end_date_ymd] => 2025-01-09 21:41:04 [RateCDR] => 1 ) [2025-01-09 21:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:41:04' and `end` < '2025-01-09 21:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:41:18] Production.INFO: count ==1009 [2025-01-09 21:41:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:41:04 - End Time 2025-01-09 21:41:04 [2025-01-09 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212393', 'tblTempUsageDetail_20' ) start [2025-01-09 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212393', 'tblTempUsageDetail_20' ) end [2025-01-09 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212393', 'tblTempVendorCDR_20' ) start [2025-01-09 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212393', 'tblTempVendorCDR_20' ) end [2025-01-09 21:41:18] Production.INFO: ProcessCDR(1,14212393,1,1,2) [2025-01-09 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212393', 'tblTempUsageDetail_20' ) start [2025-01-09 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212393', 'tblTempUsageDetail_20' ) end [2025-01-09 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:41:22] Production.INFO: ==8017== Releasing lock... [2025-01-09 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:41:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-09 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:42:05 [end_date_ymd] => 2025-01-09 21:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:42:05' and `end` < '2025-01-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-01-09 21:42:18] Production.INFO: count ==1006 [2025-01-09 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:42:05 - End Time 2025-01-09 21:42:05 [2025-01-09 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212398', 'tblTempUsageDetail_20' ) start [2025-01-09 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212398', 'tblTempUsageDetail_20' ) end [2025-01-09 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212398', 'tblTempVendorCDR_20' ) start [2025-01-09 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212398', 'tblTempVendorCDR_20' ) end [2025-01-09 21:42:18] Production.INFO: ProcessCDR(1,14212398,1,1,2) [2025-01-09 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212398', 'tblTempUsageDetail_20' ) start [2025-01-09 21:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212398', 'tblTempUsageDetail_20' ) end [2025-01-09 21:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:42:21] Production.INFO: ==8108== Releasing lock... [2025-01-09 21:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:42:21] Production.INFO: 35 MB #Memory Used# [2025-01-09 21:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:43:04 [end_date_ymd] => 2025-01-09 21:43:04 [RateCDR] => 1 ) [2025-01-09 21:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:43:04' and `end` < '2025-01-09 21:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:43:18] Production.INFO: count ==1004 [2025-01-09 21:43:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:43:04 - End Time 2025-01-09 21:43:04 [2025-01-09 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212403', 'tblTempUsageDetail_20' ) start [2025-01-09 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212403', 'tblTempUsageDetail_20' ) end [2025-01-09 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212403', 'tblTempVendorCDR_20' ) start [2025-01-09 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212403', 'tblTempVendorCDR_20' ) end [2025-01-09 21:43:18] Production.INFO: ProcessCDR(1,14212403,1,1,2) [2025-01-09 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212403', 'tblTempUsageDetail_20' ) start [2025-01-09 21:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212403', 'tblTempUsageDetail_20' ) end [2025-01-09 21:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:43:21] Production.INFO: ==8198== Releasing lock... [2025-01-09 21:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:43:21] Production.INFO: 35 MB #Memory Used# [2025-01-09 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:44:05 [end_date_ymd] => 2025-01-09 21:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:44:05' and `end` < '2025-01-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-01-09 21:44:18] Production.INFO: count ==1004 [2025-01-09 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:44:05 - End Time 2025-01-09 21:44:05 [2025-01-09 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212408', 'tblTempUsageDetail_20' ) start [2025-01-09 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212408', 'tblTempUsageDetail_20' ) end [2025-01-09 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212408', 'tblTempVendorCDR_20' ) start [2025-01-09 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212408', 'tblTempVendorCDR_20' ) end [2025-01-09 21:44:18] Production.INFO: ProcessCDR(1,14212408,1,1,2) [2025-01-09 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212408', 'tblTempUsageDetail_20' ) start [2025-01-09 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212408', 'tblTempUsageDetail_20' ) end [2025-01-09 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:44:21] Production.INFO: ==8291== Releasing lock... [2025-01-09 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:44:21] Production.INFO: 35 MB #Memory Used# [2025-01-09 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:45:04 [end_date_ymd] => 2025-01-09 21:45:04 [RateCDR] => 1 ) [2025-01-09 21:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:45:04' and `end` < '2025-01-09 21:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:45:17] Production.INFO: count ==993 [2025-01-09 21:45:17] Production.ERROR: pbx CDR StartTime 2025-01-09 18:45:04 - End Time 2025-01-09 21:45:04 [2025-01-09 21:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212413', 'tblTempUsageDetail_20' ) start [2025-01-09 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212413', 'tblTempUsageDetail_20' ) end [2025-01-09 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212413', 'tblTempVendorCDR_20' ) start [2025-01-09 21:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212413', 'tblTempVendorCDR_20' ) end [2025-01-09 21:45:17] Production.INFO: ProcessCDR(1,14212413,1,1,2) [2025-01-09 21:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212413', 'tblTempUsageDetail_20' ) start [2025-01-09 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212413', 'tblTempUsageDetail_20' ) end [2025-01-09 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:45:21] Production.INFO: ==8378== Releasing lock... [2025-01-09 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:45:21] Production.INFO: 35 MB #Memory Used# [2025-01-09 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:46:05 [end_date_ymd] => 2025-01-09 21:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:46:05' and `end` < '2025-01-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-01-09 21:46:18] Production.INFO: count ==992 [2025-01-09 21:46:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:46:05 - End Time 2025-01-09 21:46:05 [2025-01-09 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212418', 'tblTempUsageDetail_20' ) start [2025-01-09 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212418', 'tblTempUsageDetail_20' ) end [2025-01-09 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212418', 'tblTempVendorCDR_20' ) start [2025-01-09 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212418', 'tblTempVendorCDR_20' ) end [2025-01-09 21:46:19] Production.INFO: ProcessCDR(1,14212418,1,1,2) [2025-01-09 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212418', 'tblTempUsageDetail_20' ) start [2025-01-09 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212418', 'tblTempUsageDetail_20' ) end [2025-01-09 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:46:22] Production.INFO: ==8473== Releasing lock... [2025-01-09 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:46:22] Production.INFO: 35 MB #Memory Used# [2025-01-09 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:47:05 [end_date_ymd] => 2025-01-09 21:47:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:47:05' and `end` < '2025-01-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-01-09 21:47:19] Production.INFO: count ==992 [2025-01-09 21:47:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:47:05 - End Time 2025-01-09 21:47:05 [2025-01-09 21:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212423', 'tblTempUsageDetail_20' ) start [2025-01-09 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212423', 'tblTempUsageDetail_20' ) end [2025-01-09 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212423', 'tblTempVendorCDR_20' ) start [2025-01-09 21:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212423', 'tblTempVendorCDR_20' ) end [2025-01-09 21:47:19] Production.INFO: ProcessCDR(1,14212423,1,1,2) [2025-01-09 21:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212423', 'tblTempUsageDetail_20' ) start [2025-01-09 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212423', 'tblTempUsageDetail_20' ) end [2025-01-09 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:47:22] Production.INFO: ==8566== Releasing lock... [2025-01-09 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:47:22] Production.INFO: 35 MB #Memory Used# [2025-01-09 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:48:05 [end_date_ymd] => 2025-01-09 21:48:05 [RateCDR] => 1 ) [2025-01-09 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:48:05' and `end` < '2025-01-09 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:48:18] Production.INFO: count ==978 [2025-01-09 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:48:05 - End Time 2025-01-09 21:48:05 [2025-01-09 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212428', 'tblTempUsageDetail_20' ) start [2025-01-09 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212428', 'tblTempUsageDetail_20' ) end [2025-01-09 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212428', 'tblTempVendorCDR_20' ) start [2025-01-09 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212428', 'tblTempVendorCDR_20' ) end [2025-01-09 21:48:18] Production.INFO: ProcessCDR(1,14212428,1,1,2) [2025-01-09 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212428', 'tblTempUsageDetail_20' ) start [2025-01-09 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212428', 'tblTempUsageDetail_20' ) end [2025-01-09 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:48:21] Production.INFO: ==8655== Releasing lock... [2025-01-09 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:48:21] Production.INFO: 35 MB #Memory Used# [2025-01-09 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:49:05 [end_date_ymd] => 2025-01-09 21:49:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:49:05' and `end` < '2025-01-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-01-09 21:49:18] Production.INFO: count ==968 [2025-01-09 21:49:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:49:05 - End Time 2025-01-09 21:49:05 [2025-01-09 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212433', 'tblTempUsageDetail_20' ) start [2025-01-09 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212433', 'tblTempUsageDetail_20' ) end [2025-01-09 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212433', 'tblTempVendorCDR_20' ) start [2025-01-09 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212433', 'tblTempVendorCDR_20' ) end [2025-01-09 21:49:19] Production.INFO: ProcessCDR(1,14212433,1,1,2) [2025-01-09 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212433', 'tblTempUsageDetail_20' ) start [2025-01-09 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212433', 'tblTempUsageDetail_20' ) end [2025-01-09 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:49:23] Production.INFO: ==8745== Releasing lock... [2025-01-09 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:49:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-09 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:50:06 [end_date_ymd] => 2025-01-09 21:50:06 [RateCDR] => 1 ) [2025-01-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-01-09 18:50:06' and `end` < '2025-01-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-01-09 21:50:19] Production.INFO: count ==967 [2025-01-09 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:50:06 - End Time 2025-01-09 21:50:06 [2025-01-09 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212439', 'tblTempUsageDetail_20' ) start [2025-01-09 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212439', 'tblTempUsageDetail_20' ) end [2025-01-09 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212439', 'tblTempVendorCDR_20' ) start [2025-01-09 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212439', 'tblTempVendorCDR_20' ) end [2025-01-09 21:50:19] Production.INFO: ProcessCDR(1,14212439,1,1,2) [2025-01-09 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212439', 'tblTempUsageDetail_20' ) start [2025-01-09 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212439', 'tblTempUsageDetail_20' ) end [2025-01-09 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:50:22] Production.INFO: ==8833== Releasing lock... [2025-01-09 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:50:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-09 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:51:05 [end_date_ymd] => 2025-01-09 21:51:05 [RateCDR] => 1 ) [2025-01-09 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:51:05' and `end` < '2025-01-09 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:51:18] Production.INFO: count ==956 [2025-01-09 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:51:05 - End Time 2025-01-09 21:51:05 [2025-01-09 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212444', 'tblTempUsageDetail_20' ) start [2025-01-09 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212444', 'tblTempUsageDetail_20' ) end [2025-01-09 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212444', 'tblTempVendorCDR_20' ) start [2025-01-09 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212444', 'tblTempVendorCDR_20' ) end [2025-01-09 21:51:18] Production.INFO: ProcessCDR(1,14212444,1,1,2) [2025-01-09 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212444', 'tblTempUsageDetail_20' ) start [2025-01-09 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212444', 'tblTempUsageDetail_20' ) end [2025-01-09 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:51:21] Production.INFO: ==8917== Releasing lock... [2025-01-09 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:51:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-09 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:52:05 [end_date_ymd] => 2025-01-09 21:52:05 [RateCDR] => 1 ) [2025-01-09 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:52:05' and `end` < '2025-01-09 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:52:18] Production.INFO: count ==957 [2025-01-09 21:52:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:52:05 - End Time 2025-01-09 21:52:05 [2025-01-09 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212449', 'tblTempUsageDetail_20' ) start [2025-01-09 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212449', 'tblTempUsageDetail_20' ) end [2025-01-09 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212449', 'tblTempVendorCDR_20' ) start [2025-01-09 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212449', 'tblTempVendorCDR_20' ) end [2025-01-09 21:52:18] Production.INFO: ProcessCDR(1,14212449,1,1,2) [2025-01-09 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212449', 'tblTempUsageDetail_20' ) start [2025-01-09 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212449', 'tblTempUsageDetail_20' ) end [2025-01-09 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:52:22] Production.INFO: ==8998== Releasing lock... [2025-01-09 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:52:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-09 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:53:05 [end_date_ymd] => 2025-01-09 21:53:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:53:05' and `end` < '2025-01-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-01-09 21:53:19] Production.INFO: count ==957 [2025-01-09 21:53:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:53:05 - End Time 2025-01-09 21:53:05 [2025-01-09 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212454', 'tblTempUsageDetail_20' ) start [2025-01-09 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212454', 'tblTempUsageDetail_20' ) end [2025-01-09 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212454', 'tblTempVendorCDR_20' ) start [2025-01-09 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212454', 'tblTempVendorCDR_20' ) end [2025-01-09 21:53:19] Production.INFO: ProcessCDR(1,14212454,1,1,2) [2025-01-09 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212454', 'tblTempUsageDetail_20' ) start [2025-01-09 21:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212454', 'tblTempUsageDetail_20' ) end [2025-01-09 21:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:53:22] Production.INFO: ==9080== Releasing lock... [2025-01-09 21:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:53:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-09 21:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:54:04 [end_date_ymd] => 2025-01-09 21:54:04 [RateCDR] => 1 ) [2025-01-09 21:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:54:04' and `end` < '2025-01-09 21:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:54:17] Production.INFO: count ==956 [2025-01-09 21:54:17] Production.ERROR: pbx CDR StartTime 2025-01-09 18:54:04 - End Time 2025-01-09 21:54:04 [2025-01-09 21:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212459', 'tblTempUsageDetail_20' ) start [2025-01-09 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212459', 'tblTempUsageDetail_20' ) end [2025-01-09 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212459', 'tblTempVendorCDR_20' ) start [2025-01-09 21:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212459', 'tblTempVendorCDR_20' ) end [2025-01-09 21:54:17] Production.INFO: ProcessCDR(1,14212459,1,1,2) [2025-01-09 21:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212459', 'tblTempUsageDetail_20' ) start [2025-01-09 21:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212459', 'tblTempUsageDetail_20' ) end [2025-01-09 21:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:54:20] Production.INFO: ==9155== Releasing lock... [2025-01-09 21:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:54:20] Production.INFO: 34.75 MB #Memory Used# [2025-01-09 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:55:05 [end_date_ymd] => 2025-01-09 21:55:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:55:05' and `end` < '2025-01-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-01-09 21:55:18] Production.INFO: count ==953 [2025-01-09 21:55:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:55:05 - End Time 2025-01-09 21:55:05 [2025-01-09 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212464', 'tblTempUsageDetail_20' ) start [2025-01-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212464', 'tblTempUsageDetail_20' ) end [2025-01-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212464', 'tblTempVendorCDR_20' ) start [2025-01-09 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212464', 'tblTempVendorCDR_20' ) end [2025-01-09 21:55:18] Production.INFO: ProcessCDR(1,14212464,1,1,2) [2025-01-09 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212464', 'tblTempUsageDetail_20' ) start [2025-01-09 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212464', 'tblTempUsageDetail_20' ) end [2025-01-09 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:55:21] Production.INFO: ==9270== Releasing lock... [2025-01-09 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:55:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-09 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:56:05 [end_date_ymd] => 2025-01-09 21:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 18:56:05' and `end` < '2025-01-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-01-09 21:56:19] Production.INFO: count ==946 [2025-01-09 21:56:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:56:05 - End Time 2025-01-09 21:56:05 [2025-01-09 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212469', 'tblTempUsageDetail_20' ) start [2025-01-09 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212469', 'tblTempUsageDetail_20' ) end [2025-01-09 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212469', 'tblTempVendorCDR_20' ) start [2025-01-09 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212469', 'tblTempVendorCDR_20' ) end [2025-01-09 21:56:19] Production.INFO: ProcessCDR(1,14212469,1,1,2) [2025-01-09 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212469', 'tblTempUsageDetail_20' ) start [2025-01-09 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212469', 'tblTempUsageDetail_20' ) end [2025-01-09 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:56:22] Production.INFO: ==9344== Releasing lock... [2025-01-09 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:56:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-09 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:57:05 [end_date_ymd] => 2025-01-09 21:57:05 [RateCDR] => 1 ) [2025-01-09 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:57:05' and `end` < '2025-01-09 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:57:18] Production.INFO: count ==946 [2025-01-09 21:57:18] Production.ERROR: pbx CDR StartTime 2025-01-09 18:57:05 - End Time 2025-01-09 21:57:05 [2025-01-09 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212474', 'tblTempUsageDetail_20' ) start [2025-01-09 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212474', 'tblTempUsageDetail_20' ) end [2025-01-09 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212474', 'tblTempVendorCDR_20' ) start [2025-01-09 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212474', 'tblTempVendorCDR_20' ) end [2025-01-09 21:57:18] Production.INFO: ProcessCDR(1,14212474,1,1,2) [2025-01-09 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212474', 'tblTempUsageDetail_20' ) start [2025-01-09 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212474', 'tblTempUsageDetail_20' ) end [2025-01-09 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:57:21] Production.INFO: ==9418== Releasing lock... [2025-01-09 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:57:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-09 21:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:58:04 [end_date_ymd] => 2025-01-09 21:58:04 [RateCDR] => 1 ) [2025-01-09 21:58:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:58:04' and `end` < '2025-01-09 21:58:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:58:17] Production.INFO: count ==945 [2025-01-09 21:58:17] Production.ERROR: pbx CDR StartTime 2025-01-09 18:58:04 - End Time 2025-01-09 21:58:04 [2025-01-09 21:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212479', 'tblTempUsageDetail_20' ) start [2025-01-09 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212479', 'tblTempUsageDetail_20' ) end [2025-01-09 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212479', 'tblTempVendorCDR_20' ) start [2025-01-09 21:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212479', 'tblTempVendorCDR_20' ) end [2025-01-09 21:58:17] Production.INFO: ProcessCDR(1,14212479,1,1,2) [2025-01-09 21:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212479', 'tblTempUsageDetail_20' ) start [2025-01-09 21:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212479', 'tblTempUsageDetail_20' ) end [2025-01-09 21:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:58:20] Production.INFO: ==9489== Releasing lock... [2025-01-09 21:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:58:20] Production.INFO: 34.75 MB #Memory Used# [2025-01-09 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 18:59:05 [end_date_ymd] => 2025-01-09 21:59:05 [RateCDR] => 1 ) [2025-01-09 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 18:59:05' and `end` < '2025-01-09 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 21:59:19] Production.INFO: count ==942 [2025-01-09 21:59:19] Production.ERROR: pbx CDR StartTime 2025-01-09 18:59:05 - End Time 2025-01-09 21:59:05 [2025-01-09 21:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212484', 'tblTempUsageDetail_20' ) start [2025-01-09 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212484', 'tblTempUsageDetail_20' ) end [2025-01-09 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212484', 'tblTempVendorCDR_20' ) start [2025-01-09 21:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212484', 'tblTempVendorCDR_20' ) end [2025-01-09 21:59:19] Production.INFO: ProcessCDR(1,14212484,1,1,2) [2025-01-09 21:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 21:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212484', 'tblTempUsageDetail_20' ) start [2025-01-09 21:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212484', 'tblTempUsageDetail_20' ) end [2025-01-09 21:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 21:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 21:59:22] Production.INFO: ==9563== Releasing lock... [2025-01-09 21:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 21:59:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-09 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:00:05 [end_date_ymd] => 2025-01-09 22:00:05 [RateCDR] => 1 ) [2025-01-09 22:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:00:05' and `end` < '2025-01-09 22:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:00:18] Production.INFO: count ==943 [2025-01-09 22:00:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:00:05 - End Time 2025-01-09 22:00:05 [2025-01-09 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212490', 'tblTempUsageDetail_20' ) start [2025-01-09 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212490', 'tblTempUsageDetail_20' ) end [2025-01-09 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212490', 'tblTempVendorCDR_20' ) start [2025-01-09 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212490', 'tblTempVendorCDR_20' ) end [2025-01-09 22:00:18] Production.INFO: ProcessCDR(1,14212490,1,1,2) [2025-01-09 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212490', 'tblTempUsageDetail_20' ) start [2025-01-09 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212490', 'tblTempUsageDetail_20' ) end [2025-01-09 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:00:23] Production.INFO: ==9638== Releasing lock... [2025-01-09 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:00:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-09 22:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:01:04 [end_date_ymd] => 2025-01-09 22:01:04 [RateCDR] => 1 ) [2025-01-09 22:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:01:04' and `end` < '2025-01-09 22:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:01:18] Production.INFO: count ==897 [2025-01-09 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:01:04 - End Time 2025-01-09 22:01:04 [2025-01-09 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212495', 'tblTempUsageDetail_20' ) start [2025-01-09 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212495', 'tblTempUsageDetail_20' ) end [2025-01-09 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212495', 'tblTempVendorCDR_20' ) start [2025-01-09 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212495', 'tblTempVendorCDR_20' ) end [2025-01-09 22:01:18] Production.INFO: ProcessCDR(1,14212495,1,1,2) [2025-01-09 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212495', 'tblTempUsageDetail_20' ) start [2025-01-09 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212495', 'tblTempUsageDetail_20' ) end [2025-01-09 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:01:21] Production.INFO: ==9729== Releasing lock... [2025-01-09 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:01:21] Production.INFO: 34 MB #Memory Used# [2025-01-09 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:02:05 [end_date_ymd] => 2025-01-09 22:02:05 [RateCDR] => 1 ) [2025-01-09 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:02:05' and `end` < '2025-01-09 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:02:18] Production.INFO: count ==897 [2025-01-09 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:02:05 - End Time 2025-01-09 22:02:05 [2025-01-09 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212500', 'tblTempUsageDetail_20' ) start [2025-01-09 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212500', 'tblTempUsageDetail_20' ) end [2025-01-09 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212500', 'tblTempVendorCDR_20' ) start [2025-01-09 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212500', 'tblTempVendorCDR_20' ) end [2025-01-09 22:02:18] Production.INFO: ProcessCDR(1,14212500,1,1,2) [2025-01-09 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212500', 'tblTempUsageDetail_20' ) start [2025-01-09 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212500', 'tblTempUsageDetail_20' ) end [2025-01-09 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:02:22] Production.INFO: ==9799== Releasing lock... [2025-01-09 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:02:22] Production.INFO: 34 MB #Memory Used# [2025-01-09 22:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:03:04 [end_date_ymd] => 2025-01-09 22:03:04 [RateCDR] => 1 ) [2025-01-09 22:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:03:04' and `end` < '2025-01-09 22:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:03:18] Production.INFO: count ==891 [2025-01-09 22:03:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:03:04 - End Time 2025-01-09 22:03:04 [2025-01-09 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212505', 'tblTempUsageDetail_20' ) start [2025-01-09 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212505', 'tblTempUsageDetail_20' ) end [2025-01-09 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212505', 'tblTempVendorCDR_20' ) start [2025-01-09 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212505', 'tblTempVendorCDR_20' ) end [2025-01-09 22:03:18] Production.INFO: ProcessCDR(1,14212505,1,1,2) [2025-01-09 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212505', 'tblTempUsageDetail_20' ) start [2025-01-09 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212505', 'tblTempUsageDetail_20' ) end [2025-01-09 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:03:21] Production.INFO: ==9870== Releasing lock... [2025-01-09 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:03:21] Production.INFO: 34 MB #Memory Used# [2025-01-09 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:04:05 [end_date_ymd] => 2025-01-09 22:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:04:05' and `end` < '2025-01-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-01-09 22:04:19] Production.INFO: count ==891 [2025-01-09 22:04:19] Production.ERROR: pbx CDR StartTime 2025-01-09 19:04:05 - End Time 2025-01-09 22:04:05 [2025-01-09 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212510', 'tblTempUsageDetail_20' ) start [2025-01-09 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212510', 'tblTempUsageDetail_20' ) end [2025-01-09 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212510', 'tblTempVendorCDR_20' ) start [2025-01-09 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212510', 'tblTempVendorCDR_20' ) end [2025-01-09 22:04:19] Production.INFO: ProcessCDR(1,14212510,1,1,2) [2025-01-09 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212510', 'tblTempUsageDetail_20' ) start [2025-01-09 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212510', 'tblTempUsageDetail_20' ) end [2025-01-09 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:04:22] Production.INFO: ==9943== Releasing lock... [2025-01-09 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:04:22] Production.INFO: 34 MB #Memory Used# [2025-01-09 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:05:04 [end_date_ymd] => 2025-01-09 22:05:04 [RateCDR] => 1 ) [2025-01-09 22:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:05:04' and `end` < '2025-01-09 22:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:05:18] Production.INFO: count ==880 [2025-01-09 22:05:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:05:04 - End Time 2025-01-09 22:05:04 [2025-01-09 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212515', 'tblTempUsageDetail_20' ) start [2025-01-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212515', 'tblTempUsageDetail_20' ) end [2025-01-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212515', 'tblTempVendorCDR_20' ) start [2025-01-09 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212515', 'tblTempVendorCDR_20' ) end [2025-01-09 22:05:18] Production.INFO: ProcessCDR(1,14212515,1,1,2) [2025-01-09 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212515', 'tblTempUsageDetail_20' ) start [2025-01-09 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212515', 'tblTempUsageDetail_20' ) end [2025-01-09 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:05:21] Production.INFO: ==10017== Releasing lock... [2025-01-09 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:05:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-09 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:06:05 [end_date_ymd] => 2025-01-09 22:06:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:06:05' and `end` < '2025-01-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-01-09 22:06:18] Production.INFO: count ==880 [2025-01-09 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:06:05 - End Time 2025-01-09 22:06:05 [2025-01-09 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212520', 'tblTempUsageDetail_20' ) start [2025-01-09 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212520', 'tblTempUsageDetail_20' ) end [2025-01-09 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212520', 'tblTempVendorCDR_20' ) start [2025-01-09 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212520', 'tblTempVendorCDR_20' ) end [2025-01-09 22:06:18] Production.INFO: ProcessCDR(1,14212520,1,1,2) [2025-01-09 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212520', 'tblTempUsageDetail_20' ) start [2025-01-09 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212520', 'tblTempUsageDetail_20' ) end [2025-01-09 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:06:21] Production.INFO: ==10093== Releasing lock... [2025-01-09 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:06:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-09 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:07:04 [end_date_ymd] => 2025-01-09 22:07:04 [RateCDR] => 1 ) [2025-01-09 22:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:07:04' and `end` < '2025-01-09 22:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:07:18] Production.INFO: count ==882 [2025-01-09 22:07:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:07:04 - End Time 2025-01-09 22:07:04 [2025-01-09 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212525', 'tblTempUsageDetail_20' ) start [2025-01-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212525', 'tblTempUsageDetail_20' ) end [2025-01-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212525', 'tblTempVendorCDR_20' ) start [2025-01-09 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212525', 'tblTempVendorCDR_20' ) end [2025-01-09 22:07:18] Production.INFO: ProcessCDR(1,14212525,1,1,2) [2025-01-09 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212525', 'tblTempUsageDetail_20' ) start [2025-01-09 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212525', 'tblTempUsageDetail_20' ) end [2025-01-09 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:07:21] Production.INFO: ==10162== Releasing lock... [2025-01-09 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:07:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-09 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:08:05 [end_date_ymd] => 2025-01-09 22:08:05 [RateCDR] => 1 ) [2025-01-09 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:08:05' and `end` < '2025-01-09 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:08:18] Production.INFO: count ==882 [2025-01-09 22:08:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:08:05 - End Time 2025-01-09 22:08:05 [2025-01-09 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212530', 'tblTempUsageDetail_20' ) start [2025-01-09 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212530', 'tblTempUsageDetail_20' ) end [2025-01-09 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212530', 'tblTempVendorCDR_20' ) start [2025-01-09 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212530', 'tblTempVendorCDR_20' ) end [2025-01-09 22:08:18] Production.INFO: ProcessCDR(1,14212530,1,1,2) [2025-01-09 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212530', 'tblTempUsageDetail_20' ) start [2025-01-09 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212530', 'tblTempUsageDetail_20' ) end [2025-01-09 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:08:21] Production.INFO: ==10234== Releasing lock... [2025-01-09 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:08:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-09 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:09:04 [end_date_ymd] => 2025-01-09 22:09:04 [RateCDR] => 1 ) [2025-01-09 22:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:09:04' and `end` < '2025-01-09 22:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:09:17] Production.INFO: count ==882 [2025-01-09 22:09:17] Production.ERROR: pbx CDR StartTime 2025-01-09 19:09:04 - End Time 2025-01-09 22:09:04 [2025-01-09 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212535', 'tblTempUsageDetail_20' ) start [2025-01-09 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212535', 'tblTempUsageDetail_20' ) end [2025-01-09 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212535', 'tblTempVendorCDR_20' ) start [2025-01-09 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212535', 'tblTempVendorCDR_20' ) end [2025-01-09 22:09:17] Production.INFO: ProcessCDR(1,14212535,1,1,2) [2025-01-09 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212535', 'tblTempUsageDetail_20' ) start [2025-01-09 22:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212535', 'tblTempUsageDetail_20' ) end [2025-01-09 22:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:09:20] Production.INFO: ==10303== Releasing lock... [2025-01-09 22:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:09:20] Production.INFO: 33.75 MB #Memory Used# [2025-01-09 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:10:05 [end_date_ymd] => 2025-01-09 22:10:05 [RateCDR] => 1 ) [2025-01-09 22:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:10:05' and `end` < '2025-01-09 22:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:10:19] Production.INFO: count ==880 [2025-01-09 22:10:19] Production.ERROR: pbx CDR StartTime 2025-01-09 19:10:05 - End Time 2025-01-09 22:10:05 [2025-01-09 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212541', 'tblTempUsageDetail_20' ) start [2025-01-09 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212541', 'tblTempUsageDetail_20' ) end [2025-01-09 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212541', 'tblTempVendorCDR_20' ) start [2025-01-09 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212541', 'tblTempVendorCDR_20' ) end [2025-01-09 22:10:19] Production.INFO: ProcessCDR(1,14212541,1,1,2) [2025-01-09 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212541', 'tblTempUsageDetail_20' ) start [2025-01-09 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212541', 'tblTempUsageDetail_20' ) end [2025-01-09 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:10:22] Production.INFO: ==10415== Releasing lock... [2025-01-09 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-09 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:11:05 [end_date_ymd] => 2025-01-09 22:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:11:05' and `end` < '2025-01-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-01-09 22:11:19] Production.INFO: count ==835 [2025-01-09 22:11:19] Production.ERROR: pbx CDR StartTime 2025-01-09 19:11:05 - End Time 2025-01-09 22:11:05 [2025-01-09 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212544', 'tblTempUsageDetail_20' ) start [2025-01-09 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212544', 'tblTempUsageDetail_20' ) end [2025-01-09 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212544', 'tblTempVendorCDR_20' ) start [2025-01-09 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212544', 'tblTempVendorCDR_20' ) end [2025-01-09 22:11:19] Production.INFO: ProcessCDR(1,14212544,1,1,2) [2025-01-09 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212544', 'tblTempUsageDetail_20' ) start [2025-01-09 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212544', 'tblTempUsageDetail_20' ) end [2025-01-09 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:11:22] Production.INFO: ==10490== Releasing lock... [2025-01-09 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:11:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-09 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:12:05 [end_date_ymd] => 2025-01-09 22:12:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:12:05' and `end` < '2025-01-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-01-09 22:12:18] Production.INFO: count ==827 [2025-01-09 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:12:05 - End Time 2025-01-09 22:12:05 [2025-01-09 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212551', 'tblTempUsageDetail_20' ) start [2025-01-09 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212551', 'tblTempUsageDetail_20' ) end [2025-01-09 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212551', 'tblTempVendorCDR_20' ) start [2025-01-09 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212551', 'tblTempVendorCDR_20' ) end [2025-01-09 22:12:18] Production.INFO: ProcessCDR(1,14212551,1,1,2) [2025-01-09 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212551', 'tblTempUsageDetail_20' ) start [2025-01-09 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212551', 'tblTempUsageDetail_20' ) end [2025-01-09 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:12:21] Production.INFO: ==10563== Releasing lock... [2025-01-09 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:12:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-09 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:13:05 [end_date_ymd] => 2025-01-09 22:13:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:13:05' and `end` < '2025-01-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-01-09 22:13:20] Production.INFO: count ==830 [2025-01-09 22:13:20] Production.ERROR: pbx CDR StartTime 2025-01-09 19:13:05 - End Time 2025-01-09 22:13:05 [2025-01-09 22:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212556', 'tblTempUsageDetail_20' ) start [2025-01-09 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212556', 'tblTempUsageDetail_20' ) end [2025-01-09 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212556', 'tblTempVendorCDR_20' ) start [2025-01-09 22:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212556', 'tblTempVendorCDR_20' ) end [2025-01-09 22:13:20] Production.INFO: ProcessCDR(1,14212556,1,1,2) [2025-01-09 22:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212556', 'tblTempUsageDetail_20' ) start [2025-01-09 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212556', 'tblTempUsageDetail_20' ) end [2025-01-09 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:13:23] Production.INFO: ==10636== Releasing lock... [2025-01-09 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:13:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-09 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:14:05 [end_date_ymd] => 2025-01-09 22:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:14:05' and `end` < '2025-01-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-01-09 22:14:18] Production.INFO: count ==828 [2025-01-09 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:14:05 - End Time 2025-01-09 22:14:05 [2025-01-09 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212561', 'tblTempUsageDetail_20' ) start [2025-01-09 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212561', 'tblTempUsageDetail_20' ) end [2025-01-09 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212561', 'tblTempVendorCDR_20' ) start [2025-01-09 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212561', 'tblTempVendorCDR_20' ) end [2025-01-09 22:14:18] Production.INFO: ProcessCDR(1,14212561,1,1,2) [2025-01-09 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212561', 'tblTempUsageDetail_20' ) start [2025-01-09 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212561', 'tblTempUsageDetail_20' ) end [2025-01-09 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:14:22] Production.INFO: ==10710== Releasing lock... [2025-01-09 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:14:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-09 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:15:05 [end_date_ymd] => 2025-01-09 22:15:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:15:05' and `end` < '2025-01-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-01-09 22:15:18] Production.INFO: count ==829 [2025-01-09 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:15:05 - End Time 2025-01-09 22:15:05 [2025-01-09 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212566', 'tblTempUsageDetail_20' ) start [2025-01-09 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212566', 'tblTempUsageDetail_20' ) end [2025-01-09 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212566', 'tblTempVendorCDR_20' ) start [2025-01-09 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212566', 'tblTempVendorCDR_20' ) end [2025-01-09 22:15:18] Production.INFO: ProcessCDR(1,14212566,1,1,2) [2025-01-09 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212566', 'tblTempUsageDetail_20' ) start [2025-01-09 22:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212566', 'tblTempUsageDetail_20' ) end [2025-01-09 22:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:15:23] Production.INFO: ==10788== Releasing lock... [2025-01-09 22:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:15:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-09 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:16:05 [end_date_ymd] => 2025-01-09 22:16:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:16:05' and `end` < '2025-01-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-01-09 22:16:18] Production.INFO: count ==827 [2025-01-09 22:16:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:16:05 - End Time 2025-01-09 22:16:05 [2025-01-09 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212571', 'tblTempUsageDetail_20' ) start [2025-01-09 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212571', 'tblTempUsageDetail_20' ) end [2025-01-09 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212571', 'tblTempVendorCDR_20' ) start [2025-01-09 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212571', 'tblTempVendorCDR_20' ) end [2025-01-09 22:16:18] Production.INFO: ProcessCDR(1,14212571,1,1,2) [2025-01-09 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212571', 'tblTempUsageDetail_20' ) start [2025-01-09 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212571', 'tblTempUsageDetail_20' ) end [2025-01-09 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:16:21] Production.INFO: ==10874== Releasing lock... [2025-01-09 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:16:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-09 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:17:05 [end_date_ymd] => 2025-01-09 22:17:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:17:05' and `end` < '2025-01-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-01-09 22:17:18] Production.INFO: count ==826 [2025-01-09 22:17:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:17:05 - End Time 2025-01-09 22:17:05 [2025-01-09 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212576', 'tblTempUsageDetail_20' ) start [2025-01-09 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212576', 'tblTempUsageDetail_20' ) end [2025-01-09 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212576', 'tblTempVendorCDR_20' ) start [2025-01-09 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212576', 'tblTempVendorCDR_20' ) end [2025-01-09 22:17:18] Production.INFO: ProcessCDR(1,14212576,1,1,2) [2025-01-09 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212576', 'tblTempUsageDetail_20' ) start [2025-01-09 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212576', 'tblTempUsageDetail_20' ) end [2025-01-09 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:17:21] Production.INFO: ==10958== Releasing lock... [2025-01-09 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:17:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-09 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:18:05 [end_date_ymd] => 2025-01-09 22:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:18:05' and `end` < '2025-01-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-01-09 22:18:18] Production.INFO: count ==825 [2025-01-09 22:18:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:18:05 - End Time 2025-01-09 22:18:05 [2025-01-09 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212581', 'tblTempUsageDetail_20' ) start [2025-01-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212581', 'tblTempUsageDetail_20' ) end [2025-01-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212581', 'tblTempVendorCDR_20' ) start [2025-01-09 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212581', 'tblTempVendorCDR_20' ) end [2025-01-09 22:18:18] Production.INFO: ProcessCDR(1,14212581,1,1,2) [2025-01-09 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212581', 'tblTempUsageDetail_20' ) start [2025-01-09 22:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212581', 'tblTempUsageDetail_20' ) end [2025-01-09 22:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:18:21] Production.INFO: ==11046== Releasing lock... [2025-01-09 22:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:18:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-09 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:19:05 [end_date_ymd] => 2025-01-09 22:19:05 [RateCDR] => 1 ) [2025-01-09 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:19:05' and `end` < '2025-01-09 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:19:19] Production.INFO: count ==828 [2025-01-09 22:19:19] Production.ERROR: pbx CDR StartTime 2025-01-09 19:19:05 - End Time 2025-01-09 22:19:05 [2025-01-09 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212586', 'tblTempUsageDetail_20' ) start [2025-01-09 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212586', 'tblTempUsageDetail_20' ) end [2025-01-09 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212586', 'tblTempVendorCDR_20' ) start [2025-01-09 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212586', 'tblTempVendorCDR_20' ) end [2025-01-09 22:19:19] Production.INFO: ProcessCDR(1,14212586,1,1,2) [2025-01-09 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212586', 'tblTempUsageDetail_20' ) start [2025-01-09 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212586', 'tblTempUsageDetail_20' ) end [2025-01-09 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:19:23] Production.INFO: ==11136== Releasing lock... [2025-01-09 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:19:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-09 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:20:05 [end_date_ymd] => 2025-01-09 22:20:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:20:05' and `end` < '2025-01-09 22:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:20:19] Production.INFO: count ==827 [2025-01-09 22:20:19] Production.ERROR: pbx CDR StartTime 2025-01-09 19:20:05 - End Time 2025-01-09 22:20:05 [2025-01-09 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212591', 'tblTempUsageDetail_20' ) start [2025-01-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212591', 'tblTempUsageDetail_20' ) end [2025-01-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212591', 'tblTempVendorCDR_20' ) start [2025-01-09 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212591', 'tblTempVendorCDR_20' ) end [2025-01-09 22:20:19] Production.INFO: ProcessCDR(1,14212591,1,1,2) [2025-01-09 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212591', 'tblTempUsageDetail_20' ) start [2025-01-09 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212591', 'tblTempUsageDetail_20' ) end [2025-01-09 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:20:22] Production.INFO: ==11227== Releasing lock... [2025-01-09 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-09 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:21:04 [end_date_ymd] => 2025-01-09 22:21:04 [RateCDR] => 1 ) [2025-01-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-01-09 19:21:04' and `end` < '2025-01-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-01-09 22:21:17] Production.INFO: count ==803 [2025-01-09 22:21:17] Production.ERROR: pbx CDR StartTime 2025-01-09 19:21:04 - End Time 2025-01-09 22:21:04 [2025-01-09 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212597', 'tblTempUsageDetail_20' ) start [2025-01-09 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212597', 'tblTempUsageDetail_20' ) end [2025-01-09 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212597', 'tblTempVendorCDR_20' ) start [2025-01-09 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212597', 'tblTempVendorCDR_20' ) end [2025-01-09 22:21:17] Production.INFO: ProcessCDR(1,14212597,1,1,2) [2025-01-09 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212597', 'tblTempUsageDetail_20' ) start [2025-01-09 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212597', 'tblTempUsageDetail_20' ) end [2025-01-09 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:21:22] Production.INFO: ==11313== Releasing lock... [2025-01-09 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:21:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:22:05 [end_date_ymd] => 2025-01-09 22:22:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:22:05' and `end` < '2025-01-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-01-09 22:22:19] Production.INFO: count ==802 [2025-01-09 22:22:19] Production.ERROR: pbx CDR StartTime 2025-01-09 19:22:05 - End Time 2025-01-09 22:22:05 [2025-01-09 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212602', 'tblTempUsageDetail_20' ) start [2025-01-09 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212602', 'tblTempUsageDetail_20' ) end [2025-01-09 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212602', 'tblTempVendorCDR_20' ) start [2025-01-09 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212602', 'tblTempVendorCDR_20' ) end [2025-01-09 22:22:19] Production.INFO: ProcessCDR(1,14212602,1,1,2) [2025-01-09 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212602', 'tblTempUsageDetail_20' ) start [2025-01-09 22:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212602', 'tblTempUsageDetail_20' ) end [2025-01-09 22:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:22:23] Production.INFO: ==11397== Releasing lock... [2025-01-09 22:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:22:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:23:04 [end_date_ymd] => 2025-01-09 22:23:04 [RateCDR] => 1 ) [2025-01-09 22:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:23:04' and `end` < '2025-01-09 22:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:23:17] Production.INFO: count ==801 [2025-01-09 22:23:17] Production.ERROR: pbx CDR StartTime 2025-01-09 19:23:04 - End Time 2025-01-09 22:23:04 [2025-01-09 22:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212607', 'tblTempUsageDetail_20' ) start [2025-01-09 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212607', 'tblTempUsageDetail_20' ) end [2025-01-09 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212607', 'tblTempVendorCDR_20' ) start [2025-01-09 22:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212607', 'tblTempVendorCDR_20' ) end [2025-01-09 22:23:17] Production.INFO: ProcessCDR(1,14212607,1,1,2) [2025-01-09 22:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212607', 'tblTempUsageDetail_20' ) start [2025-01-09 22:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212607', 'tblTempUsageDetail_20' ) end [2025-01-09 22:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:23:20] Production.INFO: ==11484== Releasing lock... [2025-01-09 22:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:23:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:24:05 [end_date_ymd] => 2025-01-09 22:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:24:05' and `end` < '2025-01-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-01-09 22:24:18] Production.INFO: count ==802 [2025-01-09 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:24:05 - End Time 2025-01-09 22:24:05 [2025-01-09 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212612', 'tblTempUsageDetail_20' ) start [2025-01-09 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212612', 'tblTempUsageDetail_20' ) end [2025-01-09 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212612', 'tblTempVendorCDR_20' ) start [2025-01-09 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212612', 'tblTempVendorCDR_20' ) end [2025-01-09 22:24:18] Production.INFO: ProcessCDR(1,14212612,1,1,2) [2025-01-09 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212612', 'tblTempUsageDetail_20' ) start [2025-01-09 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212612', 'tblTempUsageDetail_20' ) end [2025-01-09 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:24:22] Production.INFO: ==11573== Releasing lock... [2025-01-09 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:24:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:25:04 [end_date_ymd] => 2025-01-09 22:25:04 [RateCDR] => 1 ) [2025-01-09 22:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:25:04' and `end` < '2025-01-09 22:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:25:17] Production.INFO: count ==802 [2025-01-09 22:25:17] Production.ERROR: pbx CDR StartTime 2025-01-09 19:25:04 - End Time 2025-01-09 22:25:04 [2025-01-09 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212617', 'tblTempUsageDetail_20' ) start [2025-01-09 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212617', 'tblTempUsageDetail_20' ) end [2025-01-09 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212617', 'tblTempVendorCDR_20' ) start [2025-01-09 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212617', 'tblTempVendorCDR_20' ) end [2025-01-09 22:25:17] Production.INFO: ProcessCDR(1,14212617,1,1,2) [2025-01-09 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212617', 'tblTempUsageDetail_20' ) start [2025-01-09 22:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212617', 'tblTempUsageDetail_20' ) end [2025-01-09 22:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:25:20] Production.INFO: ==11663== Releasing lock... [2025-01-09 22:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:25:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:26:05 [end_date_ymd] => 2025-01-09 22:26:05 [RateCDR] => 1 ) [2025-01-09 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:26:05' and `end` < '2025-01-09 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:26:18] Production.INFO: count ==803 [2025-01-09 22:26:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:26:05 - End Time 2025-01-09 22:26:05 [2025-01-09 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212622', 'tblTempUsageDetail_20' ) start [2025-01-09 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212622', 'tblTempUsageDetail_20' ) end [2025-01-09 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212622', 'tblTempVendorCDR_20' ) start [2025-01-09 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212622', 'tblTempVendorCDR_20' ) end [2025-01-09 22:26:18] Production.INFO: ProcessCDR(1,14212622,1,1,2) [2025-01-09 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212622', 'tblTempUsageDetail_20' ) start [2025-01-09 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212622', 'tblTempUsageDetail_20' ) end [2025-01-09 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:26:22] Production.INFO: ==11788== Releasing lock... [2025-01-09 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:26:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:27:05 [end_date_ymd] => 2025-01-09 22:27:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:27:05' and `end` < '2025-01-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-01-09 22:27:18] Production.INFO: count ==803 [2025-01-09 22:27:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:27:05 - End Time 2025-01-09 22:27:05 [2025-01-09 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212627', 'tblTempUsageDetail_20' ) start [2025-01-09 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212627', 'tblTempUsageDetail_20' ) end [2025-01-09 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212627', 'tblTempVendorCDR_20' ) start [2025-01-09 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212627', 'tblTempVendorCDR_20' ) end [2025-01-09 22:27:18] Production.INFO: ProcessCDR(1,14212627,1,1,2) [2025-01-09 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212627', 'tblTempUsageDetail_20' ) start [2025-01-09 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212627', 'tblTempUsageDetail_20' ) end [2025-01-09 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:27:22] Production.INFO: ==11874== Releasing lock... [2025-01-09 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:27:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:28:05 [end_date_ymd] => 2025-01-09 22:28:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:28:05' and `end` < '2025-01-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-01-09 22:28:19] Production.INFO: count ==803 [2025-01-09 22:28:19] Production.ERROR: pbx CDR StartTime 2025-01-09 19:28:05 - End Time 2025-01-09 22:28:05 [2025-01-09 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212632', 'tblTempUsageDetail_20' ) start [2025-01-09 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212632', 'tblTempUsageDetail_20' ) end [2025-01-09 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212632', 'tblTempVendorCDR_20' ) start [2025-01-09 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212632', 'tblTempVendorCDR_20' ) end [2025-01-09 22:28:19] Production.INFO: ProcessCDR(1,14212632,1,1,2) [2025-01-09 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212632', 'tblTempUsageDetail_20' ) start [2025-01-09 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212632', 'tblTempUsageDetail_20' ) end [2025-01-09 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:28:22] Production.INFO: ==11958== Releasing lock... [2025-01-09 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:28:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:29:05 [end_date_ymd] => 2025-01-09 22:29:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:29:05' and `end` < '2025-01-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-01-09 22:29:20] Production.INFO: count ==804 [2025-01-09 22:29:20] Production.ERROR: pbx CDR StartTime 2025-01-09 19:29:05 - End Time 2025-01-09 22:29:05 [2025-01-09 22:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212637', 'tblTempUsageDetail_20' ) start [2025-01-09 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212637', 'tblTempUsageDetail_20' ) end [2025-01-09 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212637', 'tblTempVendorCDR_20' ) start [2025-01-09 22:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212637', 'tblTempVendorCDR_20' ) end [2025-01-09 22:29:20] Production.INFO: ProcessCDR(1,14212637,1,1,2) [2025-01-09 22:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212637', 'tblTempUsageDetail_20' ) start [2025-01-09 22:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212637', 'tblTempUsageDetail_20' ) end [2025-01-09 22:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:29:24] Production.INFO: ==12043== Releasing lock... [2025-01-09 22:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:29:24] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:30:05 [end_date_ymd] => 2025-01-09 22:30:05 [RateCDR] => 1 ) [2025-01-09 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:30:05' and `end` < '2025-01-09 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:30:18] Production.INFO: count ==801 [2025-01-09 22:30:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:30:05 - End Time 2025-01-09 22:30:05 [2025-01-09 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212643', 'tblTempUsageDetail_20' ) start [2025-01-09 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212643', 'tblTempUsageDetail_20' ) end [2025-01-09 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212643', 'tblTempVendorCDR_20' ) start [2025-01-09 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212643', 'tblTempVendorCDR_20' ) end [2025-01-09 22:30:18] Production.INFO: ProcessCDR(1,14212643,1,1,2) [2025-01-09 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212643', 'tblTempUsageDetail_20' ) start [2025-01-09 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212643', 'tblTempUsageDetail_20' ) end [2025-01-09 22:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:30:21] Production.INFO: ==12131== Releasing lock... [2025-01-09 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:30:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:31:05 [end_date_ymd] => 2025-01-09 22:31:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:31:05' and `end` < '2025-01-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-01-09 22:31:20] Production.INFO: count ==785 [2025-01-09 22:31:20] Production.ERROR: pbx CDR StartTime 2025-01-09 19:31:05 - End Time 2025-01-09 22:31:05 [2025-01-09 22:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212648', 'tblTempUsageDetail_20' ) start [2025-01-09 22:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212648', 'tblTempUsageDetail_20' ) end [2025-01-09 22:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212648', 'tblTempVendorCDR_20' ) start [2025-01-09 22:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212648', 'tblTempVendorCDR_20' ) end [2025-01-09 22:31:20] Production.INFO: ProcessCDR(1,14212648,1,1,2) [2025-01-09 22:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212648', 'tblTempUsageDetail_20' ) start [2025-01-09 22:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212648', 'tblTempUsageDetail_20' ) end [2025-01-09 22:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:31:25] Production.INFO: ==12219== Releasing lock... [2025-01-09 22:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:31:25] Production.INFO: 33 MB #Memory Used# [2025-01-09 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:32:05 [end_date_ymd] => 2025-01-09 22:32:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:32:05' and `end` < '2025-01-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-01-09 22:32:19] Production.INFO: count ==785 [2025-01-09 22:32:19] Production.ERROR: pbx CDR StartTime 2025-01-09 19:32:05 - End Time 2025-01-09 22:32:05 [2025-01-09 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212653', 'tblTempUsageDetail_20' ) start [2025-01-09 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212653', 'tblTempUsageDetail_20' ) end [2025-01-09 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212653', 'tblTempVendorCDR_20' ) start [2025-01-09 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212653', 'tblTempVendorCDR_20' ) end [2025-01-09 22:32:19] Production.INFO: ProcessCDR(1,14212653,1,1,2) [2025-01-09 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212653', 'tblTempUsageDetail_20' ) start [2025-01-09 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212653', 'tblTempUsageDetail_20' ) end [2025-01-09 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:32:22] Production.INFO: ==12308== Releasing lock... [2025-01-09 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:32:22] Production.INFO: 33 MB #Memory Used# [2025-01-09 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:33:05 [end_date_ymd] => 2025-01-09 22:33:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:33:05' and `end` < '2025-01-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-01-09 22:33:18] Production.INFO: count ==781 [2025-01-09 22:33:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:33:05 - End Time 2025-01-09 22:33:05 [2025-01-09 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212658', 'tblTempUsageDetail_20' ) start [2025-01-09 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212658', 'tblTempUsageDetail_20' ) end [2025-01-09 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212658', 'tblTempVendorCDR_20' ) start [2025-01-09 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212658', 'tblTempVendorCDR_20' ) end [2025-01-09 22:33:18] Production.INFO: ProcessCDR(1,14212658,1,1,2) [2025-01-09 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212658', 'tblTempUsageDetail_20' ) start [2025-01-09 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212658', 'tblTempUsageDetail_20' ) end [2025-01-09 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:33:21] Production.INFO: ==12392== Releasing lock... [2025-01-09 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:33:21] Production.INFO: 33 MB #Memory Used# [2025-01-09 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:34:05 [end_date_ymd] => 2025-01-09 22:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:34:05' and `end` < '2025-01-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-01-09 22:34:20] Production.INFO: count ==780 [2025-01-09 22:34:20] Production.ERROR: pbx CDR StartTime 2025-01-09 19:34:05 - End Time 2025-01-09 22:34:05 [2025-01-09 22:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212663', 'tblTempUsageDetail_20' ) start [2025-01-09 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212663', 'tblTempUsageDetail_20' ) end [2025-01-09 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212663', 'tblTempVendorCDR_20' ) start [2025-01-09 22:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212663', 'tblTempVendorCDR_20' ) end [2025-01-09 22:34:20] Production.INFO: ProcessCDR(1,14212663,1,1,2) [2025-01-09 22:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212663', 'tblTempUsageDetail_20' ) start [2025-01-09 22:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212663', 'tblTempUsageDetail_20' ) end [2025-01-09 22:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:34:24] Production.INFO: ==12467== Releasing lock... [2025-01-09 22:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:34:24] Production.INFO: 33.25 MB #Memory Used# [2025-01-09 22:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:35:04 [end_date_ymd] => 2025-01-09 22:35:04 [RateCDR] => 1 ) [2025-01-09 22:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:35:04' and `end` < '2025-01-09 22:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:35:17] Production.INFO: count ==780 [2025-01-09 22:35:17] Production.ERROR: pbx CDR StartTime 2025-01-09 19:35:04 - End Time 2025-01-09 22:35:04 [2025-01-09 22:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212668', 'tblTempUsageDetail_20' ) start [2025-01-09 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212668', 'tblTempUsageDetail_20' ) end [2025-01-09 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212668', 'tblTempVendorCDR_20' ) start [2025-01-09 22:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212668', 'tblTempVendorCDR_20' ) end [2025-01-09 22:35:17] Production.INFO: ProcessCDR(1,14212668,1,1,2) [2025-01-09 22:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212668', 'tblTempUsageDetail_20' ) start [2025-01-09 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212668', 'tblTempUsageDetail_20' ) end [2025-01-09 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:35:22] Production.INFO: ==12543== Releasing lock... [2025-01-09 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:35:22] Production.INFO: 33 MB #Memory Used# [2025-01-09 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:36:05 [end_date_ymd] => 2025-01-09 22:36:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:36:05' and `end` < '2025-01-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-01-09 22:36:18] Production.INFO: count ==780 [2025-01-09 22:36:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:36:05 - End Time 2025-01-09 22:36:05 [2025-01-09 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212673', 'tblTempUsageDetail_20' ) start [2025-01-09 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212673', 'tblTempUsageDetail_20' ) end [2025-01-09 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212673', 'tblTempVendorCDR_20' ) start [2025-01-09 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212673', 'tblTempVendorCDR_20' ) end [2025-01-09 22:36:18] Production.INFO: ProcessCDR(1,14212673,1,1,2) [2025-01-09 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212673', 'tblTempUsageDetail_20' ) start [2025-01-09 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212673', 'tblTempUsageDetail_20' ) end [2025-01-09 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:36:21] Production.INFO: ==12622== Releasing lock... [2025-01-09 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:36:21] Production.INFO: 33 MB #Memory Used# [2025-01-09 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:37:04 [end_date_ymd] => 2025-01-09 22:37:04 [RateCDR] => 1 ) [2025-01-09 22:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:37:04' and `end` < '2025-01-09 22:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:37:18] Production.INFO: count ==779 [2025-01-09 22:37:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:37:04 - End Time 2025-01-09 22:37:04 [2025-01-09 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212678', 'tblTempUsageDetail_20' ) start [2025-01-09 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212678', 'tblTempUsageDetail_20' ) end [2025-01-09 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212678', 'tblTempVendorCDR_20' ) start [2025-01-09 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212678', 'tblTempVendorCDR_20' ) end [2025-01-09 22:37:18] Production.INFO: ProcessCDR(1,14212678,1,1,2) [2025-01-09 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212678', 'tblTempUsageDetail_20' ) start [2025-01-09 22:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212678', 'tblTempUsageDetail_20' ) end [2025-01-09 22:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:37:23] Production.INFO: ==12696== Releasing lock... [2025-01-09 22:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:37:23] Production.INFO: 33 MB #Memory Used# [2025-01-09 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:38:05 [end_date_ymd] => 2025-01-09 22:38:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:38:05' and `end` < '2025-01-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-01-09 22:38:20] Production.INFO: count ==778 [2025-01-09 22:38:20] Production.ERROR: pbx CDR StartTime 2025-01-09 19:38:05 - End Time 2025-01-09 22:38:05 [2025-01-09 22:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212683', 'tblTempUsageDetail_20' ) start [2025-01-09 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212683', 'tblTempUsageDetail_20' ) end [2025-01-09 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212683', 'tblTempVendorCDR_20' ) start [2025-01-09 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212683', 'tblTempVendorCDR_20' ) end [2025-01-09 22:38:20] Production.INFO: ProcessCDR(1,14212683,1,1,2) [2025-01-09 22:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212683', 'tblTempUsageDetail_20' ) start [2025-01-09 22:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212683', 'tblTempUsageDetail_20' ) end [2025-01-09 22:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:38:23] Production.INFO: ==12771== Releasing lock... [2025-01-09 22:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:38:23] Production.INFO: 33 MB #Memory Used# [2025-01-09 22:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:39:06 [end_date_ymd] => 2025-01-09 22:39:06 [RateCDR] => 1 ) [2025-01-09 22:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:39:06' and `end` < '2025-01-09 22:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:39:21] Production.INFO: count ==765 [2025-01-09 22:39:21] Production.ERROR: pbx CDR StartTime 2025-01-09 19:39:06 - End Time 2025-01-09 22:39:06 [2025-01-09 22:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212688', 'tblTempUsageDetail_20' ) start [2025-01-09 22:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212688', 'tblTempUsageDetail_20' ) end [2025-01-09 22:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212688', 'tblTempVendorCDR_20' ) start [2025-01-09 22:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212688', 'tblTempVendorCDR_20' ) end [2025-01-09 22:39:21] Production.INFO: ProcessCDR(1,14212688,1,1,2) [2025-01-09 22:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212688', 'tblTempUsageDetail_20' ) start [2025-01-09 22:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212688', 'tblTempUsageDetail_20' ) end [2025-01-09 22:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:39:24] Production.INFO: ==12842== Releasing lock... [2025-01-09 22:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:39:24] Production.INFO: 33 MB #Memory Used# [2025-01-09 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:40:05 [end_date_ymd] => 2025-01-09 22:40:05 [RateCDR] => 1 ) [2025-01-09 22:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:40:05' and `end` < '2025-01-09 22:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:40:18] Production.INFO: count ==764 [2025-01-09 22:40:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:40:05 - End Time 2025-01-09 22:40:05 [2025-01-09 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212692', 'tblTempUsageDetail_20' ) start [2025-01-09 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212692', 'tblTempUsageDetail_20' ) end [2025-01-09 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212692', 'tblTempVendorCDR_20' ) start [2025-01-09 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212692', 'tblTempVendorCDR_20' ) end [2025-01-09 22:40:18] Production.INFO: ProcessCDR(1,14212692,1,1,2) [2025-01-09 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212692', 'tblTempUsageDetail_20' ) start [2025-01-09 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212692', 'tblTempUsageDetail_20' ) end [2025-01-09 22:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:40:21] Production.INFO: ==12913== Releasing lock... [2025-01-09 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:40:21] Production.INFO: 33 MB #Memory Used# [2025-01-09 22:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:41:04 [end_date_ymd] => 2025-01-09 22:41:04 [RateCDR] => 1 ) [2025-01-09 22:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:41:04' and `end` < '2025-01-09 22:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:41:18] Production.INFO: count ==737 [2025-01-09 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:41:04 - End Time 2025-01-09 22:41:04 [2025-01-09 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212699', 'tblTempUsageDetail_20' ) start [2025-01-09 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212699', 'tblTempUsageDetail_20' ) end [2025-01-09 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212699', 'tblTempVendorCDR_20' ) start [2025-01-09 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212699', 'tblTempVendorCDR_20' ) end [2025-01-09 22:41:18] Production.INFO: ProcessCDR(1,14212699,1,1,2) [2025-01-09 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212699', 'tblTempUsageDetail_20' ) start [2025-01-09 22:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212699', 'tblTempUsageDetail_20' ) end [2025-01-09 22:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:41:22] Production.INFO: ==12985== Releasing lock... [2025-01-09 22:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:41:22] Production.INFO: 33 MB #Memory Used# [2025-01-09 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:42:05 [end_date_ymd] => 2025-01-09 22:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:42:05' and `end` < '2025-01-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-01-09 22:42:19] Production.INFO: count ==733 [2025-01-09 22:42:19] Production.ERROR: pbx CDR StartTime 2025-01-09 19:42:05 - End Time 2025-01-09 22:42:05 [2025-01-09 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212704', 'tblTempUsageDetail_20' ) start [2025-01-09 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212704', 'tblTempUsageDetail_20' ) end [2025-01-09 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212704', 'tblTempVendorCDR_20' ) start [2025-01-09 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212704', 'tblTempVendorCDR_20' ) end [2025-01-09 22:42:19] Production.INFO: ProcessCDR(1,14212704,1,1,2) [2025-01-09 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212704', 'tblTempUsageDetail_20' ) start [2025-01-09 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212704', 'tblTempUsageDetail_20' ) end [2025-01-09 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:42:22] Production.INFO: ==13095== Releasing lock... [2025-01-09 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:42:22] Production.INFO: 33 MB #Memory Used# [2025-01-09 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:43:05 [end_date_ymd] => 2025-01-09 22:43:05 [RateCDR] => 1 ) [2025-01-09 22:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:43:05' and `end` < '2025-01-09 22:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:43:20] Production.INFO: count ==725 [2025-01-09 22:43:20] Production.ERROR: pbx CDR StartTime 2025-01-09 19:43:05 - End Time 2025-01-09 22:43:05 [2025-01-09 22:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212709', 'tblTempUsageDetail_20' ) start [2025-01-09 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212709', 'tblTempUsageDetail_20' ) end [2025-01-09 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212709', 'tblTempVendorCDR_20' ) start [2025-01-09 22:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212709', 'tblTempVendorCDR_20' ) end [2025-01-09 22:43:20] Production.INFO: ProcessCDR(1,14212709,1,1,2) [2025-01-09 22:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212709', 'tblTempUsageDetail_20' ) start [2025-01-09 22:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212709', 'tblTempUsageDetail_20' ) end [2025-01-09 22:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:43:23] Production.INFO: ==13165== Releasing lock... [2025-01-09 22:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:43:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-09 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:44:05 [end_date_ymd] => 2025-01-09 22:44:05 [RateCDR] => 1 ) [2025-01-09 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:44:05' and `end` < '2025-01-09 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:44:20] Production.INFO: count ==728 [2025-01-09 22:44:20] Production.ERROR: pbx CDR StartTime 2025-01-09 19:44:05 - End Time 2025-01-09 22:44:05 [2025-01-09 22:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212714', 'tblTempUsageDetail_20' ) start [2025-01-09 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212714', 'tblTempUsageDetail_20' ) end [2025-01-09 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212714', 'tblTempVendorCDR_20' ) start [2025-01-09 22:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212714', 'tblTempVendorCDR_20' ) end [2025-01-09 22:44:20] Production.INFO: ProcessCDR(1,14212714,1,1,2) [2025-01-09 22:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212714', 'tblTempUsageDetail_20' ) start [2025-01-09 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212714', 'tblTempUsageDetail_20' ) end [2025-01-09 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:44:23] Production.INFO: ==13237== Releasing lock... [2025-01-09 22:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:44:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-09 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:45:05 [end_date_ymd] => 2025-01-09 22:45:05 [RateCDR] => 1 ) [2025-01-09 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:45:05' and `end` < '2025-01-09 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:45:19] Production.INFO: count ==727 [2025-01-09 22:45:19] Production.ERROR: pbx CDR StartTime 2025-01-09 19:45:05 - End Time 2025-01-09 22:45:05 [2025-01-09 22:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212719', 'tblTempUsageDetail_20' ) start [2025-01-09 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212719', 'tblTempUsageDetail_20' ) end [2025-01-09 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212719', 'tblTempVendorCDR_20' ) start [2025-01-09 22:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212719', 'tblTempVendorCDR_20' ) end [2025-01-09 22:45:19] Production.INFO: ProcessCDR(1,14212719,1,1,2) [2025-01-09 22:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212719', 'tblTempUsageDetail_20' ) start [2025-01-09 22:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212719', 'tblTempUsageDetail_20' ) end [2025-01-09 22:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:45:24] Production.INFO: ==13312== Releasing lock... [2025-01-09 22:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:45:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-09 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:46:05 [end_date_ymd] => 2025-01-09 22:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:46:05' and `end` < '2025-01-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-01-09 22:46:19] Production.INFO: count ==729 [2025-01-09 22:46:19] Production.ERROR: pbx CDR StartTime 2025-01-09 19:46:05 - End Time 2025-01-09 22:46:05 [2025-01-09 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212724', 'tblTempUsageDetail_20' ) start [2025-01-09 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212724', 'tblTempUsageDetail_20' ) end [2025-01-09 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212724', 'tblTempVendorCDR_20' ) start [2025-01-09 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212724', 'tblTempVendorCDR_20' ) end [2025-01-09 22:46:19] Production.INFO: ProcessCDR(1,14212724,1,1,2) [2025-01-09 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212724', 'tblTempUsageDetail_20' ) start [2025-01-09 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212724', 'tblTempUsageDetail_20' ) end [2025-01-09 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:46:23] Production.INFO: ==13383== Releasing lock... [2025-01-09 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:46:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-09 22:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:47:04 [end_date_ymd] => 2025-01-09 22:47:04 [RateCDR] => 1 ) [2025-01-09 22:47:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:47:04' and `end` < '2025-01-09 22:47:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:47:17] Production.INFO: count ==729 [2025-01-09 22:47:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:47:04 - End Time 2025-01-09 22:47:04 [2025-01-09 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212729', 'tblTempUsageDetail_20' ) start [2025-01-09 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212729', 'tblTempUsageDetail_20' ) end [2025-01-09 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212729', 'tblTempVendorCDR_20' ) start [2025-01-09 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212729', 'tblTempVendorCDR_20' ) end [2025-01-09 22:47:18] Production.INFO: ProcessCDR(1,14212729,1,1,2) [2025-01-09 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212729', 'tblTempUsageDetail_20' ) start [2025-01-09 22:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212729', 'tblTempUsageDetail_20' ) end [2025-01-09 22:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:47:21] Production.INFO: ==13451== Releasing lock... [2025-01-09 22:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:47:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-09 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:48:05 [end_date_ymd] => 2025-01-09 22:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:48:05' and `end` < '2025-01-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-01-09 22:48:18] Production.INFO: count ==728 [2025-01-09 22:48:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:48:05 - End Time 2025-01-09 22:48:05 [2025-01-09 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212734', 'tblTempUsageDetail_20' ) start [2025-01-09 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212734', 'tblTempUsageDetail_20' ) end [2025-01-09 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212734', 'tblTempVendorCDR_20' ) start [2025-01-09 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212734', 'tblTempVendorCDR_20' ) end [2025-01-09 22:48:18] Production.INFO: ProcessCDR(1,14212734,1,1,2) [2025-01-09 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212734', 'tblTempUsageDetail_20' ) start [2025-01-09 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212734', 'tblTempUsageDetail_20' ) end [2025-01-09 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:48:22] Production.INFO: ==13522== Releasing lock... [2025-01-09 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:48:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-09 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:49:04 [end_date_ymd] => 2025-01-09 22:49:04 [RateCDR] => 1 ) [2025-01-09 22:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:49:04' and `end` < '2025-01-09 22:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:49:20] Production.INFO: count ==727 [2025-01-09 22:49:20] Production.ERROR: pbx CDR StartTime 2025-01-09 19:49:04 - End Time 2025-01-09 22:49:04 [2025-01-09 22:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212739', 'tblTempUsageDetail_20' ) start [2025-01-09 22:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212739', 'tblTempUsageDetail_20' ) end [2025-01-09 22:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212739', 'tblTempVendorCDR_20' ) start [2025-01-09 22:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212739', 'tblTempVendorCDR_20' ) end [2025-01-09 22:49:20] Production.INFO: ProcessCDR(1,14212739,1,1,2) [2025-01-09 22:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212739', 'tblTempUsageDetail_20' ) start [2025-01-09 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212739', 'tblTempUsageDetail_20' ) end [2025-01-09 22:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:49:23] Production.INFO: ==13594== Releasing lock... [2025-01-09 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:49:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-09 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:50:05 [end_date_ymd] => 2025-01-09 22:50:05 [RateCDR] => 1 ) [2025-01-09 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:50:05' and `end` < '2025-01-09 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:50:18] Production.INFO: count ==724 [2025-01-09 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-09 19:50:05 - End Time 2025-01-09 22:50:05 [2025-01-09 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212745', 'tblTempUsageDetail_20' ) start [2025-01-09 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212745', 'tblTempUsageDetail_20' ) end [2025-01-09 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212745', 'tblTempVendorCDR_20' ) start [2025-01-09 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212745', 'tblTempVendorCDR_20' ) end [2025-01-09 22:50:19] Production.INFO: ProcessCDR(1,14212745,1,1,2) [2025-01-09 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212745', 'tblTempUsageDetail_20' ) start [2025-01-09 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212745', 'tblTempUsageDetail_20' ) end [2025-01-09 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:50:22] Production.INFO: ==13668== Releasing lock... [2025-01-09 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:50:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-09 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:51:04 [end_date_ymd] => 2025-01-09 22:51:04 [RateCDR] => 1 ) [2025-01-09 22:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:51:04' and `end` < '2025-01-09 22:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:51:17] Production.INFO: count ==694 [2025-01-09 22:51:17] Production.ERROR: pbx CDR StartTime 2025-01-09 19:51:04 - End Time 2025-01-09 22:51:04 [2025-01-09 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212750', 'tblTempUsageDetail_20' ) start [2025-01-09 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212750', 'tblTempUsageDetail_20' ) end [2025-01-09 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212750', 'tblTempVendorCDR_20' ) start [2025-01-09 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212750', 'tblTempVendorCDR_20' ) end [2025-01-09 22:51:17] Production.INFO: ProcessCDR(1,14212750,1,1,2) [2025-01-09 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212750', 'tblTempUsageDetail_20' ) start [2025-01-09 22:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212750', 'tblTempUsageDetail_20' ) end [2025-01-09 22:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:51:22] Production.INFO: ==13744== Releasing lock... [2025-01-09 22:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:51:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:52:05 [end_date_ymd] => 2025-01-09 22:52:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:52:05' and `end` < '2025-01-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-01-09 22:52:17] Production.INFO: count ==694 [2025-01-09 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:52:05 - End Time 2025-01-09 22:52:05 [2025-01-09 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212755', 'tblTempUsageDetail_20' ) start [2025-01-09 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212755', 'tblTempUsageDetail_20' ) end [2025-01-09 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212755', 'tblTempVendorCDR_20' ) start [2025-01-09 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212755', 'tblTempVendorCDR_20' ) end [2025-01-09 22:52:18] Production.INFO: ProcessCDR(1,14212755,1,1,2) [2025-01-09 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212755', 'tblTempUsageDetail_20' ) start [2025-01-09 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212755', 'tblTempUsageDetail_20' ) end [2025-01-09 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:52:21] Production.INFO: ==13814== Releasing lock... [2025-01-09 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:52:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:53:05 [end_date_ymd] => 2025-01-09 22:53:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:53:05' and `end` < '2025-01-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-01-09 22:53:19] Production.INFO: count ==695 [2025-01-09 22:53:19] Production.ERROR: pbx CDR StartTime 2025-01-09 19:53:05 - End Time 2025-01-09 22:53:05 [2025-01-09 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212760', 'tblTempUsageDetail_20' ) start [2025-01-09 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212760', 'tblTempUsageDetail_20' ) end [2025-01-09 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212760', 'tblTempVendorCDR_20' ) start [2025-01-09 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212760', 'tblTempVendorCDR_20' ) end [2025-01-09 22:53:19] Production.INFO: ProcessCDR(1,14212760,1,1,2) [2025-01-09 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212760', 'tblTempUsageDetail_20' ) start [2025-01-09 22:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212760', 'tblTempUsageDetail_20' ) end [2025-01-09 22:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:53:24] Production.INFO: ==13885== Releasing lock... [2025-01-09 22:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:53:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 22:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:54:04 [end_date_ymd] => 2025-01-09 22:54:04 [RateCDR] => 1 ) [2025-01-09 22:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:54:04' and `end` < '2025-01-09 22:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:54:17] Production.INFO: count ==692 [2025-01-09 22:54:17] Production.ERROR: pbx CDR StartTime 2025-01-09 19:54:04 - End Time 2025-01-09 22:54:04 [2025-01-09 22:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212765', 'tblTempUsageDetail_20' ) start [2025-01-09 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212765', 'tblTempUsageDetail_20' ) end [2025-01-09 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212765', 'tblTempVendorCDR_20' ) start [2025-01-09 22:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212765', 'tblTempVendorCDR_20' ) end [2025-01-09 22:54:17] Production.INFO: ProcessCDR(1,14212765,1,1,2) [2025-01-09 22:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212765', 'tblTempUsageDetail_20' ) start [2025-01-09 22:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212765', 'tblTempUsageDetail_20' ) end [2025-01-09 22:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:54:20] Production.INFO: ==13955== Releasing lock... [2025-01-09 22:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:54:20] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:55:05 [end_date_ymd] => 2025-01-09 22:55:05 [RateCDR] => 1 ) [2025-01-09 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:55:05' and `end` < '2025-01-09 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:55:18] Production.INFO: count ==690 [2025-01-09 22:55:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:55:05 - End Time 2025-01-09 22:55:05 [2025-01-09 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212770', 'tblTempUsageDetail_20' ) start [2025-01-09 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212770', 'tblTempUsageDetail_20' ) end [2025-01-09 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212770', 'tblTempVendorCDR_20' ) start [2025-01-09 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212770', 'tblTempVendorCDR_20' ) end [2025-01-09 22:55:18] Production.INFO: ProcessCDR(1,14212770,1,1,2) [2025-01-09 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212770', 'tblTempUsageDetail_20' ) start [2025-01-09 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212770', 'tblTempUsageDetail_20' ) end [2025-01-09 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:55:21] Production.INFO: ==14025== Releasing lock... [2025-01-09 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:55:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 22:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:56:04 [end_date_ymd] => 2025-01-09 22:56:04 [RateCDR] => 1 ) [2025-01-09 22:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 19:56:04' and `end` < '2025-01-09 22:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 22:56:17] Production.INFO: count ==691 [2025-01-09 22:56:17] Production.ERROR: pbx CDR StartTime 2025-01-09 19:56:04 - End Time 2025-01-09 22:56:04 [2025-01-09 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212775', 'tblTempUsageDetail_20' ) start [2025-01-09 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212775', 'tblTempUsageDetail_20' ) end [2025-01-09 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212775', 'tblTempVendorCDR_20' ) start [2025-01-09 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212775', 'tblTempVendorCDR_20' ) end [2025-01-09 22:56:17] Production.INFO: ProcessCDR(1,14212775,1,1,2) [2025-01-09 22:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212775', 'tblTempUsageDetail_20' ) start [2025-01-09 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212775', 'tblTempUsageDetail_20' ) end [2025-01-09 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:56:21] Production.INFO: ==14095== Releasing lock... [2025-01-09 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:56:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:57:05 [end_date_ymd] => 2025-01-09 22:57:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:57:05' and `end` < '2025-01-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-01-09 22:57:18] Production.INFO: count ==691 [2025-01-09 22:57:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:57:05 - End Time 2025-01-09 22:57:05 [2025-01-09 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212780', 'tblTempUsageDetail_20' ) start [2025-01-09 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212780', 'tblTempUsageDetail_20' ) end [2025-01-09 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212780', 'tblTempVendorCDR_20' ) start [2025-01-09 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212780', 'tblTempVendorCDR_20' ) end [2025-01-09 22:57:18] Production.INFO: ProcessCDR(1,14212780,1,1,2) [2025-01-09 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212780', 'tblTempUsageDetail_20' ) start [2025-01-09 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212780', 'tblTempUsageDetail_20' ) end [2025-01-09 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:57:21] Production.INFO: ==14207== Releasing lock... [2025-01-09 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:57:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:58:05 [end_date_ymd] => 2025-01-09 22:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:58:05' and `end` < '2025-01-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-01-09 22:58:18] Production.INFO: count ==691 [2025-01-09 22:58:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:58:05 - End Time 2025-01-09 22:58:05 [2025-01-09 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212785', 'tblTempUsageDetail_20' ) start [2025-01-09 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212785', 'tblTempUsageDetail_20' ) end [2025-01-09 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212785', 'tblTempVendorCDR_20' ) start [2025-01-09 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212785', 'tblTempVendorCDR_20' ) end [2025-01-09 22:58:18] Production.INFO: ProcessCDR(1,14212785,1,1,2) [2025-01-09 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212785', 'tblTempUsageDetail_20' ) start [2025-01-09 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212785', 'tblTempUsageDetail_20' ) end [2025-01-09 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:58:21] Production.INFO: ==14277== Releasing lock... [2025-01-09 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:58:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 19:59:05 [end_date_ymd] => 2025-01-09 22:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 19:59:05' and `end` < '2025-01-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-01-09 22:59:18] Production.INFO: count ==691 [2025-01-09 22:59:18] Production.ERROR: pbx CDR StartTime 2025-01-09 19:59:05 - End Time 2025-01-09 22:59:05 [2025-01-09 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212790', 'tblTempUsageDetail_20' ) start [2025-01-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212790', 'tblTempUsageDetail_20' ) end [2025-01-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212790', 'tblTempVendorCDR_20' ) start [2025-01-09 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212790', 'tblTempVendorCDR_20' ) end [2025-01-09 22:59:18] Production.INFO: ProcessCDR(1,14212790,1,1,2) [2025-01-09 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212790', 'tblTempUsageDetail_20' ) start [2025-01-09 22:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212790', 'tblTempUsageDetail_20' ) end [2025-01-09 22:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 22:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 22:59:21] Production.INFO: ==14352== Releasing lock... [2025-01-09 22:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 22:59:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:00:05 [end_date_ymd] => 2025-01-09 23:00:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:00:05' and `end` < '2025-01-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-01-09 23:00:18] Production.INFO: count ==691 [2025-01-09 23:00:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:00:05 - End Time 2025-01-09 23:00:05 [2025-01-09 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212796', 'tblTempUsageDetail_20' ) start [2025-01-09 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212796', 'tblTempUsageDetail_20' ) end [2025-01-09 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212796', 'tblTempVendorCDR_20' ) start [2025-01-09 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212796', 'tblTempVendorCDR_20' ) end [2025-01-09 23:00:18] Production.INFO: ProcessCDR(1,14212796,1,1,2) [2025-01-09 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212796', 'tblTempUsageDetail_20' ) start [2025-01-09 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212796', 'tblTempUsageDetail_20' ) end [2025-01-09 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:00:21] Production.INFO: ==14426== Releasing lock... [2025-01-09 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:00:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-09 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:01:05 [end_date_ymd] => 2025-01-09 23:01:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:01:05' and `end` < '2025-01-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-01-09 23:01:18] Production.INFO: count ==656 [2025-01-09 23:01:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:01:05 - End Time 2025-01-09 23:01:05 [2025-01-09 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212801', 'tblTempUsageDetail_20' ) start [2025-01-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212801', 'tblTempUsageDetail_20' ) end [2025-01-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212801', 'tblTempVendorCDR_20' ) start [2025-01-09 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212801', 'tblTempVendorCDR_20' ) end [2025-01-09 23:01:18] Production.INFO: ProcessCDR(1,14212801,1,1,2) [2025-01-09 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212801', 'tblTempUsageDetail_20' ) start [2025-01-09 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212801', 'tblTempUsageDetail_20' ) end [2025-01-09 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:01:21] Production.INFO: ==14552== Releasing lock... [2025-01-09 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:01:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-09 23:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:02:04 [end_date_ymd] => 2025-01-09 23:02:04 [RateCDR] => 1 ) [2025-01-09 23:02:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:02:04' and `end` < '2025-01-09 23:02:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:02:17] Production.INFO: count ==655 [2025-01-09 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:02:04 - End Time 2025-01-09 23:02:04 [2025-01-09 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212806', 'tblTempUsageDetail_20' ) start [2025-01-09 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212806', 'tblTempUsageDetail_20' ) end [2025-01-09 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212806', 'tblTempVendorCDR_20' ) start [2025-01-09 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212806', 'tblTempVendorCDR_20' ) end [2025-01-09 23:02:18] Production.INFO: ProcessCDR(1,14212806,1,1,2) [2025-01-09 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212806', 'tblTempUsageDetail_20' ) start [2025-01-09 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212806', 'tblTempUsageDetail_20' ) end [2025-01-09 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:02:21] Production.INFO: ==14662== Releasing lock... [2025-01-09 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:02:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-09 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:03:05 [end_date_ymd] => 2025-01-09 23:03:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:03:05' and `end` < '2025-01-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-01-09 23:03:18] Production.INFO: count ==655 [2025-01-09 23:03:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:03:05 - End Time 2025-01-09 23:03:05 [2025-01-09 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212811', 'tblTempUsageDetail_20' ) start [2025-01-09 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212811', 'tblTempUsageDetail_20' ) end [2025-01-09 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212811', 'tblTempVendorCDR_20' ) start [2025-01-09 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212811', 'tblTempVendorCDR_20' ) end [2025-01-09 23:03:18] Production.INFO: ProcessCDR(1,14212811,1,1,2) [2025-01-09 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212811', 'tblTempUsageDetail_20' ) start [2025-01-09 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212811', 'tblTempUsageDetail_20' ) end [2025-01-09 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:03:21] Production.INFO: ==14736== Releasing lock... [2025-01-09 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:03:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-09 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:04:05 [end_date_ymd] => 2025-01-09 23:04:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:04:05' and `end` < '2025-01-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-01-09 23:04:18] Production.INFO: count ==655 [2025-01-09 23:04:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:04:05 - End Time 2025-01-09 23:04:05 [2025-01-09 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212816', 'tblTempUsageDetail_20' ) start [2025-01-09 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212816', 'tblTempUsageDetail_20' ) end [2025-01-09 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212816', 'tblTempVendorCDR_20' ) start [2025-01-09 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212816', 'tblTempVendorCDR_20' ) end [2025-01-09 23:04:18] Production.INFO: ProcessCDR(1,14212816,1,1,2) [2025-01-09 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212816', 'tblTempUsageDetail_20' ) start [2025-01-09 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212816', 'tblTempUsageDetail_20' ) end [2025-01-09 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:04:21] Production.INFO: ==14807== Releasing lock... [2025-01-09 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:04:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-09 23:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:05:04 [end_date_ymd] => 2025-01-09 23:05:04 [RateCDR] => 1 ) [2025-01-09 23:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:05:04' and `end` < '2025-01-09 23:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:05:17] Production.INFO: count ==655 [2025-01-09 23:05:17] Production.ERROR: pbx CDR StartTime 2025-01-09 20:05:04 - End Time 2025-01-09 23:05:04 [2025-01-09 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212821', 'tblTempUsageDetail_20' ) start [2025-01-09 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212821', 'tblTempUsageDetail_20' ) end [2025-01-09 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212821', 'tblTempVendorCDR_20' ) start [2025-01-09 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212821', 'tblTempVendorCDR_20' ) end [2025-01-09 23:05:17] Production.INFO: ProcessCDR(1,14212821,1,1,2) [2025-01-09 23:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212821', 'tblTempUsageDetail_20' ) start [2025-01-09 23:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212821', 'tblTempUsageDetail_20' ) end [2025-01-09 23:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:05:20] Production.INFO: ==14955== Releasing lock... [2025-01-09 23:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:05:20] Production.INFO: 32.25 MB #Memory Used# [2025-01-09 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:06:05 [end_date_ymd] => 2025-01-09 23:06:05 [RateCDR] => 1 ) [2025-01-09 23:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:06:05' and `end` < '2025-01-09 23:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:06:19] Production.INFO: count ==652 [2025-01-09 23:06:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:06:05 - End Time 2025-01-09 23:06:05 [2025-01-09 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212826', 'tblTempUsageDetail_20' ) start [2025-01-09 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212826', 'tblTempUsageDetail_20' ) end [2025-01-09 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212826', 'tblTempVendorCDR_20' ) start [2025-01-09 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212826', 'tblTempVendorCDR_20' ) end [2025-01-09 23:06:19] Production.INFO: ProcessCDR(1,14212826,1,1,2) [2025-01-09 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212826', 'tblTempUsageDetail_20' ) start [2025-01-09 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212826', 'tblTempUsageDetail_20' ) end [2025-01-09 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:06:22] Production.INFO: ==15026== Releasing lock... [2025-01-09 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:06:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-09 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:07:04 [end_date_ymd] => 2025-01-09 23:07:04 [RateCDR] => 1 ) [2025-01-09 23:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:07:04' and `end` < '2025-01-09 23:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:07:18] Production.INFO: count ==651 [2025-01-09 23:07:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:07:04 - End Time 2025-01-09 23:07:04 [2025-01-09 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212831', 'tblTempUsageDetail_20' ) start [2025-01-09 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212831', 'tblTempUsageDetail_20' ) end [2025-01-09 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212831', 'tblTempVendorCDR_20' ) start [2025-01-09 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212831', 'tblTempVendorCDR_20' ) end [2025-01-09 23:07:18] Production.INFO: ProcessCDR(1,14212831,1,1,2) [2025-01-09 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212831', 'tblTempUsageDetail_20' ) start [2025-01-09 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212831', 'tblTempUsageDetail_20' ) end [2025-01-09 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:07:21] Production.INFO: ==15095== Releasing lock... [2025-01-09 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:07:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-09 23:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:08:04 [end_date_ymd] => 2025-01-09 23:08:04 [RateCDR] => 1 ) [2025-01-09 23:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:08:04' and `end` < '2025-01-09 23:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:08:17] Production.INFO: count ==648 [2025-01-09 23:08:17] Production.ERROR: pbx CDR StartTime 2025-01-09 20:08:04 - End Time 2025-01-09 23:08:04 [2025-01-09 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212836', 'tblTempUsageDetail_20' ) start [2025-01-09 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212836', 'tblTempUsageDetail_20' ) end [2025-01-09 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212836', 'tblTempVendorCDR_20' ) start [2025-01-09 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212836', 'tblTempVendorCDR_20' ) end [2025-01-09 23:08:17] Production.INFO: ProcessCDR(1,14212836,1,1,2) [2025-01-09 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212836', 'tblTempUsageDetail_20' ) start [2025-01-09 23:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212836', 'tblTempUsageDetail_20' ) end [2025-01-09 23:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:08:20] Production.INFO: ==15243== Releasing lock... [2025-01-09 23:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:08:20] Production.INFO: 32.25 MB #Memory Used# [2025-01-09 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:09:05 [end_date_ymd] => 2025-01-09 23:09:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:09:05' and `end` < '2025-01-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-01-09 23:09:18] Production.INFO: count ==643 [2025-01-09 23:09:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:09:05 - End Time 2025-01-09 23:09:05 [2025-01-09 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212841', 'tblTempUsageDetail_20' ) start [2025-01-09 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212841', 'tblTempUsageDetail_20' ) end [2025-01-09 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212841', 'tblTempVendorCDR_20' ) start [2025-01-09 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212841', 'tblTempVendorCDR_20' ) end [2025-01-09 23:09:18] Production.INFO: ProcessCDR(1,14212841,1,1,2) [2025-01-09 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212841', 'tblTempUsageDetail_20' ) start [2025-01-09 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212841', 'tblTempUsageDetail_20' ) end [2025-01-09 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:09:21] Production.INFO: ==15316== Releasing lock... [2025-01-09 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:09:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-09 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:10:06 [end_date_ymd] => 2025-01-09 23:10:06 [RateCDR] => 1 ) [2025-01-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-01-09 20:10:06' and `end` < '2025-01-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-01-09 23:10:19] Production.INFO: count ==642 [2025-01-09 23:10:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:10:06 - End Time 2025-01-09 23:10:06 [2025-01-09 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212847', 'tblTempUsageDetail_20' ) start [2025-01-09 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212847', 'tblTempUsageDetail_20' ) end [2025-01-09 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212847', 'tblTempVendorCDR_20' ) start [2025-01-09 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212847', 'tblTempVendorCDR_20' ) end [2025-01-09 23:10:19] Production.INFO: ProcessCDR(1,14212847,1,1,2) [2025-01-09 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212847', 'tblTempUsageDetail_20' ) start [2025-01-09 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212847', 'tblTempUsageDetail_20' ) end [2025-01-09 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:10:22] Production.INFO: ==15388== Releasing lock... [2025-01-09 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-09 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:11:05 [end_date_ymd] => 2025-01-09 23:11:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:11:05' and `end` < '2025-01-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-01-09 23:11:19] Production.INFO: count ==616 [2025-01-09 23:11:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:11:05 - End Time 2025-01-09 23:11:05 [2025-01-09 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212852', 'tblTempUsageDetail_20' ) start [2025-01-09 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212852', 'tblTempUsageDetail_20' ) end [2025-01-09 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212852', 'tblTempVendorCDR_20' ) start [2025-01-09 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212852', 'tblTempVendorCDR_20' ) end [2025-01-09 23:11:19] Production.INFO: ProcessCDR(1,14212852,1,1,2) [2025-01-09 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212852', 'tblTempUsageDetail_20' ) start [2025-01-09 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212852', 'tblTempUsageDetail_20' ) end [2025-01-09 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:11:22] Production.INFO: ==15461== Releasing lock... [2025-01-09 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:11:22] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:12:04 [end_date_ymd] => 2025-01-09 23:12:04 [RateCDR] => 1 ) [2025-01-09 23:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:12:04' and `end` < '2025-01-09 23:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:12:17] Production.INFO: count ==615 [2025-01-09 23:12:17] Production.ERROR: pbx CDR StartTime 2025-01-09 20:12:04 - End Time 2025-01-09 23:12:04 [2025-01-09 23:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212857', 'tblTempUsageDetail_20' ) start [2025-01-09 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212857', 'tblTempUsageDetail_20' ) end [2025-01-09 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212857', 'tblTempVendorCDR_20' ) start [2025-01-09 23:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212857', 'tblTempVendorCDR_20' ) end [2025-01-09 23:12:17] Production.INFO: ProcessCDR(1,14212857,1,1,2) [2025-01-09 23:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212857', 'tblTempUsageDetail_20' ) start [2025-01-09 23:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212857', 'tblTempUsageDetail_20' ) end [2025-01-09 23:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:12:20] Production.INFO: ==15614== Releasing lock... [2025-01-09 23:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:12:20] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:13:04 [end_date_ymd] => 2025-01-09 23:13:04 [RateCDR] => 1 ) [2025-01-09 23:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:13:04' and `end` < '2025-01-09 23:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:13:18] Production.INFO: count ==612 [2025-01-09 23:13:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:13:04 - End Time 2025-01-09 23:13:04 [2025-01-09 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212862', 'tblTempUsageDetail_20' ) start [2025-01-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212862', 'tblTempUsageDetail_20' ) end [2025-01-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212862', 'tblTempVendorCDR_20' ) start [2025-01-09 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212862', 'tblTempVendorCDR_20' ) end [2025-01-09 23:13:18] Production.INFO: ProcessCDR(1,14212862,1,1,2) [2025-01-09 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212862', 'tblTempUsageDetail_20' ) start [2025-01-09 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212862', 'tblTempUsageDetail_20' ) end [2025-01-09 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:13:21] Production.INFO: ==15723== Releasing lock... [2025-01-09 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:13:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:14:05 [end_date_ymd] => 2025-01-09 23:14:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:14:05' and `end` < '2025-01-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-01-09 23:14:19] Production.INFO: count ==613 [2025-01-09 23:14:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:14:05 - End Time 2025-01-09 23:14:05 [2025-01-09 23:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212867', 'tblTempUsageDetail_20' ) start [2025-01-09 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212867', 'tblTempUsageDetail_20' ) end [2025-01-09 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212867', 'tblTempVendorCDR_20' ) start [2025-01-09 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212867', 'tblTempVendorCDR_20' ) end [2025-01-09 23:14:19] Production.INFO: ProcessCDR(1,14212867,1,1,2) [2025-01-09 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212867', 'tblTempUsageDetail_20' ) start [2025-01-09 23:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212867', 'tblTempUsageDetail_20' ) end [2025-01-09 23:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:14:24] Production.INFO: ==15797== Releasing lock... [2025-01-09 23:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:14:24] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:15:04 [end_date_ymd] => 2025-01-09 23:15:04 [RateCDR] => 1 ) [2025-01-09 23:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:15:04' and `end` < '2025-01-09 23:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:15:17] Production.INFO: count ==615 [2025-01-09 23:15:17] Production.ERROR: pbx CDR StartTime 2025-01-09 20:15:04 - End Time 2025-01-09 23:15:04 [2025-01-09 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212872', 'tblTempUsageDetail_20' ) start [2025-01-09 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212872', 'tblTempUsageDetail_20' ) end [2025-01-09 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212872', 'tblTempVendorCDR_20' ) start [2025-01-09 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212872', 'tblTempVendorCDR_20' ) end [2025-01-09 23:15:17] Production.INFO: ProcessCDR(1,14212872,1,1,2) [2025-01-09 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212872', 'tblTempUsageDetail_20' ) start [2025-01-09 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212872', 'tblTempUsageDetail_20' ) end [2025-01-09 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:15:22] Production.INFO: ==15947== Releasing lock... [2025-01-09 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:15:22] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:16:05 [end_date_ymd] => 2025-01-09 23:16:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:16:05' and `end` < '2025-01-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-01-09 23:16:19] Production.INFO: count ==616 [2025-01-09 23:16:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:16:05 - End Time 2025-01-09 23:16:05 [2025-01-09 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212877', 'tblTempUsageDetail_20' ) start [2025-01-09 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212877', 'tblTempUsageDetail_20' ) end [2025-01-09 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212877', 'tblTempVendorCDR_20' ) start [2025-01-09 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212877', 'tblTempVendorCDR_20' ) end [2025-01-09 23:16:19] Production.INFO: ProcessCDR(1,14212877,1,1,2) [2025-01-09 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212877', 'tblTempUsageDetail_20' ) start [2025-01-09 23:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212877', 'tblTempUsageDetail_20' ) end [2025-01-09 23:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:16:23] Production.INFO: ==16016== Releasing lock... [2025-01-09 23:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:16:23] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:17:04 [end_date_ymd] => 2025-01-09 23:17:04 [RateCDR] => 1 ) [2025-01-09 23:17:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:17:04' and `end` < '2025-01-09 23:17:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:17:20] Production.INFO: count ==616 [2025-01-09 23:17:20] Production.ERROR: pbx CDR StartTime 2025-01-09 20:17:04 - End Time 2025-01-09 23:17:04 [2025-01-09 23:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212882', 'tblTempUsageDetail_20' ) start [2025-01-09 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212882', 'tblTempUsageDetail_20' ) end [2025-01-09 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212882', 'tblTempVendorCDR_20' ) start [2025-01-09 23:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212882', 'tblTempVendorCDR_20' ) end [2025-01-09 23:17:20] Production.INFO: ProcessCDR(1,14212882,1,1,2) [2025-01-09 23:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212882', 'tblTempUsageDetail_20' ) start [2025-01-09 23:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212882', 'tblTempUsageDetail_20' ) end [2025-01-09 23:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:17:23] Production.INFO: ==16085== Releasing lock... [2025-01-09 23:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:17:23] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:18:05 [end_date_ymd] => 2025-01-09 23:18:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:18:05' and `end` < '2025-01-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-01-09 23:18:19] Production.INFO: count ==622 [2025-01-09 23:18:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:18:05 - End Time 2025-01-09 23:18:05 [2025-01-09 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212887', 'tblTempUsageDetail_20' ) start [2025-01-09 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212887', 'tblTempUsageDetail_20' ) end [2025-01-09 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212887', 'tblTempVendorCDR_20' ) start [2025-01-09 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212887', 'tblTempVendorCDR_20' ) end [2025-01-09 23:18:19] Production.INFO: ProcessCDR(1,14212887,1,1,2) [2025-01-09 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212887', 'tblTempUsageDetail_20' ) start [2025-01-09 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212887', 'tblTempUsageDetail_20' ) end [2025-01-09 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:18:22] Production.INFO: ==16158== Releasing lock... [2025-01-09 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:18:22] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:19:05 [end_date_ymd] => 2025-01-09 23:19:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:19:05' and `end` < '2025-01-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-01-09 23:19:18] Production.INFO: count ==619 [2025-01-09 23:19:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:19:05 - End Time 2025-01-09 23:19:05 [2025-01-09 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212892', 'tblTempUsageDetail_20' ) start [2025-01-09 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212892', 'tblTempUsageDetail_20' ) end [2025-01-09 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212892', 'tblTempVendorCDR_20' ) start [2025-01-09 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212892', 'tblTempVendorCDR_20' ) end [2025-01-09 23:19:18] Production.INFO: ProcessCDR(1,14212892,1,1,2) [2025-01-09 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212892', 'tblTempUsageDetail_20' ) start [2025-01-09 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212892', 'tblTempUsageDetail_20' ) end [2025-01-09 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:19:22] Production.INFO: ==16230== Releasing lock... [2025-01-09 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:19:22] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:20:05 [end_date_ymd] => 2025-01-09 23:20:05 [RateCDR] => 1 ) [2025-01-09 23:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:20:05' and `end` < '2025-01-09 23:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:20:18] Production.INFO: count ==618 [2025-01-09 23:20:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:20:05 - End Time 2025-01-09 23:20:05 [2025-01-09 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212898', 'tblTempUsageDetail_20' ) start [2025-01-09 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212898', 'tblTempUsageDetail_20' ) end [2025-01-09 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212898', 'tblTempVendorCDR_20' ) start [2025-01-09 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212898', 'tblTempVendorCDR_20' ) end [2025-01-09 23:20:18] Production.INFO: ProcessCDR(1,14212898,1,1,2) [2025-01-09 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212898', 'tblTempUsageDetail_20' ) start [2025-01-09 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212898', 'tblTempUsageDetail_20' ) end [2025-01-09 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:20:21] Production.INFO: ==16302== Releasing lock... [2025-01-09 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:20:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:21:05 [end_date_ymd] => 2025-01-09 23:21:05 [RateCDR] => 1 ) [2025-01-09 23:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:21:05' and `end` < '2025-01-09 23:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:21:18] Production.INFO: count ==633 [2025-01-09 23:21:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:21:05 - End Time 2025-01-09 23:21:05 [2025-01-09 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212903', 'tblTempUsageDetail_20' ) start [2025-01-09 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212903', 'tblTempUsageDetail_20' ) end [2025-01-09 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212903', 'tblTempVendorCDR_20' ) start [2025-01-09 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212903', 'tblTempVendorCDR_20' ) end [2025-01-09 23:21:18] Production.INFO: ProcessCDR(1,14212903,1,1,2) [2025-01-09 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212903', 'tblTempUsageDetail_20' ) start [2025-01-09 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212903', 'tblTempUsageDetail_20' ) end [2025-01-09 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:21:21] Production.INFO: ==16378== Releasing lock... [2025-01-09 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:21:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:22:04 [end_date_ymd] => 2025-01-09 23:22:04 [RateCDR] => 1 ) [2025-01-09 23:22:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:22:04' and `end` < '2025-01-09 23:22:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:22:20] Production.INFO: count ==633 [2025-01-09 23:22:20] Production.ERROR: pbx CDR StartTime 2025-01-09 20:22:04 - End Time 2025-01-09 23:22:04 [2025-01-09 23:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212908', 'tblTempUsageDetail_20' ) start [2025-01-09 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212908', 'tblTempUsageDetail_20' ) end [2025-01-09 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212908', 'tblTempVendorCDR_20' ) start [2025-01-09 23:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212908', 'tblTempVendorCDR_20' ) end [2025-01-09 23:22:21] Production.INFO: ProcessCDR(1,14212908,1,1,2) [2025-01-09 23:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212908', 'tblTempUsageDetail_20' ) start [2025-01-09 23:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212908', 'tblTempUsageDetail_20' ) end [2025-01-09 23:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:22:24] Production.INFO: ==16449== Releasing lock... [2025-01-09 23:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:22:24] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:23:05 [end_date_ymd] => 2025-01-09 23:23:05 [RateCDR] => 1 ) [2025-01-09 23:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:23:05' and `end` < '2025-01-09 23:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:23:18] Production.INFO: count ==633 [2025-01-09 23:23:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:23:05 - End Time 2025-01-09 23:23:05 [2025-01-09 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212913', 'tblTempUsageDetail_20' ) start [2025-01-09 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212913', 'tblTempUsageDetail_20' ) end [2025-01-09 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212913', 'tblTempVendorCDR_20' ) start [2025-01-09 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212913', 'tblTempVendorCDR_20' ) end [2025-01-09 23:23:18] Production.INFO: ProcessCDR(1,14212913,1,1,2) [2025-01-09 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212913', 'tblTempUsageDetail_20' ) start [2025-01-09 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212913', 'tblTempUsageDetail_20' ) end [2025-01-09 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:23:21] Production.INFO: ==16521== Releasing lock... [2025-01-09 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:23:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:24:05 [end_date_ymd] => 2025-01-09 23:24:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:24:05' and `end` < '2025-01-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-01-09 23:24:18] Production.INFO: count ==633 [2025-01-09 23:24:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:24:05 - End Time 2025-01-09 23:24:05 [2025-01-09 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212918', 'tblTempUsageDetail_20' ) start [2025-01-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212918', 'tblTempUsageDetail_20' ) end [2025-01-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212918', 'tblTempVendorCDR_20' ) start [2025-01-09 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212918', 'tblTempVendorCDR_20' ) end [2025-01-09 23:24:18] Production.INFO: ProcessCDR(1,14212918,1,1,2) [2025-01-09 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212918', 'tblTempUsageDetail_20' ) start [2025-01-09 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212918', 'tblTempUsageDetail_20' ) end [2025-01-09 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:24:21] Production.INFO: ==16599== Releasing lock... [2025-01-09 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:24:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:25:05 [end_date_ymd] => 2025-01-09 23:25:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:25:05' and `end` < '2025-01-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-01-09 23:25:18] Production.INFO: count ==633 [2025-01-09 23:25:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:25:05 - End Time 2025-01-09 23:25:05 [2025-01-09 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212923', 'tblTempUsageDetail_20' ) start [2025-01-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212923', 'tblTempUsageDetail_20' ) end [2025-01-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212923', 'tblTempVendorCDR_20' ) start [2025-01-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212923', 'tblTempVendorCDR_20' ) end [2025-01-09 23:25:18] Production.INFO: ProcessCDR(1,14212923,1,1,2) [2025-01-09 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212923', 'tblTempUsageDetail_20' ) start [2025-01-09 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212923', 'tblTempUsageDetail_20' ) end [2025-01-09 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:25:21] Production.INFO: ==16671== Releasing lock... [2025-01-09 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:25:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:26:05 [end_date_ymd] => 2025-01-09 23:26:05 [RateCDR] => 1 ) [2025-01-09 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:26:05' and `end` < '2025-01-09 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:26:19] Production.INFO: count ==632 [2025-01-09 23:26:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:26:05 - End Time 2025-01-09 23:26:05 [2025-01-09 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212928', 'tblTempUsageDetail_20' ) start [2025-01-09 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212928', 'tblTempUsageDetail_20' ) end [2025-01-09 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212928', 'tblTempVendorCDR_20' ) start [2025-01-09 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212928', 'tblTempVendorCDR_20' ) end [2025-01-09 23:26:19] Production.INFO: ProcessCDR(1,14212928,1,1,2) [2025-01-09 23:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212928', 'tblTempUsageDetail_20' ) start [2025-01-09 23:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212928', 'tblTempUsageDetail_20' ) end [2025-01-09 23:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:26:22] Production.INFO: ==16745== Releasing lock... [2025-01-09 23:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:26:22] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:27:04 [end_date_ymd] => 2025-01-09 23:27:04 [RateCDR] => 1 ) [2025-01-09 23:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:27:04' and `end` < '2025-01-09 23:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:27:18] Production.INFO: count ==632 [2025-01-09 23:27:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:27:04 - End Time 2025-01-09 23:27:04 [2025-01-09 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212933', 'tblTempUsageDetail_20' ) start [2025-01-09 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212933', 'tblTempUsageDetail_20' ) end [2025-01-09 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212933', 'tblTempVendorCDR_20' ) start [2025-01-09 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212933', 'tblTempVendorCDR_20' ) end [2025-01-09 23:27:18] Production.INFO: ProcessCDR(1,14212933,1,1,2) [2025-01-09 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212933', 'tblTempUsageDetail_20' ) start [2025-01-09 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212933', 'tblTempUsageDetail_20' ) end [2025-01-09 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:27:21] Production.INFO: ==16817== Releasing lock... [2025-01-09 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:27:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:28:05 [end_date_ymd] => 2025-01-09 23:28:05 [RateCDR] => 1 ) [2025-01-09 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:28:05' and `end` < '2025-01-09 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:28:20] Production.INFO: count ==631 [2025-01-09 23:28:20] Production.ERROR: pbx CDR StartTime 2025-01-09 20:28:05 - End Time 2025-01-09 23:28:05 [2025-01-09 23:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212938', 'tblTempUsageDetail_20' ) start [2025-01-09 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212938', 'tblTempUsageDetail_20' ) end [2025-01-09 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212938', 'tblTempVendorCDR_20' ) start [2025-01-09 23:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212938', 'tblTempVendorCDR_20' ) end [2025-01-09 23:28:20] Production.INFO: ProcessCDR(1,14212938,1,1,2) [2025-01-09 23:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212938', 'tblTempUsageDetail_20' ) start [2025-01-09 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212938', 'tblTempUsageDetail_20' ) end [2025-01-09 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:28:23] Production.INFO: ==16929== Releasing lock... [2025-01-09 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:28:23] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:29:04 [end_date_ymd] => 2025-01-09 23:29:04 [RateCDR] => 1 ) [2025-01-09 23:29:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:29:04' and `end` < '2025-01-09 23:29:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:29:17] Production.INFO: count ==628 [2025-01-09 23:29:17] Production.ERROR: pbx CDR StartTime 2025-01-09 20:29:04 - End Time 2025-01-09 23:29:04 [2025-01-09 23:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212943', 'tblTempUsageDetail_20' ) start [2025-01-09 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212943', 'tblTempUsageDetail_20' ) end [2025-01-09 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212943', 'tblTempVendorCDR_20' ) start [2025-01-09 23:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212943', 'tblTempVendorCDR_20' ) end [2025-01-09 23:29:17] Production.INFO: ProcessCDR(1,14212943,1,1,2) [2025-01-09 23:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212943', 'tblTempUsageDetail_20' ) start [2025-01-09 23:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212943', 'tblTempUsageDetail_20' ) end [2025-01-09 23:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:29:20] Production.INFO: ==16998== Releasing lock... [2025-01-09 23:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:29:20] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:30:06 [end_date_ymd] => 2025-01-09 23:30:06 [RateCDR] => 1 ) [2025-01-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-01-09 20:30:06' and `end` < '2025-01-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-01-09 23:30:19] Production.INFO: count ==628 [2025-01-09 23:30:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:30:06 - End Time 2025-01-09 23:30:06 [2025-01-09 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212949', 'tblTempUsageDetail_20' ) start [2025-01-09 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212949', 'tblTempUsageDetail_20' ) end [2025-01-09 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212949', 'tblTempVendorCDR_20' ) start [2025-01-09 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212949', 'tblTempVendorCDR_20' ) end [2025-01-09 23:30:19] Production.INFO: ProcessCDR(1,14212949,1,1,2) [2025-01-09 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212949', 'tblTempUsageDetail_20' ) start [2025-01-09 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212949', 'tblTempUsageDetail_20' ) end [2025-01-09 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:30:22] Production.INFO: ==17071== Releasing lock... [2025-01-09 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:30:22] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:31:04 [end_date_ymd] => 2025-01-09 23:31:04 [RateCDR] => 1 ) [2025-01-09 23:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:31:04' and `end` < '2025-01-09 23:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:31:17] Production.INFO: count ==611 [2025-01-09 23:31:17] Production.ERROR: pbx CDR StartTime 2025-01-09 20:31:04 - End Time 2025-01-09 23:31:04 [2025-01-09 23:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212954', 'tblTempUsageDetail_20' ) start [2025-01-09 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212954', 'tblTempUsageDetail_20' ) end [2025-01-09 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212954', 'tblTempVendorCDR_20' ) start [2025-01-09 23:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212954', 'tblTempVendorCDR_20' ) end [2025-01-09 23:31:17] Production.INFO: ProcessCDR(1,14212954,1,1,2) [2025-01-09 23:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212954', 'tblTempUsageDetail_20' ) start [2025-01-09 23:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212954', 'tblTempUsageDetail_20' ) end [2025-01-09 23:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:31:22] Production.INFO: ==17144== Releasing lock... [2025-01-09 23:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:31:22] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:32:04 [end_date_ymd] => 2025-01-09 23:32:04 [RateCDR] => 1 ) [2025-01-09 23:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:32:04' and `end` < '2025-01-09 23:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:32:18] Production.INFO: count ==610 [2025-01-09 23:32:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:32:04 - End Time 2025-01-09 23:32:04 [2025-01-09 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212959', 'tblTempUsageDetail_20' ) start [2025-01-09 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212959', 'tblTempUsageDetail_20' ) end [2025-01-09 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212959', 'tblTempVendorCDR_20' ) start [2025-01-09 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212959', 'tblTempVendorCDR_20' ) end [2025-01-09 23:32:18] Production.INFO: ProcessCDR(1,14212959,1,1,2) [2025-01-09 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212959', 'tblTempUsageDetail_20' ) start [2025-01-09 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212959', 'tblTempUsageDetail_20' ) end [2025-01-09 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:32:21] Production.INFO: ==17214== Releasing lock... [2025-01-09 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:32:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:33:04 [end_date_ymd] => 2025-01-09 23:33:04 [RateCDR] => 1 ) [2025-01-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-01-09 20:33:04' and `end` < '2025-01-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-01-09 23:33:17] Production.INFO: count ==613 [2025-01-09 23:33:17] Production.ERROR: pbx CDR StartTime 2025-01-09 20:33:04 - End Time 2025-01-09 23:33:04 [2025-01-09 23:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212964', 'tblTempUsageDetail_20' ) start [2025-01-09 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212964', 'tblTempUsageDetail_20' ) end [2025-01-09 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212964', 'tblTempVendorCDR_20' ) start [2025-01-09 23:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212964', 'tblTempVendorCDR_20' ) end [2025-01-09 23:33:17] Production.INFO: ProcessCDR(1,14212964,1,1,2) [2025-01-09 23:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212964', 'tblTempUsageDetail_20' ) start [2025-01-09 23:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212964', 'tblTempUsageDetail_20' ) end [2025-01-09 23:33:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:33:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:33:21] Production.INFO: ==17283== Releasing lock... [2025-01-09 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:33:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:34:05 [end_date_ymd] => 2025-01-09 23:34:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:34:05' and `end` < '2025-01-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-01-09 23:34:20] Production.INFO: count ==613 [2025-01-09 23:34:20] Production.ERROR: pbx CDR StartTime 2025-01-09 20:34:05 - End Time 2025-01-09 23:34:05 [2025-01-09 23:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212969', 'tblTempUsageDetail_20' ) start [2025-01-09 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212969', 'tblTempUsageDetail_20' ) end [2025-01-09 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212969', 'tblTempVendorCDR_20' ) start [2025-01-09 23:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212969', 'tblTempVendorCDR_20' ) end [2025-01-09 23:34:20] Production.INFO: ProcessCDR(1,14212969,1,1,2) [2025-01-09 23:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212969', 'tblTempUsageDetail_20' ) start [2025-01-09 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212969', 'tblTempUsageDetail_20' ) end [2025-01-09 23:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:34:23] Production.INFO: ==17356== Releasing lock... [2025-01-09 23:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:34:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-09 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:35:05 [end_date_ymd] => 2025-01-09 23:35:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:35:05' and `end` < '2025-01-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-01-09 23:35:18] Production.INFO: count ==613 [2025-01-09 23:35:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:35:05 - End Time 2025-01-09 23:35:05 [2025-01-09 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212974', 'tblTempUsageDetail_20' ) start [2025-01-09 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212974', 'tblTempUsageDetail_20' ) end [2025-01-09 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212974', 'tblTempVendorCDR_20' ) start [2025-01-09 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212974', 'tblTempVendorCDR_20' ) end [2025-01-09 23:35:18] Production.INFO: ProcessCDR(1,14212974,1,1,2) [2025-01-09 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212974', 'tblTempUsageDetail_20' ) start [2025-01-09 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212974', 'tblTempUsageDetail_20' ) end [2025-01-09 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:35:21] Production.INFO: ==17427== Releasing lock... [2025-01-09 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:35:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:36:04 [end_date_ymd] => 2025-01-09 23:36:04 [RateCDR] => 1 ) [2025-01-09 23:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:36:04' and `end` < '2025-01-09 23:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:36:18] Production.INFO: count ==613 [2025-01-09 23:36:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:36:04 - End Time 2025-01-09 23:36:04 [2025-01-09 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212979', 'tblTempUsageDetail_20' ) start [2025-01-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212979', 'tblTempUsageDetail_20' ) end [2025-01-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212979', 'tblTempVendorCDR_20' ) start [2025-01-09 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212979', 'tblTempVendorCDR_20' ) end [2025-01-09 23:36:18] Production.INFO: ProcessCDR(1,14212979,1,1,2) [2025-01-09 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212979', 'tblTempUsageDetail_20' ) start [2025-01-09 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212979', 'tblTempUsageDetail_20' ) end [2025-01-09 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:36:21] Production.INFO: ==17499== Releasing lock... [2025-01-09 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:36:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:37:05 [end_date_ymd] => 2025-01-09 23:37:05 [RateCDR] => 1 ) [2025-01-09 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:37:05' and `end` < '2025-01-09 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:37:18] Production.INFO: count ==612 [2025-01-09 23:37:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:37:05 - End Time 2025-01-09 23:37:05 [2025-01-09 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212984', 'tblTempUsageDetail_20' ) start [2025-01-09 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212984', 'tblTempUsageDetail_20' ) end [2025-01-09 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212984', 'tblTempVendorCDR_20' ) start [2025-01-09 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212984', 'tblTempVendorCDR_20' ) end [2025-01-09 23:37:18] Production.INFO: ProcessCDR(1,14212984,1,1,2) [2025-01-09 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212984', 'tblTempUsageDetail_20' ) start [2025-01-09 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212984', 'tblTempUsageDetail_20' ) end [2025-01-09 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:37:21] Production.INFO: ==17570== Releasing lock... [2025-01-09 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:37:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:38:04 [end_date_ymd] => 2025-01-09 23:38:04 [RateCDR] => 1 ) [2025-01-09 23:38:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:38:04' and `end` < '2025-01-09 23:38:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:38:17] Production.INFO: count ==613 [2025-01-09 23:38:17] Production.ERROR: pbx CDR StartTime 2025-01-09 20:38:04 - End Time 2025-01-09 23:38:04 [2025-01-09 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212989', 'tblTempUsageDetail_20' ) start [2025-01-09 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212989', 'tblTempUsageDetail_20' ) end [2025-01-09 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212989', 'tblTempVendorCDR_20' ) start [2025-01-09 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212989', 'tblTempVendorCDR_20' ) end [2025-01-09 23:38:18] Production.INFO: ProcessCDR(1,14212989,1,1,2) [2025-01-09 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212989', 'tblTempUsageDetail_20' ) start [2025-01-09 23:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212989', 'tblTempUsageDetail_20' ) end [2025-01-09 23:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:38:21] Production.INFO: ==17641== Releasing lock... [2025-01-09 23:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:38:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:39:05 [end_date_ymd] => 2025-01-09 23:39:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:39:05' and `end` < '2025-01-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-01-09 23:39:18] Production.INFO: count ==614 [2025-01-09 23:39:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:39:05 - End Time 2025-01-09 23:39:05 [2025-01-09 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212994', 'tblTempUsageDetail_20' ) start [2025-01-09 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14212994', 'tblTempUsageDetail_20' ) end [2025-01-09 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212994', 'tblTempVendorCDR_20' ) start [2025-01-09 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14212994', 'tblTempVendorCDR_20' ) end [2025-01-09 23:39:18] Production.INFO: ProcessCDR(1,14212994,1,1,2) [2025-01-09 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14212994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14212994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14212994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14212994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212994', 'tblTempUsageDetail_20' ) start [2025-01-09 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14212994', 'tblTempUsageDetail_20' ) end [2025-01-09 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:39:21] Production.INFO: ==17714== Releasing lock... [2025-01-09 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:39:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:40:06 [end_date_ymd] => 2025-01-09 23:40:06 [RateCDR] => 1 ) [2025-01-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-01-09 20:40:06' and `end` < '2025-01-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-01-09 23:40:19] Production.INFO: count ==613 [2025-01-09 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:40:06 - End Time 2025-01-09 23:40:06 [2025-01-09 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213000', 'tblTempUsageDetail_20' ) start [2025-01-09 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213000', 'tblTempUsageDetail_20' ) end [2025-01-09 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213000', 'tblTempVendorCDR_20' ) start [2025-01-09 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213000', 'tblTempVendorCDR_20' ) end [2025-01-09 23:40:19] Production.INFO: ProcessCDR(1,14213000,1,1,2) [2025-01-09 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213000', 'tblTempUsageDetail_20' ) start [2025-01-09 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213000', 'tblTempUsageDetail_20' ) end [2025-01-09 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:40:22] Production.INFO: ==17794== Releasing lock... [2025-01-09 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:40:22] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:41:04 [end_date_ymd] => 2025-01-09 23:41:04 [RateCDR] => 1 ) [2025-01-09 23:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:41:04' and `end` < '2025-01-09 23:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:41:17] Production.INFO: count ==613 [2025-01-09 23:41:17] Production.ERROR: pbx CDR StartTime 2025-01-09 20:41:04 - End Time 2025-01-09 23:41:04 [2025-01-09 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213005', 'tblTempUsageDetail_20' ) start [2025-01-09 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213005', 'tblTempUsageDetail_20' ) end [2025-01-09 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213005', 'tblTempVendorCDR_20' ) start [2025-01-09 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213005', 'tblTempVendorCDR_20' ) end [2025-01-09 23:41:17] Production.INFO: ProcessCDR(1,14213005,1,1,2) [2025-01-09 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213005', 'tblTempUsageDetail_20' ) start [2025-01-09 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213005', 'tblTempUsageDetail_20' ) end [2025-01-09 23:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:41:20] Production.INFO: ==17866== Releasing lock... [2025-01-09 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:41:20] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:42:05 [end_date_ymd] => 2025-01-09 23:42:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:42:05' and `end` < '2025-01-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-01-09 23:42:19] Production.INFO: count ==610 [2025-01-09 23:42:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:42:05 - End Time 2025-01-09 23:42:05 [2025-01-09 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213010', 'tblTempUsageDetail_20' ) start [2025-01-09 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213010', 'tblTempUsageDetail_20' ) end [2025-01-09 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213010', 'tblTempVendorCDR_20' ) start [2025-01-09 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213010', 'tblTempVendorCDR_20' ) end [2025-01-09 23:42:19] Production.INFO: ProcessCDR(1,14213010,1,1,2) [2025-01-09 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213010', 'tblTempUsageDetail_20' ) start [2025-01-09 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213010', 'tblTempUsageDetail_20' ) end [2025-01-09 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:42:22] Production.INFO: ==17937== Releasing lock... [2025-01-09 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:42:22] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:43:05 [end_date_ymd] => 2025-01-09 23:43:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:43:05' and `end` < '2025-01-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-01-09 23:43:19] Production.INFO: count ==610 [2025-01-09 23:43:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:43:05 - End Time 2025-01-09 23:43:05 [2025-01-09 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213015', 'tblTempUsageDetail_20' ) start [2025-01-09 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213015', 'tblTempUsageDetail_20' ) end [2025-01-09 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213015', 'tblTempVendorCDR_20' ) start [2025-01-09 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213015', 'tblTempVendorCDR_20' ) end [2025-01-09 23:43:19] Production.INFO: ProcessCDR(1,14213015,1,1,2) [2025-01-09 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213015', 'tblTempUsageDetail_20' ) start [2025-01-09 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213015', 'tblTempUsageDetail_20' ) end [2025-01-09 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:43:22] Production.INFO: ==18008== Releasing lock... [2025-01-09 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:43:22] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:44:05 [end_date_ymd] => 2025-01-09 23:44:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:44:05' and `end` < '2025-01-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-01-09 23:44:18] Production.INFO: count ==610 [2025-01-09 23:44:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:44:05 - End Time 2025-01-09 23:44:05 [2025-01-09 23:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213020', 'tblTempUsageDetail_20' ) start [2025-01-09 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213020', 'tblTempUsageDetail_20' ) end [2025-01-09 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213020', 'tblTempVendorCDR_20' ) start [2025-01-09 23:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213020', 'tblTempVendorCDR_20' ) end [2025-01-09 23:44:19] Production.INFO: ProcessCDR(1,14213020,1,1,2) [2025-01-09 23:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213020', 'tblTempUsageDetail_20' ) start [2025-01-09 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213020', 'tblTempUsageDetail_20' ) end [2025-01-09 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:44:22] Production.INFO: ==18118== Releasing lock... [2025-01-09 23:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:44:22] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:45:04 [end_date_ymd] => 2025-01-09 23:45:04 [RateCDR] => 1 ) [2025-01-09 23:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:45:04' and `end` < '2025-01-09 23:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:45:17] Production.INFO: count ==608 [2025-01-09 23:45:17] Production.ERROR: pbx CDR StartTime 2025-01-09 20:45:04 - End Time 2025-01-09 23:45:04 [2025-01-09 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213025', 'tblTempUsageDetail_20' ) start [2025-01-09 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213025', 'tblTempUsageDetail_20' ) end [2025-01-09 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213025', 'tblTempVendorCDR_20' ) start [2025-01-09 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213025', 'tblTempVendorCDR_20' ) end [2025-01-09 23:45:17] Production.INFO: ProcessCDR(1,14213025,1,1,2) [2025-01-09 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213025', 'tblTempUsageDetail_20' ) start [2025-01-09 23:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213025', 'tblTempUsageDetail_20' ) end [2025-01-09 23:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:45:20] Production.INFO: ==18187== Releasing lock... [2025-01-09 23:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:45:20] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:46:05 [end_date_ymd] => 2025-01-09 23:46:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:46:05' and `end` < '2025-01-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-01-09 23:46:18] Production.INFO: count ==607 [2025-01-09 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:46:05 - End Time 2025-01-09 23:46:05 [2025-01-09 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213030', 'tblTempUsageDetail_20' ) start [2025-01-09 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213030', 'tblTempUsageDetail_20' ) end [2025-01-09 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213030', 'tblTempVendorCDR_20' ) start [2025-01-09 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213030', 'tblTempVendorCDR_20' ) end [2025-01-09 23:46:18] Production.INFO: ProcessCDR(1,14213030,1,1,2) [2025-01-09 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213030', 'tblTempUsageDetail_20' ) start [2025-01-09 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213030', 'tblTempUsageDetail_20' ) end [2025-01-09 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:46:21] Production.INFO: ==18262== Releasing lock... [2025-01-09 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:46:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:47:05 [end_date_ymd] => 2025-01-09 23:47:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:47:05' and `end` < '2025-01-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-01-09 23:47:18] Production.INFO: count ==607 [2025-01-09 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:47:05 - End Time 2025-01-09 23:47:05 [2025-01-09 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213035', 'tblTempUsageDetail_20' ) start [2025-01-09 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213035', 'tblTempUsageDetail_20' ) end [2025-01-09 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213035', 'tblTempVendorCDR_20' ) start [2025-01-09 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213035', 'tblTempVendorCDR_20' ) end [2025-01-09 23:47:18] Production.INFO: ProcessCDR(1,14213035,1,1,2) [2025-01-09 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213035', 'tblTempUsageDetail_20' ) start [2025-01-09 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213035', 'tblTempUsageDetail_20' ) end [2025-01-09 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:47:21] Production.INFO: ==18335== Releasing lock... [2025-01-09 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:47:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:48:05 [end_date_ymd] => 2025-01-09 23:48:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:48:05' and `end` < '2025-01-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-01-09 23:48:18] Production.INFO: count ==607 [2025-01-09 23:48:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:48:05 - End Time 2025-01-09 23:48:05 [2025-01-09 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213040', 'tblTempUsageDetail_20' ) start [2025-01-09 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213040', 'tblTempUsageDetail_20' ) end [2025-01-09 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213040', 'tblTempVendorCDR_20' ) start [2025-01-09 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213040', 'tblTempVendorCDR_20' ) end [2025-01-09 23:48:18] Production.INFO: ProcessCDR(1,14213040,1,1,2) [2025-01-09 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213040', 'tblTempUsageDetail_20' ) start [2025-01-09 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213040', 'tblTempUsageDetail_20' ) end [2025-01-09 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:48:21] Production.INFO: ==18405== Releasing lock... [2025-01-09 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:48:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:49:05 [end_date_ymd] => 2025-01-09 23:49:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:49:05' and `end` < '2025-01-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-01-09 23:49:18] Production.INFO: count ==606 [2025-01-09 23:49:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:49:05 - End Time 2025-01-09 23:49:05 [2025-01-09 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213045', 'tblTempUsageDetail_20' ) start [2025-01-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213045', 'tblTempUsageDetail_20' ) end [2025-01-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213045', 'tblTempVendorCDR_20' ) start [2025-01-09 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213045', 'tblTempVendorCDR_20' ) end [2025-01-09 23:49:18] Production.INFO: ProcessCDR(1,14213045,1,1,2) [2025-01-09 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213045', 'tblTempUsageDetail_20' ) start [2025-01-09 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213045', 'tblTempUsageDetail_20' ) end [2025-01-09 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:49:21] Production.INFO: ==18476== Releasing lock... [2025-01-09 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:49:21] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:50:05 [end_date_ymd] => 2025-01-09 23:50:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:50:05' and `end` < '2025-01-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-01-09 23:50:18] Production.INFO: count ==606 [2025-01-09 23:50:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:50:05 - End Time 2025-01-09 23:50:05 [2025-01-09 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213050', 'tblTempUsageDetail_20' ) start [2025-01-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213050', 'tblTempUsageDetail_20' ) end [2025-01-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213050', 'tblTempVendorCDR_20' ) start [2025-01-09 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213050', 'tblTempVendorCDR_20' ) end [2025-01-09 23:50:18] Production.INFO: ProcessCDR(1,14213050,1,1,2) [2025-01-09 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213050', 'tblTempUsageDetail_20' ) start [2025-01-09 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213050', 'tblTempUsageDetail_20' ) end [2025-01-09 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:50:22] Production.INFO: ==18548== Releasing lock... [2025-01-09 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:50:22] Production.INFO: 32 MB #Memory Used# [2025-01-09 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:51:05 [end_date_ymd] => 2025-01-09 23:51:05 [RateCDR] => 1 ) [2025-01-09 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:51:05' and `end` < '2025-01-09 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:51:18] Production.INFO: count ==600 [2025-01-09 23:51:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:51:05 - End Time 2025-01-09 23:51:05 [2025-01-09 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213056', 'tblTempUsageDetail_20' ) start [2025-01-09 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213056', 'tblTempUsageDetail_20' ) end [2025-01-09 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213056', 'tblTempVendorCDR_20' ) start [2025-01-09 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213056', 'tblTempVendorCDR_20' ) end [2025-01-09 23:51:18] Production.INFO: ProcessCDR(1,14213056,1,1,2) [2025-01-09 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213056', 'tblTempUsageDetail_20' ) start [2025-01-09 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213056', 'tblTempUsageDetail_20' ) end [2025-01-09 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:51:21] Production.INFO: ==18621== Releasing lock... [2025-01-09 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:51:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-09 23:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:52:04 [end_date_ymd] => 2025-01-09 23:52:04 [RateCDR] => 1 ) [2025-01-09 23:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:52:04' and `end` < '2025-01-09 23:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:52:18] Production.INFO: count ==594 [2025-01-09 23:52:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:52:04 - End Time 2025-01-09 23:52:04 [2025-01-09 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213061', 'tblTempUsageDetail_20' ) start [2025-01-09 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213061', 'tblTempUsageDetail_20' ) end [2025-01-09 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213061', 'tblTempVendorCDR_20' ) start [2025-01-09 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213061', 'tblTempVendorCDR_20' ) end [2025-01-09 23:52:18] Production.INFO: ProcessCDR(1,14213061,1,1,2) [2025-01-09 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213061', 'tblTempUsageDetail_20' ) start [2025-01-09 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213061', 'tblTempUsageDetail_20' ) end [2025-01-09 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:52:21] Production.INFO: ==18697== Releasing lock... [2025-01-09 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:52:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-09 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:53:05 [end_date_ymd] => 2025-01-09 23:53:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:53:05' and `end` < '2025-01-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-01-09 23:53:19] Production.INFO: count ==584 [2025-01-09 23:53:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:53:05 - End Time 2025-01-09 23:53:05 [2025-01-09 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213066', 'tblTempUsageDetail_20' ) start [2025-01-09 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213066', 'tblTempUsageDetail_20' ) end [2025-01-09 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213066', 'tblTempVendorCDR_20' ) start [2025-01-09 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213066', 'tblTempVendorCDR_20' ) end [2025-01-09 23:53:19] Production.INFO: ProcessCDR(1,14213066,1,1,2) [2025-01-09 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213066', 'tblTempUsageDetail_20' ) start [2025-01-09 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213066', 'tblTempUsageDetail_20' ) end [2025-01-09 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:53:22] Production.INFO: ==18774== Releasing lock... [2025-01-09 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:53:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-09 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:54:05 [end_date_ymd] => 2025-01-09 23:54:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:54:05' and `end` < '2025-01-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-01-09 23:54:18] Production.INFO: count ==578 [2025-01-09 23:54:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:54:05 - End Time 2025-01-09 23:54:05 [2025-01-09 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213071', 'tblTempUsageDetail_20' ) start [2025-01-09 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213071', 'tblTempUsageDetail_20' ) end [2025-01-09 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213071', 'tblTempVendorCDR_20' ) start [2025-01-09 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213071', 'tblTempVendorCDR_20' ) end [2025-01-09 23:54:18] Production.INFO: ProcessCDR(1,14213071,1,1,2) [2025-01-09 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213071', 'tblTempUsageDetail_20' ) start [2025-01-09 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213071', 'tblTempUsageDetail_20' ) end [2025-01-09 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:54:21] Production.INFO: ==18843== Releasing lock... [2025-01-09 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:54:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-09 23:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:55:04 [end_date_ymd] => 2025-01-09 23:55:04 [RateCDR] => 1 ) [2025-01-09 23:55:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:55:04' and `end` < '2025-01-09 23:55:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:55:18] Production.INFO: count ==576 [2025-01-09 23:55:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:55:04 - End Time 2025-01-09 23:55:04 [2025-01-09 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213076', 'tblTempUsageDetail_20' ) start [2025-01-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213076', 'tblTempUsageDetail_20' ) end [2025-01-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213076', 'tblTempVendorCDR_20' ) start [2025-01-09 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213076', 'tblTempVendorCDR_20' ) end [2025-01-09 23:55:18] Production.INFO: ProcessCDR(1,14213076,1,1,2) [2025-01-09 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213076', 'tblTempUsageDetail_20' ) start [2025-01-09 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213076', 'tblTempUsageDetail_20' ) end [2025-01-09 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:55:21] Production.INFO: ==18913== Releasing lock... [2025-01-09 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:55:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-09 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:56:05 [end_date_ymd] => 2025-01-09 23:56:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:56:05' and `end` < '2025-01-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-01-09 23:56:18] Production.INFO: count ==576 [2025-01-09 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:56:05 - End Time 2025-01-09 23:56:05 [2025-01-09 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213081', 'tblTempUsageDetail_20' ) start [2025-01-09 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213081', 'tblTempUsageDetail_20' ) end [2025-01-09 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213081', 'tblTempVendorCDR_20' ) start [2025-01-09 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213081', 'tblTempVendorCDR_20' ) end [2025-01-09 23:56:18] Production.INFO: ProcessCDR(1,14213081,1,1,2) [2025-01-09 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213081', 'tblTempUsageDetail_20' ) start [2025-01-09 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213081', 'tblTempUsageDetail_20' ) end [2025-01-09 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:56:21] Production.INFO: ==18985== Releasing lock... [2025-01-09 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:56:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-09 23:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:57:04 [end_date_ymd] => 2025-01-09 23:57:04 [RateCDR] => 1 ) [2025-01-09 23:57:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-09 20:57:04' and `end` < '2025-01-09 23:57:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-09 23:57:17] Production.INFO: count ==579 [2025-01-09 23:57:17] Production.ERROR: pbx CDR StartTime 2025-01-09 20:57:04 - End Time 2025-01-09 23:57:04 [2025-01-09 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213086', 'tblTempUsageDetail_20' ) start [2025-01-09 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213086', 'tblTempUsageDetail_20' ) end [2025-01-09 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213086', 'tblTempVendorCDR_20' ) start [2025-01-09 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213086', 'tblTempVendorCDR_20' ) end [2025-01-09 23:57:17] Production.INFO: ProcessCDR(1,14213086,1,1,2) [2025-01-09 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213086', 'tblTempUsageDetail_20' ) start [2025-01-09 23:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213086', 'tblTempUsageDetail_20' ) end [2025-01-09 23:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:57:20] Production.INFO: ==19055== Releasing lock... [2025-01-09 23:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:57:20] Production.INFO: 31.75 MB #Memory Used# [2025-01-09 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:58:05 [end_date_ymd] => 2025-01-09 23:58:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:58:05' and `end` < '2025-01-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-01-09 23:58:19] Production.INFO: count ==579 [2025-01-09 23:58:19] Production.ERROR: pbx CDR StartTime 2025-01-09 20:58:05 - End Time 2025-01-09 23:58:05 [2025-01-09 23:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213091', 'tblTempUsageDetail_20' ) start [2025-01-09 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213091', 'tblTempUsageDetail_20' ) end [2025-01-09 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213091', 'tblTempVendorCDR_20' ) start [2025-01-09 23:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213091', 'tblTempVendorCDR_20' ) end [2025-01-09 23:58:19] Production.INFO: ProcessCDR(1,14213091,1,1,2) [2025-01-09 23:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213091', 'tblTempUsageDetail_20' ) start [2025-01-09 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213091', 'tblTempUsageDetail_20' ) end [2025-01-09 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:58:22] Production.INFO: ==19131== Releasing lock... [2025-01-09 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:58:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-09 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-09 20:59:05 [end_date_ymd] => 2025-01-09 23:59:05 [RateCDR] => 1 ) [2025-01-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-01-09 20:59:05' and `end` < '2025-01-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-01-09 23:59:18] Production.INFO: count ==579 [2025-01-09 23:59:18] Production.ERROR: pbx CDR StartTime 2025-01-09 20:59:05 - End Time 2025-01-09 23:59:05 [2025-01-09 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-09 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213096', 'tblTempUsageDetail_20' ) start [2025-01-09 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14213096', 'tblTempUsageDetail_20' ) end [2025-01-09 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213096', 'tblTempVendorCDR_20' ) start [2025-01-09 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14213096', 'tblTempVendorCDR_20' ) end [2025-01-09 23:59:18] Production.INFO: ProcessCDR(1,14213096,1,1,2) [2025-01-09 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14213096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14213096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-09 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14213096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14213096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-09 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213096', 'tblTempUsageDetail_20' ) start [2025-01-09 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14213096', 'tblTempUsageDetail_20' ) end [2025-01-09 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-09 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-09 23:59:21] Production.INFO: ==19209== Releasing lock... [2025-01-09 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-09 23:59:21] Production.INFO: 31.75 MB #Memory Used#