[2025-10-06 00:25:05] Production.INFO: next invoice date [2025-10-06 00:25:05] Production.INFO: 2025-11-06 [2025-10-06 00:25:05] Production.INFO: getdaysdiff [2025-10-06 00:25:05] Production.INFO: +31 [2025-10-06 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (154,11,1,31,31,'RMScheduler',2025-10-06 00:25:04,1,0,,,0) [2025-10-06 00:25:05] Production.INFO: next invoice date [2025-10-06 00:25:05] Production.INFO: 2025-11-06 [2025-10-06 00:25:05] Production.INFO: getdaysdiff [2025-10-06 00:25:05] Production.INFO: +31 [2025-10-06 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (207,11,1,31,31,'RMScheduler',2025-10-06 00:25:04,0,0,,,0) [2025-10-06 00:25:05] Production.INFO: next invoice date [2025-10-06 00:25:05] Production.INFO: 2025-11-06 [2025-10-06 00:25:05] Production.INFO: getdaysdiff [2025-10-06 00:25:05] Production.INFO: +31 [2025-10-06 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (207,13,2,31,31,'RMScheduler',2025-10-06 00:25:04,0,0,,,0) [2025-10-06 00:25:05] Production.INFO: next invoice date [2025-10-06 00:25:05] Production.INFO: 2025-11-06 [2025-10-06 00:25:05] Production.INFO: getdaysdiff [2025-10-06 00:25:05] Production.INFO: +31 [2025-10-06 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (206,11,1,31,31,'RMScheduler',2025-10-06 00:25:04,0,0,,,0) [2025-10-06 00:25:05] Production.INFO: next invoice date [2025-10-06 00:25:05] Production.INFO: 2025-11-06 [2025-10-06 00:25:05] Production.INFO: getdaysdiff [2025-10-06 00:25:05] Production.INFO: +31 [2025-10-06 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (206,13,2,31,31,'RMScheduler',2025-10-06 00:25:04,0,0,,,0) [2025-10-06 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 21:25:06 [end_date_ymd] => 2025-10-06 00:25:06 [RateCDR] => 1 ) [2025-10-06 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-10-05 21:25:06' and `end` < '2025-10-06 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-10-06 00:25:18] Production.INFO: count ==511 [2025-10-06 00:25:18] Production.ERROR: pbx CDR StartTime 2025-10-05 21:25:06 - End Time 2025-10-06 00:25:06 [2025-10-06 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15965788', 'tblTempUsageDetail_20' ) start [2025-10-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15965788', 'tblTempUsageDetail_20' ) end [2025-10-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15965788', 'tblTempVendorCDR_20' ) start [2025-10-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15965788', 'tblTempVendorCDR_20' ) end [2025-10-06 00:25:18] Production.INFO: ProcessCDR(1,15965788,1,1,2) [2025-10-06 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15965788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15965788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15965788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15965788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15965788', 'tblTempUsageDetail_20' ) start [2025-10-06 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15965788', 'tblTempUsageDetail_20' ) end [2025-10-06 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-06 00:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-06 00:25:28] Production.INFO: ==22592== Releasing lock... [2025-10-06 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 00:25:28] Production.INFO: 35.75 MB #Memory Used# [2025-10-06 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 22:25:05 [end_date_ymd] => 2025-10-06 01:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-05 22:25:05' and `end` < '2025-10-06 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-10-06 01:25:17] Production.INFO: count ==418 [2025-10-06 01:25:18] Production.ERROR: pbx CDR StartTime 2025-10-05 22:25:05 - End Time 2025-10-06 01:25:05 [2025-10-06 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15966035', 'tblTempUsageDetail_20' ) start [2025-10-06 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15966035', 'tblTempUsageDetail_20' ) end [2025-10-06 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15966035', 'tblTempVendorCDR_20' ) start [2025-10-06 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15966035', 'tblTempVendorCDR_20' ) end [2025-10-06 01:25:18] Production.INFO: ProcessCDR(1,15966035,1,1,2) [2025-10-06 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15966035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15966035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15966035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15966035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15966035', 'tblTempUsageDetail_20' ) start [2025-10-06 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15966035', 'tblTempUsageDetail_20' ) end [2025-10-06 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-06 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-06 01:25:26] Production.INFO: ==27242== Releasing lock... [2025-10-06 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 01:25:26] Production.INFO: 31.75 MB #Memory Used# [2025-10-06 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-05 23:25:05 [end_date_ymd] => 2025-10-06 02:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-05 23:25:05' and `end` < '2025-10-06 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-10-06 02:25:17] Production.INFO: count ==318 [2025-10-06 02:25:17] Production.ERROR: pbx CDR StartTime 2025-10-05 23:25:05 - End Time 2025-10-06 02:25:05 [2025-10-06 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15966282', 'tblTempUsageDetail_20' ) start [2025-10-06 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15966282', 'tblTempUsageDetail_20' ) end [2025-10-06 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15966282', 'tblTempVendorCDR_20' ) start [2025-10-06 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15966282', 'tblTempVendorCDR_20' ) end [2025-10-06 02:25:17] Production.INFO: ProcessCDR(1,15966282,1,1,2) [2025-10-06 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15966282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15966282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15966282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15966282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15966282', 'tblTempUsageDetail_20' ) start [2025-10-06 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15966282', 'tblTempUsageDetail_20' ) end [2025-10-06 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-06 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-06 02:25:26] Production.INFO: ==31761== Releasing lock... [2025-10-06 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 02:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-10-06 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 00:25:06 [end_date_ymd] => 2025-10-06 03:25:06 [RateCDR] => 1 ) [2025-10-06 03: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-10-06 00:25:06' and `end` < '2025-10-06 03: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-10-06 03:25:18] Production.INFO: count ==266 [2025-10-06 03:25:18] Production.ERROR: pbx CDR StartTime 2025-10-06 00:25:06 - End Time 2025-10-06 03:25:06 [2025-10-06 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15966529', 'tblTempUsageDetail_20' ) start [2025-10-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15966529', 'tblTempUsageDetail_20' ) end [2025-10-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15966529', 'tblTempVendorCDR_20' ) start [2025-10-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15966529', 'tblTempVendorCDR_20' ) end [2025-10-06 03:25:18] Production.INFO: ProcessCDR(1,15966529,1,1,2) [2025-10-06 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15966529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15966529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15966529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 03:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15966529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 03:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15966529', 'tblTempUsageDetail_20' ) start [2025-10-06 03:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15966529', 'tblTempUsageDetail_20' ) end [2025-10-06 03:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-06 03:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-06 03:25:27] Production.INFO: ==3988== Releasing lock... [2025-10-06 03:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 03:25:27] Production.INFO: 30.5 MB #Memory Used# [2025-10-06 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 01:25:05 [end_date_ymd] => 2025-10-06 04:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-06 01:25:05' and `end` < '2025-10-06 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-10-06 04:25:17] Production.INFO: count ==158 [2025-10-06 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-06 01:25:05 - End Time 2025-10-06 04:25:05 [2025-10-06 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15966777', 'tblTempUsageDetail_20' ) start [2025-10-06 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15966777', 'tblTempUsageDetail_20' ) end [2025-10-06 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15966777', 'tblTempVendorCDR_20' ) start [2025-10-06 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15966777', 'tblTempVendorCDR_20' ) end [2025-10-06 04:25:17] Production.INFO: ProcessCDR(1,15966777,1,1,2) [2025-10-06 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15966777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15966777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15966777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 04:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15966777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15966777', 'tblTempUsageDetail_20' ) start [2025-10-06 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15966777', 'tblTempUsageDetail_20' ) end [2025-10-06 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-06 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-06 04:25:26] Production.INFO: ==8282== Releasing lock... [2025-10-06 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 04:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-10-06 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 02:25:06 [end_date_ymd] => 2025-10-06 05:25:06 [RateCDR] => 1 ) [2025-10-06 05: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-10-06 02:25:06' and `end` < '2025-10-06 05: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-10-06 05:25:17] Production.INFO: count ==106 [2025-10-06 05:25:17] Production.ERROR: pbx CDR StartTime 2025-10-06 02:25:06 - End Time 2025-10-06 05:25:06 [2025-10-06 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15967025', 'tblTempUsageDetail_20' ) start [2025-10-06 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15967025', 'tblTempUsageDetail_20' ) end [2025-10-06 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15967025', 'tblTempVendorCDR_20' ) start [2025-10-06 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15967025', 'tblTempVendorCDR_20' ) end [2025-10-06 05:25:17] Production.INFO: ProcessCDR(1,15967025,1,1,2) [2025-10-06 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15967025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15967025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15967025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15967025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15967025', 'tblTempUsageDetail_20' ) start [2025-10-06 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15967025', 'tblTempUsageDetail_20' ) end [2025-10-06 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-10-06 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-10-06 05:25:24] Production.INFO: ==12791== Releasing lock... [2025-10-06 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 05:25:24] Production.INFO: 28.75 MB #Memory Used# [2025-10-06 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 03:25:05 [end_date_ymd] => 2025-10-06 06:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-06 03:25:05' and `end` < '2025-10-06 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-10-06 06:25:17] Production.INFO: count ==81 [2025-10-06 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-06 03:25:05 - End Time 2025-10-06 06:25:05 [2025-10-06 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15967272', 'tblTempUsageDetail_20' ) start [2025-10-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15967272', 'tblTempUsageDetail_20' ) end [2025-10-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15967272', 'tblTempVendorCDR_20' ) start [2025-10-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15967272', 'tblTempVendorCDR_20' ) end [2025-10-06 06:25:17] Production.INFO: ProcessCDR(1,15967272,1,1,2) [2025-10-06 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15967272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15967272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15967272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15967272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15967272', 'tblTempUsageDetail_20' ) start [2025-10-06 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15967272', 'tblTempUsageDetail_20' ) end [2025-10-06 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-06 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-06 06:25:26] Production.INFO: ==17147== Releasing lock... [2025-10-06 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 06:25:26] Production.INFO: 28.25 MB #Memory Used# [2025-10-06 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 04:25:06 [end_date_ymd] => 2025-10-06 07:25:06 [RateCDR] => 1 ) [2025-10-06 07: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-10-06 04:25:06' and `end` < '2025-10-06 07: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-10-06 07:25:18] Production.INFO: count ==140 [2025-10-06 07:25:18] Production.ERROR: pbx CDR StartTime 2025-10-06 04:25:06 - End Time 2025-10-06 07:25:06 [2025-10-06 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15967519', 'tblTempUsageDetail_20' ) start [2025-10-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15967519', 'tblTempUsageDetail_20' ) end [2025-10-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15967519', 'tblTempVendorCDR_20' ) start [2025-10-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15967519', 'tblTempVendorCDR_20' ) end [2025-10-06 07:25:18] Production.INFO: ProcessCDR(1,15967519,1,1,2) [2025-10-06 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15967519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15967519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15967519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 07:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15967519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 07:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15967519', 'tblTempUsageDetail_20' ) start [2025-10-06 07:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15967519', 'tblTempUsageDetail_20' ) end [2025-10-06 07:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-06 07:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-06 07:25:27] Production.INFO: ==22321== Releasing lock... [2025-10-06 07:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 07:25:27] Production.INFO: 29.5 MB #Memory Used# [2025-10-06 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 05:25:04 [end_date_ymd] => 2025-10-06 08:25:04 [RateCDR] => 1 ) [2025-10-06 08: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-10-06 05:25:04' and `end` < '2025-10-06 08: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-10-06 08:25:16] Production.INFO: count ==471 [2025-10-06 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-06 05:25:04 - End Time 2025-10-06 08:25:04 [2025-10-06 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15967766', 'tblTempUsageDetail_20' ) start [2025-10-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15967766', 'tblTempUsageDetail_20' ) end [2025-10-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15967766', 'tblTempVendorCDR_20' ) start [2025-10-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15967766', 'tblTempVendorCDR_20' ) end [2025-10-06 08:25:17] Production.INFO: ProcessCDR(1,15967766,1,1,2) [2025-10-06 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15967766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15967766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15967766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15967766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15967766', 'tblTempUsageDetail_20' ) start [2025-10-06 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15967766', 'tblTempUsageDetail_20' ) end [2025-10-06 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-06 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-06 08:25:26] Production.INFO: ==27446== Releasing lock... [2025-10-06 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 08:25:26] Production.INFO: 32.25 MB #Memory Used# [2025-10-06 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 06:25:05 [end_date_ymd] => 2025-10-06 09:25:05 [RateCDR] => 1 ) [2025-10-06 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-06 06:25:05' and `end` < '2025-10-06 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-06 09:25:18] Production.INFO: count ==1909 [2025-10-06 09:25:19] Production.ERROR: pbx CDR StartTime 2025-10-06 06:25:05 - End Time 2025-10-06 09:25:05 [2025-10-06 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15968013', 'tblTempUsageDetail_20' ) start [2025-10-06 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15968013', 'tblTempUsageDetail_20' ) end [2025-10-06 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15968013', 'tblTempVendorCDR_20' ) start [2025-10-06 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15968013', 'tblTempVendorCDR_20' ) end [2025-10-06 09:25:19] Production.INFO: ProcessCDR(1,15968013,1,1,2) [2025-10-06 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15968013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15968013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15968013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 09:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15968013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15968013', 'tblTempUsageDetail_20' ) start [2025-10-06 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15968013', 'tblTempUsageDetail_20' ) end [2025-10-06 09:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-06 09:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-06 09:25:29] Production.INFO: ==32210== Releasing lock... [2025-10-06 09:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 09:25:29] Production.INFO: 42.5 MB #Memory Used# [2025-10-06 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 07:25:05 [end_date_ymd] => 2025-10-06 10:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-06 07:25:05' and `end` < '2025-10-06 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-10-06 10:25:18] Production.INFO: count ==3870 [2025-10-06 10:25:20] Production.ERROR: pbx CDR StartTime 2025-10-06 07:25:05 - End Time 2025-10-06 10:25:05 [2025-10-06 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15968260', 'tblTempUsageDetail_20' ) start [2025-10-06 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15968260', 'tblTempUsageDetail_20' ) end [2025-10-06 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15968260', 'tblTempVendorCDR_20' ) start [2025-10-06 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15968260', 'tblTempVendorCDR_20' ) end [2025-10-06 10:25:20] Production.INFO: ProcessCDR(1,15968260,1,1,2) [2025-10-06 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15968260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 10:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15968260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 10:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15968260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 10:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15968260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15968260', 'tblTempUsageDetail_20' ) start [2025-10-06 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15968260', 'tblTempUsageDetail_20' ) end [2025-10-06 10:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-06 10:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-06 10:25:35] Production.INFO: ==4337== Releasing lock... [2025-10-06 10:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 10:25:35] Production.INFO: 57 MB #Memory Used# [2025-10-06 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 08:25:05 [end_date_ymd] => 2025-10-06 11:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-06 08:25:05' and `end` < '2025-10-06 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-10-06 11:25:21] Production.INFO: count ==5520 [2025-10-06 11:25:24] Production.ERROR: pbx CDR StartTime 2025-10-06 08:25:05 - End Time 2025-10-06 11:25:05 [2025-10-06 11:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15968507', 'tblTempUsageDetail_20' ) start [2025-10-06 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15968507', 'tblTempUsageDetail_20' ) end [2025-10-06 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15968507', 'tblTempVendorCDR_20' ) start [2025-10-06 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15968507', 'tblTempVendorCDR_20' ) end [2025-10-06 11:25:25] Production.INFO: ProcessCDR(1,15968507,1,1,2) [2025-10-06 11:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15968507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 11:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15968507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 11:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15968507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 11:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15968507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 11:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15968507', 'tblTempUsageDetail_20' ) start [2025-10-06 11:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15968507', 'tblTempUsageDetail_20' ) end [2025-10-06 11:25:36] Production.ERROR: pbx prc_insertCDR start [2025-10-06 11:25:39] Production.ERROR: pbx prc_insertCDR end [2025-10-06 11:25:39] Production.INFO: ==9033== Releasing lock... [2025-10-06 11:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 11:25:39] Production.INFO: 69.5 MB #Memory Used# [2025-10-06 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 09:25:05 [end_date_ymd] => 2025-10-06 12:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-06 09:25:05' and `end` < '2025-10-06 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-10-06 12:25:20] Production.INFO: count ==5997 [2025-10-06 12:25:23] Production.ERROR: pbx CDR StartTime 2025-10-06 09:25:05 - End Time 2025-10-06 12:25:05 [2025-10-06 12:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15968754', 'tblTempUsageDetail_20' ) start [2025-10-06 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15968754', 'tblTempUsageDetail_20' ) end [2025-10-06 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15968754', 'tblTempVendorCDR_20' ) start [2025-10-06 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15968754', 'tblTempVendorCDR_20' ) end [2025-10-06 12:25:23] Production.INFO: ProcessCDR(1,15968754,1,1,2) [2025-10-06 12:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15968754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15968754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15968754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 12:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15968754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15968754', 'tblTempUsageDetail_20' ) start [2025-10-06 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15968754', 'tblTempUsageDetail_20' ) end [2025-10-06 12:25:35] Production.ERROR: pbx prc_insertCDR start [2025-10-06 12:25:38] Production.ERROR: pbx prc_insertCDR end [2025-10-06 12:25:38] Production.INFO: ==13774== Releasing lock... [2025-10-06 12:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 12:25:38] Production.INFO: 73.25 MB #Memory Used# [2025-10-06 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 10:25:05 [end_date_ymd] => 2025-10-06 13:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-06 10:25:05' and `end` < '2025-10-06 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-10-06 13:25:22] Production.INFO: count ==5756 [2025-10-06 13:25:25] Production.ERROR: pbx CDR StartTime 2025-10-06 10:25:05 - End Time 2025-10-06 13:25:05 [2025-10-06 13:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15969001', 'tblTempUsageDetail_20' ) start [2025-10-06 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15969001', 'tblTempUsageDetail_20' ) end [2025-10-06 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15969001', 'tblTempVendorCDR_20' ) start [2025-10-06 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15969001', 'tblTempVendorCDR_20' ) end [2025-10-06 13:25:25] Production.INFO: ProcessCDR(1,15969001,1,1,2) [2025-10-06 13:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15969001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 13:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15969001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 13:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15969001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 13:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15969001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15969001', 'tblTempUsageDetail_20' ) start [2025-10-06 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15969001', 'tblTempUsageDetail_20' ) end [2025-10-06 13:25:35] Production.ERROR: pbx prc_insertCDR start [2025-10-06 13:25:38] Production.ERROR: pbx prc_insertCDR end [2025-10-06 13:25:38] Production.INFO: ==18232== Releasing lock... [2025-10-06 13:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 13:25:38] Production.INFO: 71.25 MB #Memory Used# [2025-10-06 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 11:25:05 [end_date_ymd] => 2025-10-06 14:25:05 [RateCDR] => 1 ) [2025-10-06 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-06 11:25:05' and `end` < '2025-10-06 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-06 14:25:20] Production.INFO: count ==5682 [2025-10-06 14:25:23] Production.ERROR: pbx CDR StartTime 2025-10-06 11:25:05 - End Time 2025-10-06 14:25:05 [2025-10-06 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15969248', 'tblTempUsageDetail_20' ) start [2025-10-06 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15969248', 'tblTempUsageDetail_20' ) end [2025-10-06 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15969248', 'tblTempVendorCDR_20' ) start [2025-10-06 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15969248', 'tblTempVendorCDR_20' ) end [2025-10-06 14:25:23] Production.INFO: ProcessCDR(1,15969248,1,1,2) [2025-10-06 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15969248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 14:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15969248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 14:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15969248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 14:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15969248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15969248', 'tblTempUsageDetail_20' ) start [2025-10-06 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15969248', 'tblTempUsageDetail_20' ) end [2025-10-06 14:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-06 14:25:37] Production.ERROR: pbx prc_insertCDR end [2025-10-06 14:25:37] Production.INFO: ==22670== Releasing lock... [2025-10-06 14:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 14:25:37] Production.INFO: 70.75 MB #Memory Used# [2025-10-06 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 12:25:05 [end_date_ymd] => 2025-10-06 15:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-06 12:25:05' and `end` < '2025-10-06 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-10-06 15:25:20] Production.INFO: count ==5889 [2025-10-06 15:25:23] Production.ERROR: pbx CDR StartTime 2025-10-06 12:25:05 - End Time 2025-10-06 15:25:05 [2025-10-06 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15969495', 'tblTempUsageDetail_20' ) start [2025-10-06 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15969495', 'tblTempUsageDetail_20' ) end [2025-10-06 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15969495', 'tblTempVendorCDR_20' ) start [2025-10-06 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15969495', 'tblTempVendorCDR_20' ) end [2025-10-06 15:25:23] Production.INFO: ProcessCDR(1,15969495,1,1,2) [2025-10-06 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15969495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15969495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15969495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15969495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15969495', 'tblTempUsageDetail_20' ) start [2025-10-06 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15969495', 'tblTempUsageDetail_20' ) end [2025-10-06 15:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-06 15:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-06 15:25:36] Production.INFO: ==26960== Releasing lock... [2025-10-06 15:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 15:25:36] Production.INFO: 72.5 MB #Memory Used# [2025-10-06 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 13:25:05 [end_date_ymd] => 2025-10-06 16:25:05 [RateCDR] => 1 ) [2025-10-06 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-06 13:25:05' and `end` < '2025-10-06 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-06 16:25:22] Production.INFO: count ==5806 [2025-10-06 16:25:25] Production.ERROR: pbx CDR StartTime 2025-10-06 13:25:05 - End Time 2025-10-06 16:25:05 [2025-10-06 16:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15969742', 'tblTempUsageDetail_20' ) start [2025-10-06 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15969742', 'tblTempUsageDetail_20' ) end [2025-10-06 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15969742', 'tblTempVendorCDR_20' ) start [2025-10-06 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15969742', 'tblTempVendorCDR_20' ) end [2025-10-06 16:25:25] Production.INFO: ProcessCDR(1,15969742,1,1,2) [2025-10-06 16:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15969742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 16:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15969742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 16:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15969742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 16:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15969742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 16:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15969742', 'tblTempUsageDetail_20' ) start [2025-10-06 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15969742', 'tblTempUsageDetail_20' ) end [2025-10-06 16:25:36] Production.ERROR: pbx prc_insertCDR start [2025-10-06 16:25:38] Production.ERROR: pbx prc_insertCDR end [2025-10-06 16:25:38] Production.INFO: ==31286== Releasing lock... [2025-10-06 16:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 16:25:38] Production.INFO: 71.75 MB #Memory Used# [2025-10-06 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 14:25:05 [end_date_ymd] => 2025-10-06 17:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-06 14:25:05' and `end` < '2025-10-06 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-10-06 17:25:19] Production.INFO: count ==5181 [2025-10-06 17:25:21] Production.ERROR: pbx CDR StartTime 2025-10-06 14:25:05 - End Time 2025-10-06 17:25:05 [2025-10-06 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15969989', 'tblTempUsageDetail_20' ) start [2025-10-06 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15969989', 'tblTempUsageDetail_20' ) end [2025-10-06 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15969989', 'tblTempVendorCDR_20' ) start [2025-10-06 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15969989', 'tblTempVendorCDR_20' ) end [2025-10-06 17:25:22] Production.INFO: ProcessCDR(1,15969989,1,1,2) [2025-10-06 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15969989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15969989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15969989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15969989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15969989', 'tblTempUsageDetail_20' ) start [2025-10-06 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15969989', 'tblTempUsageDetail_20' ) end [2025-10-06 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-06 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-10-06 17:25:34] Production.INFO: ==3566== Releasing lock... [2025-10-06 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 17:25:34] Production.INFO: 67 MB #Memory Used# [2025-10-06 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 15:25:05 [end_date_ymd] => 2025-10-06 18:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-06 15:25:05' and `end` < '2025-10-06 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-10-06 18:25:18] Production.INFO: count ==4078 [2025-10-06 18:25:20] Production.ERROR: pbx CDR StartTime 2025-10-06 15:25:05 - End Time 2025-10-06 18:25:05 [2025-10-06 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15970236', 'tblTempUsageDetail_20' ) start [2025-10-06 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15970236', 'tblTempUsageDetail_20' ) end [2025-10-06 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15970236', 'tblTempVendorCDR_20' ) start [2025-10-06 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15970236', 'tblTempVendorCDR_20' ) end [2025-10-06 18:25:21] Production.INFO: ProcessCDR(1,15970236,1,1,2) [2025-10-06 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15970236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15970236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15970236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 18:26:11] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15970236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 18:26:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15970236', 'tblTempUsageDetail_20' ) start [2025-10-06 18:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15970236', 'tblTempUsageDetail_20' ) end [2025-10-06 18:26:26] Production.ERROR: pbx prc_insertCDR start [2025-10-06 18:26:27] Production.ERROR: pbx prc_insertCDR end [2025-10-06 18:26:32] Production.INFO: ==8409== Releasing lock... [2025-10-06 18:26:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 18:26:32] Production.INFO: 58.75 MB #Memory Used# [2025-10-06 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 16:25:06 [end_date_ymd] => 2025-10-06 19:25:06 [RateCDR] => 1 ) [2025-10-06 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-06 16:25:06' and `end` < '2025-10-06 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-06 19:25:19] Production.INFO: count ==3123 [2025-10-06 19:25:20] Production.ERROR: pbx CDR StartTime 2025-10-06 16:25:06 - End Time 2025-10-06 19:25:06 [2025-10-06 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15970480', 'tblTempUsageDetail_20' ) start [2025-10-06 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15970480', 'tblTempUsageDetail_20' ) end [2025-10-06 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15970480', 'tblTempVendorCDR_20' ) start [2025-10-06 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15970480', 'tblTempVendorCDR_20' ) end [2025-10-06 19:25:21] Production.INFO: ProcessCDR(1,15970480,1,1,2) [2025-10-06 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15970480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 19:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15970480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 19:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15970480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 19:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15970480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 19:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15970480', 'tblTempUsageDetail_20' ) start [2025-10-06 19:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15970480', 'tblTempUsageDetail_20' ) end [2025-10-06 19:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-06 19:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-06 19:25:32] Production.INFO: ==13112== Releasing lock... [2025-10-06 19:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 19:25:32] Production.INFO: 51.5 MB #Memory Used# [2025-10-06 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 17:25:05 [end_date_ymd] => 2025-10-06 20:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-06 17:25:05' and `end` < '2025-10-06 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-10-06 20:25:17] Production.INFO: count ==2189 [2025-10-06 20:25:18] Production.ERROR: pbx CDR StartTime 2025-10-06 17:25:05 - End Time 2025-10-06 20:25:05 [2025-10-06 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15970727', 'tblTempUsageDetail_20' ) start [2025-10-06 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15970727', 'tblTempUsageDetail_20' ) end [2025-10-06 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15970727', 'tblTempVendorCDR_20' ) start [2025-10-06 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15970727', 'tblTempVendorCDR_20' ) end [2025-10-06 20:25:18] Production.INFO: ProcessCDR(1,15970727,1,1,2) [2025-10-06 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15970727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15970727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15970727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15970727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15970727', 'tblTempUsageDetail_20' ) start [2025-10-06 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15970727', 'tblTempUsageDetail_20' ) end [2025-10-06 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-06 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-06 20:25:28] Production.INFO: ==17974== Releasing lock... [2025-10-06 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 20:25:28] Production.INFO: 44.75 MB #Memory Used# [2025-10-06 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 18:25:05 [end_date_ymd] => 2025-10-06 21:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-06 18:25:05' and `end` < '2025-10-06 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-10-06 21:25:18] Production.INFO: count ==1643 [2025-10-06 21:25:18] Production.ERROR: pbx CDR StartTime 2025-10-06 18:25:05 - End Time 2025-10-06 21:25:05 [2025-10-06 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15970974', 'tblTempUsageDetail_20' ) start [2025-10-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15970974', 'tblTempUsageDetail_20' ) end [2025-10-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15970974', 'tblTempVendorCDR_20' ) start [2025-10-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15970974', 'tblTempVendorCDR_20' ) end [2025-10-06 21:25:19] Production.INFO: ProcessCDR(1,15970974,1,1,2) [2025-10-06 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15970974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15970974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15970974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15970974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15970974', 'tblTempUsageDetail_20' ) start [2025-10-06 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15970974', 'tblTempUsageDetail_20' ) end [2025-10-06 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-06 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-06 21:25:28] Production.INFO: ==23375== Releasing lock... [2025-10-06 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 21:25:28] Production.INFO: 40.5 MB #Memory Used# [2025-10-06 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 19:25:05 [end_date_ymd] => 2025-10-06 22:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-06 19:25:05' and `end` < '2025-10-06 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-10-06 22:25:18] Production.INFO: count ==1092 [2025-10-06 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-06 19:25:05 - End Time 2025-10-06 22:25:05 [2025-10-06 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15971221', 'tblTempUsageDetail_20' ) start [2025-10-06 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15971221', 'tblTempUsageDetail_20' ) end [2025-10-06 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15971221', 'tblTempVendorCDR_20' ) start [2025-10-06 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15971221', 'tblTempVendorCDR_20' ) end [2025-10-06 22:25:18] Production.INFO: ProcessCDR(1,15971221,1,1,2) [2025-10-06 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15971221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15971221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15971221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15971221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15971221', 'tblTempUsageDetail_20' ) start [2025-10-06 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15971221', 'tblTempUsageDetail_20' ) end [2025-10-06 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-06 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-06 22:25:27] Production.INFO: ==27710== Releasing lock... [2025-10-06 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 22:25:27] Production.INFO: 36.75 MB #Memory Used# [2025-10-06 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-06 20:25:05 [end_date_ymd] => 2025-10-06 23:25:05 [RateCDR] => 1 ) [2025-10-06 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-10-06 20:25:05' and `end` < '2025-10-06 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-10-06 23:25:17] Production.INFO: count ==1077 [2025-10-06 23:25:17] Production.ERROR: pbx CDR StartTime 2025-10-06 20:25:05 - End Time 2025-10-06 23:25:05 [2025-10-06 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-06 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15971468', 'tblTempUsageDetail_20' ) start [2025-10-06 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15971468', 'tblTempUsageDetail_20' ) end [2025-10-06 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15971468', 'tblTempVendorCDR_20' ) start [2025-10-06 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15971468', 'tblTempVendorCDR_20' ) end [2025-10-06 23:25:17] Production.INFO: ProcessCDR(1,15971468,1,1,2) [2025-10-06 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15971468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15971468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-06 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15971468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15971468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-06 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15971468', 'tblTempUsageDetail_20' ) start [2025-10-06 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15971468', 'tblTempUsageDetail_20' ) end [2025-10-06 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-06 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-06 23:25:26] Production.INFO: ==649== Releasing lock... [2025-10-06 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-06 23:25:26] Production.INFO: 36.5 MB #Memory Used#