[2025-09-04 00:25:04] Production.INFO: next invoice date [2025-09-04 00:25:04] Production.INFO: 2025-10-04 [2025-09-04 00:25:04] Production.INFO: getdaysdiff [2025-09-04 00:25:04] Production.INFO: +30 [2025-09-04 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (209,16,1,30,30,'RMScheduler',2025-09-04 00:25:04,0,0,,,0) [2025-09-04 00:25:04] Production.INFO: next invoice date [2025-09-04 00:25:04] Production.INFO: 2025-10-04 [2025-09-04 00:25:04] Production.INFO: getdaysdiff [2025-09-04 00:25:04] Production.INFO: +30 [2025-09-04 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (209,13,2,30,30,'RMScheduler',2025-09-04 00:25:04,0,0,,,0) [2025-09-04 00:25:04] Production.INFO: next invoice date [2025-09-04 00:25:04] Production.INFO: 2025-10-04 [2025-09-04 00:25:04] Production.INFO: getdaysdiff [2025-09-04 00:25:04] Production.INFO: +30 [2025-09-04 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (213,11,1,30,30,'RMScheduler',2025-09-04 00:25:04,0,0,,,0) [2025-09-04 00:25:04] Production.INFO: next invoice date [2025-09-04 00:25:04] Production.INFO: 2025-10-04 [2025-09-04 00:25:04] Production.INFO: getdaysdiff [2025-09-04 00:25:04] Production.INFO: +30 [2025-09-04 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (213,13,2,30,30,'RMScheduler',2025-09-04 00:25:04,0,0,,,0) [2025-09-04 00:25:04] Production.INFO: next invoice date [2025-09-04 00:25:04] Production.INFO: 2025-10-04 [2025-09-04 00:25:04] Production.INFO: getdaysdiff [2025-09-04 00:25:04] Production.INFO: +30 [2025-09-04 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (213,16,1,30,30,'RMScheduler',2025-09-04 00:25:04,1,0,,,0) [2025-09-04 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 21:25:05 [end_date_ymd] => 2025-09-04 00:25:05 [RateCDR] => 1 ) [2025-09-04 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-03 21:25:05' and `end` < '2025-09-04 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-04 00:25:18] Production.INFO: count ==468 [2025-09-04 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-03 21:25:05 - End Time 2025-09-04 00:25:05 [2025-09-04 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15776113', 'tblTempUsageDetail_20' ) start [2025-09-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15776113', 'tblTempUsageDetail_20' ) end [2025-09-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15776113', 'tblTempVendorCDR_20' ) start [2025-09-04 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15776113', 'tblTempVendorCDR_20' ) end [2025-09-04 00:25:18] Production.INFO: ProcessCDR(1,15776113,1,1,2) [2025-09-04 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15776113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15776113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15776113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15776113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15776113', 'tblTempUsageDetail_20' ) start [2025-09-04 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15776113', 'tblTempUsageDetail_20' ) end [2025-09-04 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-04 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-04 00:25:27] Production.INFO: ==21400== Releasing lock... [2025-09-04 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 00:25:27] Production.INFO: 35.5 MB #Memory Used# [2025-09-04 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 22:25:05 [end_date_ymd] => 2025-09-04 01:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-03 22:25:05' and `end` < '2025-09-04 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-09-04 01:25:18] Production.INFO: count ==422 [2025-09-04 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-03 22:25:05 - End Time 2025-09-04 01:25:05 [2025-09-04 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15776360', 'tblTempUsageDetail_20' ) start [2025-09-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15776360', 'tblTempUsageDetail_20' ) end [2025-09-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15776360', 'tblTempVendorCDR_20' ) start [2025-09-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15776360', 'tblTempVendorCDR_20' ) end [2025-09-04 01:25:18] Production.INFO: ProcessCDR(1,15776360,1,1,2) [2025-09-04 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15776360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15776360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15776360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15776360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15776360', 'tblTempUsageDetail_20' ) start [2025-09-04 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15776360', 'tblTempUsageDetail_20' ) end [2025-09-04 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-04 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-04 01:25:25] Production.INFO: ==26599== Releasing lock... [2025-09-04 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 01:25:25] Production.INFO: 32 MB #Memory Used# [2025-09-04 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-03 23:25:05 [end_date_ymd] => 2025-09-04 02:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-03 23:25:05' and `end` < '2025-09-04 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-09-04 02:25:17] Production.INFO: count ==448 [2025-09-04 02:25:17] Production.ERROR: pbx CDR StartTime 2025-09-03 23:25:05 - End Time 2025-09-04 02:25:05 [2025-09-04 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15776607', 'tblTempUsageDetail_20' ) start [2025-09-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15776607', 'tblTempUsageDetail_20' ) end [2025-09-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15776607', 'tblTempVendorCDR_20' ) start [2025-09-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15776607', 'tblTempVendorCDR_20' ) end [2025-09-04 02:25:17] Production.INFO: ProcessCDR(1,15776607,1,1,2) [2025-09-04 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15776607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15776607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15776607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15776607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15776607', 'tblTempUsageDetail_20' ) start [2025-09-04 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15776607', 'tblTempUsageDetail_20' ) end [2025-09-04 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-04 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-04 02:25:26] Production.INFO: ==31080== Releasing lock... [2025-09-04 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 02:25:26] Production.INFO: 32.25 MB #Memory Used# [2025-09-04 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 00:25:05 [end_date_ymd] => 2025-09-04 03:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 00:25:05' and `end` < '2025-09-04 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-09-04 03:25:17] Production.INFO: count ==354 [2025-09-04 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-04 00:25:05 - End Time 2025-09-04 03:25:05 [2025-09-04 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15776854', 'tblTempUsageDetail_20' ) start [2025-09-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15776854', 'tblTempUsageDetail_20' ) end [2025-09-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15776854', 'tblTempVendorCDR_20' ) start [2025-09-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15776854', 'tblTempVendorCDR_20' ) end [2025-09-04 03:25:17] Production.INFO: ProcessCDR(1,15776854,1,1,2) [2025-09-04 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15776854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15776854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15776854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15776854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15776854', 'tblTempUsageDetail_20' ) start [2025-09-04 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15776854', 'tblTempUsageDetail_20' ) end [2025-09-04 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-04 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-04 03:25:25] Production.INFO: ==3102== Releasing lock... [2025-09-04 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 03:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-09-04 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 01:25:06 [end_date_ymd] => 2025-09-04 04:25:06 [RateCDR] => 1 ) [2025-09-04 04: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-09-04 01:25:06' and `end` < '2025-09-04 04: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-09-04 04:25:18] Production.INFO: count ==282 [2025-09-04 04:25:18] Production.ERROR: pbx CDR StartTime 2025-09-04 01:25:06 - End Time 2025-09-04 04:25:06 [2025-09-04 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15777102', 'tblTempUsageDetail_20' ) start [2025-09-04 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15777102', 'tblTempUsageDetail_20' ) end [2025-09-04 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15777102', 'tblTempVendorCDR_20' ) start [2025-09-04 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15777102', 'tblTempVendorCDR_20' ) end [2025-09-04 04:25:18] Production.INFO: ProcessCDR(1,15777102,1,1,2) [2025-09-04 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15777102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15777102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15777102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15777102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15777102', 'tblTempUsageDetail_20' ) start [2025-09-04 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15777102', 'tblTempUsageDetail_20' ) end [2025-09-04 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-04 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-04 04:25:25] Production.INFO: ==7579== Releasing lock... [2025-09-04 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 04:25:25] Production.INFO: 30.75 MB #Memory Used# [2025-09-04 05:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 02:25:04 [end_date_ymd] => 2025-09-04 05:25:04 [RateCDR] => 1 ) [2025-09-04 05: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-09-04 02:25:04' and `end` < '2025-09-04 05: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-09-04 05:25:16] Production.INFO: count ==166 [2025-09-04 05:25:16] Production.ERROR: pbx CDR StartTime 2025-09-04 02:25:04 - End Time 2025-09-04 05:25:04 [2025-09-04 05:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15777350', 'tblTempUsageDetail_20' ) start [2025-09-04 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15777350', 'tblTempUsageDetail_20' ) end [2025-09-04 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15777350', 'tblTempVendorCDR_20' ) start [2025-09-04 05:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15777350', 'tblTempVendorCDR_20' ) end [2025-09-04 05:25:16] Production.INFO: ProcessCDR(1,15777350,1,1,2) [2025-09-04 05:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15777350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15777350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15777350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15777350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15777350', 'tblTempUsageDetail_20' ) start [2025-09-04 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15777350', 'tblTempUsageDetail_20' ) end [2025-09-04 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-09-04 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-09-04 05:25:22] Production.INFO: ==12627== Releasing lock... [2025-09-04 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 05:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-09-04 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 03:25:06 [end_date_ymd] => 2025-09-04 06:25:06 [RateCDR] => 1 ) [2025-09-04 06:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-04 03:25:06' and `end` < '2025-09-04 06:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-04 06:25:18] Production.INFO: count ==141 [2025-09-04 06:25:18] Production.ERROR: pbx CDR StartTime 2025-09-04 03:25:06 - End Time 2025-09-04 06:25:06 [2025-09-04 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15777597', 'tblTempUsageDetail_20' ) start [2025-09-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15777597', 'tblTempUsageDetail_20' ) end [2025-09-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15777597', 'tblTempVendorCDR_20' ) start [2025-09-04 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15777597', 'tblTempVendorCDR_20' ) end [2025-09-04 06:25:18] Production.INFO: ProcessCDR(1,15777597,1,1,2) [2025-09-04 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15777597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15777597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15777597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15777597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15777597', 'tblTempUsageDetail_20' ) start [2025-09-04 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15777597', 'tblTempUsageDetail_20' ) end [2025-09-04 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-04 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-04 06:25:26] Production.INFO: ==17038== Releasing lock... [2025-09-04 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 06:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-09-04 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 04:25:05 [end_date_ymd] => 2025-09-04 07:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 04:25:05' and `end` < '2025-09-04 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-09-04 07:25:17] Production.INFO: count ==118 [2025-09-04 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-04 04:25:05 - End Time 2025-09-04 07:25:05 [2025-09-04 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15777844', 'tblTempUsageDetail_20' ) start [2025-09-04 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15777844', 'tblTempUsageDetail_20' ) end [2025-09-04 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15777844', 'tblTempVendorCDR_20' ) start [2025-09-04 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15777844', 'tblTempVendorCDR_20' ) end [2025-09-04 07:25:17] Production.INFO: ProcessCDR(1,15777844,1,1,2) [2025-09-04 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15777844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15777844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15777844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15777844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15777844', 'tblTempUsageDetail_20' ) start [2025-09-04 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15777844', 'tblTempUsageDetail_20' ) end [2025-09-04 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-04 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-04 07:25:25] Production.INFO: ==21448== Releasing lock... [2025-09-04 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 07:25:25] Production.INFO: 28.75 MB #Memory Used# [2025-09-04 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 05:25:06 [end_date_ymd] => 2025-09-04 08:25:06 [RateCDR] => 1 ) [2025-09-04 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-04 05:25:06' and `end` < '2025-09-04 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-04 08:25:18] Production.INFO: count ==333 [2025-09-04 08:25:18] Production.ERROR: pbx CDR StartTime 2025-09-04 05:25:06 - End Time 2025-09-04 08:25:06 [2025-09-04 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15778091', 'tblTempUsageDetail_20' ) start [2025-09-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15778091', 'tblTempUsageDetail_20' ) end [2025-09-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15778091', 'tblTempVendorCDR_20' ) start [2025-09-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15778091', 'tblTempVendorCDR_20' ) end [2025-09-04 08:25:18] Production.INFO: ProcessCDR(1,15778091,1,1,2) [2025-09-04 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15778091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15778091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15778091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15778091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15778091', 'tblTempUsageDetail_20' ) start [2025-09-04 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15778091', 'tblTempUsageDetail_20' ) end [2025-09-04 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-04 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-04 08:25:26] Production.INFO: ==26332== Releasing lock... [2025-09-04 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 08:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-09-04 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 06:25:05 [end_date_ymd] => 2025-09-04 09:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 06:25:05' and `end` < '2025-09-04 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-09-04 09:25:18] Production.INFO: count ==1233 [2025-09-04 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-04 06:25:05 - End Time 2025-09-04 09:25:05 [2025-09-04 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15778338', 'tblTempUsageDetail_20' ) start [2025-09-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15778338', 'tblTempUsageDetail_20' ) end [2025-09-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15778338', 'tblTempVendorCDR_20' ) start [2025-09-04 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15778338', 'tblTempVendorCDR_20' ) end [2025-09-04 09:25:18] Production.INFO: ProcessCDR(1,15778338,1,1,2) [2025-09-04 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15778338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15778338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15778338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15778338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15778338', 'tblTempUsageDetail_20' ) start [2025-09-04 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15778338', 'tblTempUsageDetail_20' ) end [2025-09-04 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-04 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-04 09:25:27] Production.INFO: ==30689== Releasing lock... [2025-09-04 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 09:25:27] Production.INFO: 37.5 MB #Memory Used# [2025-09-04 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 07:25:05 [end_date_ymd] => 2025-09-04 10:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 07:25:05' and `end` < '2025-09-04 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-09-04 10:25:21] Production.INFO: count ==2821 [2025-09-04 10:25:22] Production.ERROR: pbx CDR StartTime 2025-09-04 07:25:05 - End Time 2025-09-04 10:25:05 [2025-09-04 10:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15778585', 'tblTempUsageDetail_20' ) start [2025-09-04 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15778585', 'tblTempUsageDetail_20' ) end [2025-09-04 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15778585', 'tblTempVendorCDR_20' ) start [2025-09-04 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15778585', 'tblTempVendorCDR_20' ) end [2025-09-04 10:25:22] Production.INFO: ProcessCDR(1,15778585,1,1,2) [2025-09-04 10:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15778585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15778585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15778585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15778585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15778585', 'tblTempUsageDetail_20' ) start [2025-09-04 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15778585', 'tblTempUsageDetail_20' ) end [2025-09-04 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-04 10:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-04 10:25:33] Production.INFO: ==2680== Releasing lock... [2025-09-04 10:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 10:25:33] Production.INFO: 50.5 MB #Memory Used# [2025-09-04 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 08:25:05 [end_date_ymd] => 2025-09-04 11:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 08:25:05' and `end` < '2025-09-04 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-09-04 11:25:19] Production.INFO: count ==4444 [2025-09-04 11:25:21] Production.ERROR: pbx CDR StartTime 2025-09-04 08:25:05 - End Time 2025-09-04 11:25:05 [2025-09-04 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15778832', 'tblTempUsageDetail_20' ) start [2025-09-04 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15778832', 'tblTempUsageDetail_20' ) end [2025-09-04 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15778832', 'tblTempVendorCDR_20' ) start [2025-09-04 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15778832', 'tblTempVendorCDR_20' ) end [2025-09-04 11:25:21] Production.INFO: ProcessCDR(1,15778832,1,1,2) [2025-09-04 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15778832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15778832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15778832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15778832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15778832', 'tblTempUsageDetail_20' ) start [2025-09-04 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15778832', 'tblTempUsageDetail_20' ) end [2025-09-04 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-04 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-04 11:25:34] Production.INFO: ==7295== Releasing lock... [2025-09-04 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 11:25:34] Production.INFO: 61.5 MB #Memory Used# [2025-09-04 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 09:25:05 [end_date_ymd] => 2025-09-04 12:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 09:25:05' and `end` < '2025-09-04 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-09-04 12:25:18] Production.INFO: count ==5296 [2025-09-04 12:25:20] Production.ERROR: pbx CDR StartTime 2025-09-04 09:25:05 - End Time 2025-09-04 12:25:05 [2025-09-04 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15779079', 'tblTempUsageDetail_20' ) start [2025-09-04 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15779079', 'tblTempUsageDetail_20' ) end [2025-09-04 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15779079', 'tblTempVendorCDR_20' ) start [2025-09-04 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15779079', 'tblTempVendorCDR_20' ) end [2025-09-04 12:25:21] Production.INFO: ProcessCDR(1,15779079,1,1,2) [2025-09-04 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15779079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15779079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15779079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15779079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15779079', 'tblTempUsageDetail_20' ) start [2025-09-04 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15779079', 'tblTempUsageDetail_20' ) end [2025-09-04 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-04 12:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-04 12:25:32] Production.INFO: ==11604== Releasing lock... [2025-09-04 12:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 12:25:32] Production.INFO: 67.75 MB #Memory Used# [2025-09-04 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 10:25:05 [end_date_ymd] => 2025-09-04 13:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 10:25:05' and `end` < '2025-09-04 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-09-04 13:25:19] Production.INFO: count ==5894 [2025-09-04 13:25:22] Production.ERROR: pbx CDR StartTime 2025-09-04 10:25:05 - End Time 2025-09-04 13:25:05 [2025-09-04 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15779326', 'tblTempUsageDetail_20' ) start [2025-09-04 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15779326', 'tblTempUsageDetail_20' ) end [2025-09-04 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15779326', 'tblTempVendorCDR_20' ) start [2025-09-04 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15779326', 'tblTempVendorCDR_20' ) end [2025-09-04 13:25:22] Production.INFO: ProcessCDR(1,15779326,1,1,2) [2025-09-04 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15779326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15779326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15779326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15779326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15779326', 'tblTempUsageDetail_20' ) start [2025-09-04 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15779326', 'tblTempUsageDetail_20' ) end [2025-09-04 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-04 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-04 13:25:35] Production.INFO: ==16109== Releasing lock... [2025-09-04 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 13:25:35] Production.INFO: 72.5 MB #Memory Used# [2025-09-04 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 11:25:05 [end_date_ymd] => 2025-09-04 14:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 11:25:05' and `end` < '2025-09-04 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-09-04 14:25:19] Production.INFO: count ==5696 [2025-09-04 14:25:22] Production.ERROR: pbx CDR StartTime 2025-09-04 11:25:05 - End Time 2025-09-04 14:25:05 [2025-09-04 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15779573', 'tblTempUsageDetail_20' ) start [2025-09-04 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15779573', 'tblTempUsageDetail_20' ) end [2025-09-04 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15779573', 'tblTempVendorCDR_20' ) start [2025-09-04 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15779573', 'tblTempVendorCDR_20' ) end [2025-09-04 14:25:22] Production.INFO: ProcessCDR(1,15779573,1,1,2) [2025-09-04 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15779573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15779573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15779573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15779573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15779573', 'tblTempUsageDetail_20' ) start [2025-09-04 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15779573', 'tblTempUsageDetail_20' ) end [2025-09-04 14:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-04 14:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-04 14:25:35] Production.INFO: ==20738== Releasing lock... [2025-09-04 14:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 14:25:35] Production.INFO: 71 MB #Memory Used# [2025-09-04 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 12:25:06 [end_date_ymd] => 2025-09-04 15:25:06 [RateCDR] => 1 ) [2025-09-04 15: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-09-04 12:25:06' and `end` < '2025-09-04 15: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-09-04 15:25:21] Production.INFO: count ==5371 [2025-09-04 15:25:24] Production.ERROR: pbx CDR StartTime 2025-09-04 12:25:06 - End Time 2025-09-04 15:25:06 [2025-09-04 15:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15779820', 'tblTempUsageDetail_20' ) start [2025-09-04 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15779820', 'tblTempUsageDetail_20' ) end [2025-09-04 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15779820', 'tblTempVendorCDR_20' ) start [2025-09-04 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15779820', 'tblTempVendorCDR_20' ) end [2025-09-04 15:25:24] Production.INFO: ProcessCDR(1,15779820,1,1,2) [2025-09-04 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15779820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15779820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15779820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15779820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15779820', 'tblTempUsageDetail_20' ) start [2025-09-04 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15779820', 'tblTempUsageDetail_20' ) end [2025-09-04 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-04 15:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-04 15:25:34] Production.INFO: ==25088== Releasing lock... [2025-09-04 15:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 15:25:34] Production.INFO: 68.5 MB #Memory Used# [2025-09-04 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 13:25:06 [end_date_ymd] => 2025-09-04 16:25:06 [RateCDR] => 1 ) [2025-09-04 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-09-04 13:25:06' and `end` < '2025-09-04 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-09-04 16:25:19] Production.INFO: count ==5067 [2025-09-04 16:25:22] Production.ERROR: pbx CDR StartTime 2025-09-04 13:25:06 - End Time 2025-09-04 16:25:06 [2025-09-04 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15780067', 'tblTempUsageDetail_20' ) start [2025-09-04 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15780067', 'tblTempUsageDetail_20' ) end [2025-09-04 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15780067', 'tblTempVendorCDR_20' ) start [2025-09-04 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15780067', 'tblTempVendorCDR_20' ) end [2025-09-04 16:25:22] Production.INFO: ProcessCDR(1,15780067,1,1,2) [2025-09-04 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15780067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15780067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15780067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15780067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15780067', 'tblTempUsageDetail_20' ) start [2025-09-04 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15780067', 'tblTempUsageDetail_20' ) end [2025-09-04 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-04 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-04 16:25:35] Production.INFO: ==29656== Releasing lock... [2025-09-04 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 16:25:35] Production.INFO: 66.25 MB #Memory Used# [2025-09-04 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 14:25:05 [end_date_ymd] => 2025-09-04 17:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 14:25:05' and `end` < '2025-09-04 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-09-04 17:25:19] Production.INFO: count ==4780 [2025-09-04 17:25:22] Production.ERROR: pbx CDR StartTime 2025-09-04 14:25:05 - End Time 2025-09-04 17:25:05 [2025-09-04 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15780314', 'tblTempUsageDetail_20' ) start [2025-09-04 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15780314', 'tblTempUsageDetail_20' ) end [2025-09-04 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15780314', 'tblTempVendorCDR_20' ) start [2025-09-04 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15780314', 'tblTempVendorCDR_20' ) end [2025-09-04 17:25:22] Production.INFO: ProcessCDR(1,15780314,1,1,2) [2025-09-04 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15780314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15780314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15780314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15780314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15780314', 'tblTempUsageDetail_20' ) start [2025-09-04 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15780314', 'tblTempUsageDetail_20' ) end [2025-09-04 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-04 17:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-04 17:25:33] Production.INFO: ==1814== Releasing lock... [2025-09-04 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 17:25:33] Production.INFO: 64 MB #Memory Used# [2025-09-04 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 15:25:05 [end_date_ymd] => 2025-09-04 18:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 15:25:05' and `end` < '2025-09-04 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-09-04 18:25:18] Production.INFO: count ==4177 [2025-09-04 18:25:20] Production.ERROR: pbx CDR StartTime 2025-09-04 15:25:05 - End Time 2025-09-04 18:25:05 [2025-09-04 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15780561', 'tblTempUsageDetail_20' ) start [2025-09-04 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15780561', 'tblTempUsageDetail_20' ) end [2025-09-04 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15780561', 'tblTempVendorCDR_20' ) start [2025-09-04 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15780561', 'tblTempVendorCDR_20' ) end [2025-09-04 18:25:20] Production.INFO: ProcessCDR(1,15780561,1,1,2) [2025-09-04 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15780561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15780561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15780561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15780561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15780561', 'tblTempUsageDetail_20' ) start [2025-09-04 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15780561', 'tblTempUsageDetail_20' ) end [2025-09-04 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-04 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-04 18:25:30] Production.INFO: ==6310== Releasing lock... [2025-09-04 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 18:25:30] Production.INFO: 59.5 MB #Memory Used# [2025-09-04 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 16:25:05 [end_date_ymd] => 2025-09-04 19:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 16:25:05' and `end` < '2025-09-04 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-09-04 19:25:18] Production.INFO: count ==2976 [2025-09-04 19:25:19] Production.ERROR: pbx CDR StartTime 2025-09-04 16:25:05 - End Time 2025-09-04 19:25:05 [2025-09-04 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15780805', 'tblTempUsageDetail_20' ) start [2025-09-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15780805', 'tblTempUsageDetail_20' ) end [2025-09-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15780805', 'tblTempVendorCDR_20' ) start [2025-09-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15780805', 'tblTempVendorCDR_20' ) end [2025-09-04 19:25:19] Production.INFO: ProcessCDR(1,15780805,1,1,2) [2025-09-04 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15780805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15780805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15780805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15780805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15780805', 'tblTempUsageDetail_20' ) start [2025-09-04 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15780805', 'tblTempUsageDetail_20' ) end [2025-09-04 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-04 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-04 19:25:28] Production.INFO: ==10674== Releasing lock... [2025-09-04 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 19:25:28] Production.INFO: 50.5 MB #Memory Used# [2025-09-04 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 17:25:05 [end_date_ymd] => 2025-09-04 20:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 17:25:05' and `end` < '2025-09-04 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-09-04 20:25:17] Production.INFO: count ==2087 [2025-09-04 20:25:18] Production.ERROR: pbx CDR StartTime 2025-09-04 17:25:05 - End Time 2025-09-04 20:25:05 [2025-09-04 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15781052', 'tblTempUsageDetail_20' ) start [2025-09-04 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15781052', 'tblTempUsageDetail_20' ) end [2025-09-04 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15781052', 'tblTempVendorCDR_20' ) start [2025-09-04 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15781052', 'tblTempVendorCDR_20' ) end [2025-09-04 20:25:18] Production.INFO: ProcessCDR(1,15781052,1,1,2) [2025-09-04 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15781052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15781052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15781052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15781052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15781052', 'tblTempUsageDetail_20' ) start [2025-09-04 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15781052', 'tblTempUsageDetail_20' ) end [2025-09-04 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-04 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-04 20:25:27] Production.INFO: ==14984== Releasing lock... [2025-09-04 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 20:25:27] Production.INFO: 43.75 MB #Memory Used# [2025-09-04 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 18:25:06 [end_date_ymd] => 2025-09-04 21:25:06 [RateCDR] => 1 ) [2025-09-04 21: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-09-04 18:25:06' and `end` < '2025-09-04 21: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-09-04 21:25:18] Production.INFO: count ==1566 [2025-09-04 21:25:19] Production.ERROR: pbx CDR StartTime 2025-09-04 18:25:06 - End Time 2025-09-04 21:25:06 [2025-09-04 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15781299', 'tblTempUsageDetail_20' ) start [2025-09-04 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15781299', 'tblTempUsageDetail_20' ) end [2025-09-04 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15781299', 'tblTempVendorCDR_20' ) start [2025-09-04 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15781299', 'tblTempVendorCDR_20' ) end [2025-09-04 21:25:19] Production.INFO: ProcessCDR(1,15781299,1,1,2) [2025-09-04 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15781299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15781299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15781299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15781299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15781299', 'tblTempUsageDetail_20' ) start [2025-09-04 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15781299', 'tblTempUsageDetail_20' ) end [2025-09-04 21:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-04 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-04 21:25:28] Production.INFO: ==19517== Releasing lock... [2025-09-04 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 21:25:28] Production.INFO: 40.25 MB #Memory Used# [2025-09-04 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 19:25:05 [end_date_ymd] => 2025-09-04 22:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 19:25:05' and `end` < '2025-09-04 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-09-04 22:25:18] Production.INFO: count ==1166 [2025-09-04 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-04 19:25:05 - End Time 2025-09-04 22:25:05 [2025-09-04 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15781546', 'tblTempUsageDetail_20' ) start [2025-09-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15781546', 'tblTempUsageDetail_20' ) end [2025-09-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15781546', 'tblTempVendorCDR_20' ) start [2025-09-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15781546', 'tblTempVendorCDR_20' ) end [2025-09-04 22:25:18] Production.INFO: ProcessCDR(1,15781546,1,1,2) [2025-09-04 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15781546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15781546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15781546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15781546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15781546', 'tblTempUsageDetail_20' ) start [2025-09-04 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15781546', 'tblTempUsageDetail_20' ) end [2025-09-04 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-04 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-04 22:25:26] Production.INFO: ==24701== Releasing lock... [2025-09-04 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 22:25:26] Production.INFO: 37.5 MB #Memory Used# [2025-09-04 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 20:25:05 [end_date_ymd] => 2025-09-04 23:25:05 [RateCDR] => 1 ) [2025-09-04 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-09-04 20:25:05' and `end` < '2025-09-04 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-09-04 23:25:17] Production.INFO: count ==881 [2025-09-04 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-04 20:25:05 - End Time 2025-09-04 23:25:05 [2025-09-04 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15781793', 'tblTempUsageDetail_20' ) start [2025-09-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15781793', 'tblTempUsageDetail_20' ) end [2025-09-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15781793', 'tblTempVendorCDR_20' ) start [2025-09-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15781793', 'tblTempVendorCDR_20' ) end [2025-09-04 23:25:18] Production.INFO: ProcessCDR(1,15781793,1,1,2) [2025-09-04 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15781793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15781793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-04 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15781793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15781793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-04 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15781793', 'tblTempUsageDetail_20' ) start [2025-09-04 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15781793', 'tblTempUsageDetail_20' ) end [2025-09-04 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-04 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-04 23:25:26] Production.INFO: ==28939== Releasing lock... [2025-09-04 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-04 23:25:26] Production.INFO: 34.75 MB #Memory Used#