[2025-07-01 00:25:04] Production.INFO: next invoice date [2025-07-01 00:25:04] Production.INFO: 2025-07-31 [2025-07-01 00:25:04] Production.INFO: getdaysdiff [2025-07-01 00:25:04] Production.INFO: +30 [2025-07-01 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (208,11,1,30,30,'RMScheduler',2025-07-01 00:25:04,0,0,,,0) [2025-07-01 00:25:04] Production.INFO: next invoice date [2025-07-01 00:25:04] Production.INFO: 2025-07-31 [2025-07-01 00:25:04] Production.INFO: getdaysdiff [2025-07-01 00:25:04] Production.INFO: +30 [2025-07-01 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (208,13,2,30,30,'RMScheduler',2025-07-01 00:25:04,0,0,,,0) [2025-07-01 00:25:05] Production.INFO: next invoice date [2025-07-01 00:25:05] Production.INFO: 2025-08-01 [2025-07-01 00:25:05] Production.INFO: getdaysdiff [2025-07-01 00:25:05] Production.INFO: +31 [2025-07-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (105,11,1,31,31,'RMScheduler',2025-07-01 00:25:04,1,0,,,0) [2025-07-01 00:25:05] Production.INFO: next invoice date [2025-07-01 00:25:05] Production.INFO: 2025-08-01 [2025-07-01 00:25:05] Production.INFO: getdaysdiff [2025-07-01 00:25:05] Production.INFO: +31 [2025-07-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (3,9,2,31,31,'RMScheduler',2025-07-01 00:25:04,1,0,,,0) [2025-07-01 00:25:05] Production.INFO: next invoice date [2025-07-01 00:25:05] Production.INFO: 2025-08-01 [2025-07-01 00:25:05] Production.INFO: getdaysdiff [2025-07-01 00:25:05] Production.INFO: +31 [2025-07-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (113,11,1,31,31,'RMScheduler',2025-07-01 00:25:04,1,0,,,0) [2025-07-01 00:25:05] Production.INFO: next invoice date [2025-07-01 00:25:05] Production.INFO: 2025-08-01 [2025-07-01 00:25:05] Production.INFO: getdaysdiff [2025-07-01 00:25:05] Production.INFO: +31 [2025-07-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (114,11,1,31,31,'RMScheduler',2025-07-01 00:25:04,1,0,,,0) [2025-07-01 00:25:05] Production.INFO: next invoice date [2025-07-01 00:25:05] Production.INFO: 2025-08-01 [2025-07-01 00:25:05] Production.INFO: getdaysdiff [2025-07-01 00:25:05] Production.INFO: +31 [2025-07-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (3,16,1,31,31,'RMScheduler',2025-07-01 00:25:04,1,0,,,0) [2025-07-01 00:25:05] Production.INFO: next invoice date [2025-07-01 00:25:05] Production.INFO: 2025-08-01 [2025-07-01 00:25:05] Production.INFO: getdaysdiff [2025-07-01 00:25:05] Production.INFO: +31 [2025-07-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (66,11,1,31,31,'RMScheduler',2025-07-01 00:25:04,1,0,,,0) [2025-07-01 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 21:25:06 [end_date_ymd] => 2025-07-01 00:25:06 [RateCDR] => 1 ) [2025-07-01 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-30 21:25:06' and `end` < '2025-07-01 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-01 00:25:18] Production.INFO: count ==704 [2025-07-01 00:25:18] Production.ERROR: pbx CDR StartTime 2025-06-30 21:25:06 - End Time 2025-07-01 00:25:06 [2025-07-01 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15390849', 'tblTempUsageDetail_20' ) start [2025-07-01 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15390849', 'tblTempUsageDetail_20' ) end [2025-07-01 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15390849', 'tblTempVendorCDR_20' ) start [2025-07-01 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15390849', 'tblTempVendorCDR_20' ) end [2025-07-01 00:25:18] Production.INFO: ProcessCDR(1,15390849,1,1,2) [2025-07-01 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15390849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15390849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15390849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15390849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15390849', 'tblTempUsageDetail_20' ) start [2025-07-01 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15390849', 'tblTempUsageDetail_20' ) end [2025-07-01 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-01 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-01 00:25:32] Production.INFO: ==10554== Releasing lock... [2025-07-01 00:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 00:25:32] Production.INFO: 38 MB #Memory Used# [2025-07-01 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 22:25:05 [end_date_ymd] => 2025-07-01 01:25:05 [RateCDR] => 1 ) [2025-07-01 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-06-30 22:25:05' and `end` < '2025-07-01 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-07-01 01:25:17] Production.INFO: count ==692 [2025-07-01 01:25:17] Production.ERROR: pbx CDR StartTime 2025-06-30 22:25:05 - End Time 2025-07-01 01:25:05 [2025-07-01 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15391096', 'tblTempUsageDetail_20' ) start [2025-07-01 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15391096', 'tblTempUsageDetail_20' ) end [2025-07-01 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15391096', 'tblTempVendorCDR_20' ) start [2025-07-01 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15391096', 'tblTempVendorCDR_20' ) end [2025-07-01 01:25:17] Production.INFO: ProcessCDR(1,15391096,1,1,2) [2025-07-01 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15391096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15391096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15391096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15391096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15391096', 'tblTempUsageDetail_20' ) start [2025-07-01 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15391096', 'tblTempUsageDetail_20' ) end [2025-07-01 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-01 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-01 01:25:24] Production.INFO: ==15097== Releasing lock... [2025-07-01 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 01:25:24] Production.INFO: 33.75 MB #Memory Used# [2025-07-01 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-30 23:25:06 [end_date_ymd] => 2025-07-01 02:25:06 [RateCDR] => 1 ) [2025-07-01 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-30 23:25:06' and `end` < '2025-07-01 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-01 02:25:19] Production.INFO: count ==640 [2025-07-01 02:25:19] Production.ERROR: pbx CDR StartTime 2025-06-30 23:25:06 - End Time 2025-07-01 02:25:06 [2025-07-01 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15391343', 'tblTempUsageDetail_20' ) start [2025-07-01 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15391343', 'tblTempUsageDetail_20' ) end [2025-07-01 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15391343', 'tblTempVendorCDR_20' ) start [2025-07-01 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15391343', 'tblTempVendorCDR_20' ) end [2025-07-01 02:25:19] Production.INFO: ProcessCDR(1,15391343,1,1,2) [2025-07-01 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15391343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15391343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15391343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15391343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15391343', 'tblTempUsageDetail_20' ) start [2025-07-01 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15391343', 'tblTempUsageDetail_20' ) end [2025-07-01 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-01 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-01 02:25:25] Production.INFO: ==20197== Releasing lock... [2025-07-01 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 02:25:25] Production.INFO: 33.25 MB #Memory Used# [2025-07-01 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 00:25:05 [end_date_ymd] => 2025-07-01 03:25:05 [RateCDR] => 1 ) [2025-07-01 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-01 00:25:05' and `end` < '2025-07-01 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-01 03:25:17] Production.INFO: count ==710 [2025-07-01 03:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 00:25:05 - End Time 2025-07-01 03:25:05 [2025-07-01 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15391590', 'tblTempUsageDetail_20' ) start [2025-07-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15391590', 'tblTempUsageDetail_20' ) end [2025-07-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15391590', 'tblTempVendorCDR_20' ) start [2025-07-01 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15391590', 'tblTempVendorCDR_20' ) end [2025-07-01 03:25:18] Production.INFO: ProcessCDR(1,15391590,1,1,2) [2025-07-01 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15391590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15391590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15391590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15391590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15391590', 'tblTempUsageDetail_20' ) start [2025-07-01 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15391590', 'tblTempUsageDetail_20' ) end [2025-07-01 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-01 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-01 03:25:24] Production.INFO: ==24454== Releasing lock... [2025-07-01 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 03:25:24] Production.INFO: 33.5 MB #Memory Used# [2025-07-01 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 01:25:05 [end_date_ymd] => 2025-07-01 04:25:05 [RateCDR] => 1 ) [2025-07-01 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-07-01 01:25:05' and `end` < '2025-07-01 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-07-01 04:25:17] Production.INFO: count ==524 [2025-07-01 04:25:17] Production.ERROR: pbx CDR StartTime 2025-07-01 01:25:05 - End Time 2025-07-01 04:25:05 [2025-07-01 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15391838', 'tblTempUsageDetail_20' ) start [2025-07-01 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15391838', 'tblTempUsageDetail_20' ) end [2025-07-01 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15391838', 'tblTempVendorCDR_20' ) start [2025-07-01 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15391838', 'tblTempVendorCDR_20' ) end [2025-07-01 04:25:17] Production.INFO: ProcessCDR(1,15391838,1,1,2) [2025-07-01 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15391838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15391838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15391838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15391838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15391838', 'tblTempUsageDetail_20' ) start [2025-07-01 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15391838', 'tblTempUsageDetail_20' ) end [2025-07-01 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-01 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-01 04:25:23] Production.INFO: ==28649== Releasing lock... [2025-07-01 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 04:25:23] Production.INFO: 32.5 MB #Memory Used# [2025-07-01 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 02:25:05 [end_date_ymd] => 2025-07-01 05:25:05 [RateCDR] => 1 ) [2025-07-01 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-07-01 02:25:05' and `end` < '2025-07-01 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-07-01 05:25:18] Production.INFO: count ==378 [2025-07-01 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 02:25:05 - End Time 2025-07-01 05:25:05 [2025-07-01 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15392086', 'tblTempUsageDetail_20' ) start [2025-07-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15392086', 'tblTempUsageDetail_20' ) end [2025-07-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15392086', 'tblTempVendorCDR_20' ) start [2025-07-01 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15392086', 'tblTempVendorCDR_20' ) end [2025-07-01 05:25:18] Production.INFO: ProcessCDR(1,15392086,1,1,2) [2025-07-01 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15392086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15392086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15392086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15392086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15392086', 'tblTempUsageDetail_20' ) start [2025-07-01 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15392086', 'tblTempUsageDetail_20' ) end [2025-07-01 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-07-01 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-07-01 05:25:22] Production.INFO: ==1019== Releasing lock... [2025-07-01 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 05:25:22] Production.INFO: 31.75 MB #Memory Used# [2025-07-01 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 03:25:05 [end_date_ymd] => 2025-07-01 06:25:05 [RateCDR] => 1 ) [2025-07-01 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-07-01 03:25:05' and `end` < '2025-07-01 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-07-01 06:25:17] Production.INFO: count ==145 [2025-07-01 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-01 03:25:05 - End Time 2025-07-01 06:25:05 [2025-07-01 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15392333', 'tblTempUsageDetail_20' ) start [2025-07-01 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15392333', 'tblTempUsageDetail_20' ) end [2025-07-01 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15392333', 'tblTempVendorCDR_20' ) start [2025-07-01 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15392333', 'tblTempVendorCDR_20' ) end [2025-07-01 06:25:17] Production.INFO: ProcessCDR(1,15392333,1,1,2) [2025-07-01 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15392333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15392333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15392333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15392333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15392333', 'tblTempUsageDetail_20' ) start [2025-07-01 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15392333', 'tblTempUsageDetail_20' ) end [2025-07-01 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-07-01 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-07-01 06:25:21] Production.INFO: ==5810== Releasing lock... [2025-07-01 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 06:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-07-01 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 04:25:05 [end_date_ymd] => 2025-07-01 07:25:05 [RateCDR] => 1 ) [2025-07-01 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-01 04:25:05' and `end` < '2025-07-01 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-01 07:25:17] Production.INFO: count ==126 [2025-07-01 07:25:17] Production.ERROR: pbx CDR StartTime 2025-07-01 04:25:05 - End Time 2025-07-01 07:25:05 [2025-07-01 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15392580', 'tblTempUsageDetail_20' ) start [2025-07-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15392580', 'tblTempUsageDetail_20' ) end [2025-07-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15392580', 'tblTempVendorCDR_20' ) start [2025-07-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15392580', 'tblTempVendorCDR_20' ) end [2025-07-01 07:25:17] Production.INFO: ProcessCDR(1,15392580,1,1,2) [2025-07-01 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15392580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15392580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15392580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15392580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15392580', 'tblTempUsageDetail_20' ) start [2025-07-01 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15392580', 'tblTempUsageDetail_20' ) end [2025-07-01 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-01 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-01 07:25:23] Production.INFO: ==10408== Releasing lock... [2025-07-01 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 07:25:23] Production.INFO: 29 MB #Memory Used# [2025-07-01 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 05:25:05 [end_date_ymd] => 2025-07-01 08:25:05 [RateCDR] => 1 ) [2025-07-01 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-07-01 05:25:05' and `end` < '2025-07-01 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-07-01 08:25:17] Production.INFO: count ==248 [2025-07-01 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-01 05:25:05 - End Time 2025-07-01 08:25:05 [2025-07-01 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15392827', 'tblTempUsageDetail_20' ) start [2025-07-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15392827', 'tblTempUsageDetail_20' ) end [2025-07-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15392827', 'tblTempVendorCDR_20' ) start [2025-07-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15392827', 'tblTempVendorCDR_20' ) end [2025-07-01 08:25:17] Production.INFO: ProcessCDR(1,15392827,1,1,2) [2025-07-01 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15392827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15392827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15392827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15392827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15392827', 'tblTempUsageDetail_20' ) start [2025-07-01 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15392827', 'tblTempUsageDetail_20' ) end [2025-07-01 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-01 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-01 08:25:24] Production.INFO: ==15026== Releasing lock... [2025-07-01 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 08:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-07-01 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 06:25:06 [end_date_ymd] => 2025-07-01 09:25:06 [RateCDR] => 1 ) [2025-07-01 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-01 06:25:06' and `end` < '2025-07-01 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-01 09:25:18] Production.INFO: count ==406 [2025-07-01 09:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 06:25:06 - End Time 2025-07-01 09:25:06 [2025-07-01 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15393074', 'tblTempUsageDetail_20' ) start [2025-07-01 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15393074', 'tblTempUsageDetail_20' ) end [2025-07-01 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15393074', 'tblTempVendorCDR_20' ) start [2025-07-01 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15393074', 'tblTempVendorCDR_20' ) end [2025-07-01 09:25:18] Production.INFO: ProcessCDR(1,15393074,1,1,2) [2025-07-01 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15393074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15393074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15393074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15393074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15393074', 'tblTempUsageDetail_20' ) start [2025-07-01 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15393074', 'tblTempUsageDetail_20' ) end [2025-07-01 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-01 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-01 09:25:25] Production.INFO: ==19656== Releasing lock... [2025-07-01 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 09:25:25] Production.INFO: 31.75 MB #Memory Used# [2025-07-01 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 07:25:05 [end_date_ymd] => 2025-07-01 10:25:05 [RateCDR] => 1 ) [2025-07-01 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-07-01 07:25:05' and `end` < '2025-07-01 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-07-01 10:25:18] Production.INFO: count ==677 [2025-07-01 10:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 07:25:05 - End Time 2025-07-01 10:25:05 [2025-07-01 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15393321', 'tblTempUsageDetail_20' ) start [2025-07-01 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15393321', 'tblTempUsageDetail_20' ) end [2025-07-01 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15393321', 'tblTempVendorCDR_20' ) start [2025-07-01 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15393321', 'tblTempVendorCDR_20' ) end [2025-07-01 10:25:18] Production.INFO: ProcessCDR(1,15393321,1,1,2) [2025-07-01 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15393321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15393321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15393321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15393321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15393321', 'tblTempUsageDetail_20' ) start [2025-07-01 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15393321', 'tblTempUsageDetail_20' ) end [2025-07-01 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-01 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-01 10:25:24] Production.INFO: ==24874== Releasing lock... [2025-07-01 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 10:25:24] Production.INFO: 34 MB #Memory Used# [2025-07-01 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 08:25:05 [end_date_ymd] => 2025-07-01 11:25:05 [RateCDR] => 1 ) [2025-07-01 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-07-01 08:25:05' and `end` < '2025-07-01 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-07-01 11:25:18] Production.INFO: count ==931 [2025-07-01 11:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 08:25:05 - End Time 2025-07-01 11:25:05 [2025-07-01 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15393568', 'tblTempUsageDetail_20' ) start [2025-07-01 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15393568', 'tblTempUsageDetail_20' ) end [2025-07-01 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15393568', 'tblTempVendorCDR_20' ) start [2025-07-01 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15393568', 'tblTempVendorCDR_20' ) end [2025-07-01 11:25:18] Production.INFO: ProcessCDR(1,15393568,1,1,2) [2025-07-01 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15393568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15393568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15393568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15393568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15393568', 'tblTempUsageDetail_20' ) start [2025-07-01 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15393568', 'tblTempUsageDetail_20' ) end [2025-07-01 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-01 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-01 11:25:26] Production.INFO: ==31860== Releasing lock... [2025-07-01 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 11:25:26] Production.INFO: 36 MB #Memory Used# [2025-07-01 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 09:25:05 [end_date_ymd] => 2025-07-01 12:25:05 [RateCDR] => 1 ) [2025-07-01 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-01 09:25:05' and `end` < '2025-07-01 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-01 12:25:17] Production.INFO: count ==1169 [2025-07-01 12:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 09:25:05 - End Time 2025-07-01 12:25:05 [2025-07-01 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15393815', 'tblTempUsageDetail_20' ) start [2025-07-01 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15393815', 'tblTempUsageDetail_20' ) end [2025-07-01 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15393815', 'tblTempVendorCDR_20' ) start [2025-07-01 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15393815', 'tblTempVendorCDR_20' ) end [2025-07-01 12:25:18] Production.INFO: ProcessCDR(1,15393815,1,1,2) [2025-07-01 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15393815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15393815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15393815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15393815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15393815', 'tblTempUsageDetail_20' ) start [2025-07-01 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15393815', 'tblTempUsageDetail_20' ) end [2025-07-01 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-01 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-01 12:25:25] Production.INFO: ==3828== Releasing lock... [2025-07-01 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 12:25:25] Production.INFO: 37.75 MB #Memory Used# [2025-07-01 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 10:25:06 [end_date_ymd] => 2025-07-01 13:25:06 [RateCDR] => 1 ) [2025-07-01 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-01 10:25:06' and `end` < '2025-07-01 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-01 13:25:18] Production.INFO: count ==1272 [2025-07-01 13:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 10:25:06 - End Time 2025-07-01 13:25:06 [2025-07-01 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15394062', 'tblTempUsageDetail_20' ) start [2025-07-01 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15394062', 'tblTempUsageDetail_20' ) end [2025-07-01 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15394062', 'tblTempVendorCDR_20' ) start [2025-07-01 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15394062', 'tblTempVendorCDR_20' ) end [2025-07-01 13:25:18] Production.INFO: ProcessCDR(1,15394062,1,1,2) [2025-07-01 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15394062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15394062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15394062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15394062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15394062', 'tblTempUsageDetail_20' ) start [2025-07-01 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15394062', 'tblTempUsageDetail_20' ) end [2025-07-01 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-01 13:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-01 13:25:25] Production.INFO: ==8071== Releasing lock... [2025-07-01 13:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 13:25:25] Production.INFO: 37.75 MB #Memory Used# [2025-07-01 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 11:25:06 [end_date_ymd] => 2025-07-01 14:25:06 [RateCDR] => 1 ) [2025-07-01 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-01 11:25:06' and `end` < '2025-07-01 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-01 14:25:18] Production.INFO: count ==1248 [2025-07-01 14:25:19] Production.ERROR: pbx CDR StartTime 2025-07-01 11:25:06 - End Time 2025-07-01 14:25:06 [2025-07-01 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15394309', 'tblTempUsageDetail_20' ) start [2025-07-01 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15394309', 'tblTempUsageDetail_20' ) end [2025-07-01 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15394309', 'tblTempVendorCDR_20' ) start [2025-07-01 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15394309', 'tblTempVendorCDR_20' ) end [2025-07-01 14:25:19] Production.INFO: ProcessCDR(1,15394309,1,1,2) [2025-07-01 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15394309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15394309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15394309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15394309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15394309', 'tblTempUsageDetail_20' ) start [2025-07-01 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15394309', 'tblTempUsageDetail_20' ) end [2025-07-01 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-01 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-01 14:25:27] Production.INFO: ==13166== Releasing lock... [2025-07-01 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 14:25:27] Production.INFO: 37.75 MB #Memory Used# [2025-07-01 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 12:25:05 [end_date_ymd] => 2025-07-01 15:25:05 [RateCDR] => 1 ) [2025-07-01 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-07-01 12:25:05' and `end` < '2025-07-01 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-07-01 15:25:18] Production.INFO: count ==1319 [2025-07-01 15:25:19] Production.ERROR: pbx CDR StartTime 2025-07-01 12:25:05 - End Time 2025-07-01 15:25:05 [2025-07-01 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15394556', 'tblTempUsageDetail_20' ) start [2025-07-01 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15394556', 'tblTempUsageDetail_20' ) end [2025-07-01 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15394556', 'tblTempVendorCDR_20' ) start [2025-07-01 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15394556', 'tblTempVendorCDR_20' ) end [2025-07-01 15:25:19] Production.INFO: ProcessCDR(1,15394556,1,1,2) [2025-07-01 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15394556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15394556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15394556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15394556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15394556', 'tblTempUsageDetail_20' ) start [2025-07-01 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15394556', 'tblTempUsageDetail_20' ) end [2025-07-01 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-01 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-01 15:25:26] Production.INFO: ==17779== Releasing lock... [2025-07-01 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 15:25:26] Production.INFO: 38 MB #Memory Used# [2025-07-01 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 13:25:06 [end_date_ymd] => 2025-07-01 16:25:06 [RateCDR] => 1 ) [2025-07-01 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-01 13:25:06' and `end` < '2025-07-01 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-01 16:25:18] Production.INFO: count ==1386 [2025-07-01 16:25:19] Production.ERROR: pbx CDR StartTime 2025-07-01 13:25:06 - End Time 2025-07-01 16:25:06 [2025-07-01 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15394803', 'tblTempUsageDetail_20' ) start [2025-07-01 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15394803', 'tblTempUsageDetail_20' ) end [2025-07-01 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15394803', 'tblTempVendorCDR_20' ) start [2025-07-01 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15394803', 'tblTempVendorCDR_20' ) end [2025-07-01 16:25:19] Production.INFO: ProcessCDR(1,15394803,1,1,2) [2025-07-01 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15394803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15394803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15394803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15394803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15394803', 'tblTempUsageDetail_20' ) start [2025-07-01 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15394803', 'tblTempUsageDetail_20' ) end [2025-07-01 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-01 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-01 16:25:27] Production.INFO: ==22652== Releasing lock... [2025-07-01 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 16:25:27] Production.INFO: 38.5 MB #Memory Used# [2025-07-01 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 14:25:05 [end_date_ymd] => 2025-07-01 17:25:05 [RateCDR] => 1 ) [2025-07-01 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-01 14:25:05' and `end` < '2025-07-01 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-01 17:25:18] Production.INFO: count ==1626 [2025-07-01 17:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 14:25:05 - End Time 2025-07-01 17:25:05 [2025-07-01 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15395050', 'tblTempUsageDetail_20' ) start [2025-07-01 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15395050', 'tblTempUsageDetail_20' ) end [2025-07-01 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15395050', 'tblTempVendorCDR_20' ) start [2025-07-01 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15395050', 'tblTempVendorCDR_20' ) end [2025-07-01 17:25:18] Production.INFO: ProcessCDR(1,15395050,1,1,2) [2025-07-01 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15395050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15395050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15395050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15395050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15395050', 'tblTempUsageDetail_20' ) start [2025-07-01 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15395050', 'tblTempUsageDetail_20' ) end [2025-07-01 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-01 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-01 17:25:26] Production.INFO: ==26909== Releasing lock... [2025-07-01 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 17:25:26] Production.INFO: 40.25 MB #Memory Used# [2025-07-01 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 15:25:05 [end_date_ymd] => 2025-07-01 18:25:05 [RateCDR] => 1 ) [2025-07-01 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-07-01 15:25:05' and `end` < '2025-07-01 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-07-01 18:25:17] Production.INFO: count ==1831 [2025-07-01 18:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 15:25:05 - End Time 2025-07-01 18:25:05 [2025-07-01 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15395297', 'tblTempUsageDetail_20' ) start [2025-07-01 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15395297', 'tblTempUsageDetail_20' ) end [2025-07-01 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15395297', 'tblTempVendorCDR_20' ) start [2025-07-01 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15395297', 'tblTempVendorCDR_20' ) end [2025-07-01 18:25:18] Production.INFO: ProcessCDR(1,15395297,1,1,2) [2025-07-01 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15395297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15395297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15395297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 18:26:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15395297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 18:26:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15395297', 'tblTempUsageDetail_20' ) start [2025-07-01 18:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15395297', 'tblTempUsageDetail_20' ) end [2025-07-01 18:26:21] Production.ERROR: pbx prc_insertCDR start [2025-07-01 18:26:22] Production.ERROR: pbx prc_insertCDR end [2025-07-01 18:26:25] Production.INFO: ==31289== Releasing lock... [2025-07-01 18:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 18:26:25] Production.INFO: 41.5 MB #Memory Used# [2025-07-01 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 16:25:05 [end_date_ymd] => 2025-07-01 19:25:05 [RateCDR] => 1 ) [2025-07-01 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-07-01 16:25:05' and `end` < '2025-07-01 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-07-01 19:25:18] Production.INFO: count ==1848 [2025-07-01 19:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 16:25:05 - End Time 2025-07-01 19:25:05 [2025-07-01 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15395541', 'tblTempUsageDetail_20' ) start [2025-07-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15395541', 'tblTempUsageDetail_20' ) end [2025-07-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15395541', 'tblTempVendorCDR_20' ) start [2025-07-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15395541', 'tblTempVendorCDR_20' ) end [2025-07-01 19:25:18] Production.INFO: ProcessCDR(1,15395541,1,1,2) [2025-07-01 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15395541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15395541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15395541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15395541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15395541', 'tblTempUsageDetail_20' ) start [2025-07-01 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15395541', 'tblTempUsageDetail_20' ) end [2025-07-01 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-01 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-01 19:25:26] Production.INFO: ==3241== Releasing lock... [2025-07-01 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 19:25:26] Production.INFO: 42 MB #Memory Used# [2025-07-01 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 17:25:05 [end_date_ymd] => 2025-07-01 20:25:05 [RateCDR] => 1 ) [2025-07-01 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-01 17:25:05' and `end` < '2025-07-01 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-01 20:25:18] Production.INFO: count ==1675 [2025-07-01 20:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 17:25:05 - End Time 2025-07-01 20:25:05 [2025-07-01 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15395788', 'tblTempUsageDetail_20' ) start [2025-07-01 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15395788', 'tblTempUsageDetail_20' ) end [2025-07-01 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15395788', 'tblTempVendorCDR_20' ) start [2025-07-01 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15395788', 'tblTempVendorCDR_20' ) end [2025-07-01 20:25:18] Production.INFO: ProcessCDR(1,15395788,1,1,2) [2025-07-01 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15395788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15395788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15395788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15395788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15395788', 'tblTempUsageDetail_20' ) start [2025-07-01 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15395788', 'tblTempUsageDetail_20' ) end [2025-07-01 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-01 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-01 20:25:25] Production.INFO: ==8327== Releasing lock... [2025-07-01 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 20:25:25] Production.INFO: 41 MB #Memory Used# [2025-07-01 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 18:25:05 [end_date_ymd] => 2025-07-01 21:25:05 [RateCDR] => 1 ) [2025-07-01 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-07-01 18:25:05' and `end` < '2025-07-01 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-07-01 21:25:17] Production.INFO: count ==1392 [2025-07-01 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 18:25:05 - End Time 2025-07-01 21:25:05 [2025-07-01 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15396035', 'tblTempUsageDetail_20' ) start [2025-07-01 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15396035', 'tblTempUsageDetail_20' ) end [2025-07-01 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15396035', 'tblTempVendorCDR_20' ) start [2025-07-01 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15396035', 'tblTempVendorCDR_20' ) end [2025-07-01 21:25:18] Production.INFO: ProcessCDR(1,15396035,1,1,2) [2025-07-01 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15396035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15396035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15396035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15396035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15396035', 'tblTempUsageDetail_20' ) start [2025-07-01 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15396035', 'tblTempUsageDetail_20' ) end [2025-07-01 21:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-01 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-01 21:25:25] Production.INFO: ==14582== Releasing lock... [2025-07-01 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 21:25:25] Production.INFO: 38.5 MB #Memory Used# [2025-07-01 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 19:25:05 [end_date_ymd] => 2025-07-01 22:25:05 [RateCDR] => 1 ) [2025-07-01 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-01 19:25:05' and `end` < '2025-07-01 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-01 22:25:17] Production.INFO: count ==1200 [2025-07-01 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 19:25:05 - End Time 2025-07-01 22:25:05 [2025-07-01 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15396282', 'tblTempUsageDetail_20' ) start [2025-07-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15396282', 'tblTempUsageDetail_20' ) end [2025-07-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15396282', 'tblTempVendorCDR_20' ) start [2025-07-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15396282', 'tblTempVendorCDR_20' ) end [2025-07-01 22:25:18] Production.INFO: ProcessCDR(1,15396282,1,1,2) [2025-07-01 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15396282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15396282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15396282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15396282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15396282', 'tblTempUsageDetail_20' ) start [2025-07-01 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15396282', 'tblTempUsageDetail_20' ) end [2025-07-01 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-01 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-01 22:25:25] Production.INFO: ==19357== Releasing lock... [2025-07-01 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 22:25:25] Production.INFO: 37.25 MB #Memory Used# [2025-07-01 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 20:25:05 [end_date_ymd] => 2025-07-01 23:25:05 [RateCDR] => 1 ) [2025-07-01 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-07-01 20:25:05' and `end` < '2025-07-01 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-07-01 23:25:18] Production.INFO: count ==1198 [2025-07-01 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 20:25:05 - End Time 2025-07-01 23:25:05 [2025-07-01 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15396529', 'tblTempUsageDetail_20' ) start [2025-07-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15396529', 'tblTempUsageDetail_20' ) end [2025-07-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15396529', 'tblTempVendorCDR_20' ) start [2025-07-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15396529', 'tblTempVendorCDR_20' ) end [2025-07-01 23:25:18] Production.INFO: ProcessCDR(1,15396529,1,1,2) [2025-07-01 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15396529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15396529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-01 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15396529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15396529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-01 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15396529', 'tblTempUsageDetail_20' ) start [2025-07-01 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15396529', 'tblTempUsageDetail_20' ) end [2025-07-01 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-01 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-01 23:25:25] Production.INFO: ==24637== Releasing lock... [2025-07-01 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-01 23:25:25] Production.INFO: 37 MB #Memory Used#