[2025-09-29 00:25:04] Production.INFO: next invoice date [2025-09-29 00:25:04] Production.INFO: 2025-10-29 [2025-09-29 00:25:04] Production.INFO: getdaysdiff [2025-09-29 00:25:04] Production.INFO: +30 [2025-09-29 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (1,11,1,30,30,'RMScheduler',2025-09-29 00:25:04,1,0,,,0) [2025-09-29 00:25:04] Production.INFO: next invoice date [2025-09-29 00:25:04] Production.INFO: 2025-10-29 [2025-09-29 00:25:04] Production.INFO: getdaysdiff [2025-09-29 00:25:04] Production.INFO: +30 [2025-09-29 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (1,13,2,30,30,'RMScheduler',2025-09-29 00:25:04,1,0,,,0) [2025-09-29 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 21:25:05 [end_date_ymd] => 2025-09-29 00:25:05 [RateCDR] => 1 ) [2025-09-29 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-28 21:25:05' and `end` < '2025-09-29 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-29 00:25:18] Production.INFO: count ==477 [2025-09-29 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-28 21:25:05 - End Time 2025-09-29 00:25:05 [2025-09-29 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15924294', 'tblTempUsageDetail_20' ) start [2025-09-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15924294', 'tblTempUsageDetail_20' ) end [2025-09-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15924294', 'tblTempVendorCDR_20' ) start [2025-09-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15924294', 'tblTempVendorCDR_20' ) end [2025-09-29 00:25:18] Production.INFO: ProcessCDR(1,15924294,1,1,2) [2025-09-29 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15924294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15924294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15924294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15924294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15924294', 'tblTempUsageDetail_20' ) start [2025-09-29 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15924294', 'tblTempUsageDetail_20' ) end [2025-09-29 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-29 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-29 00:25:28] Production.INFO: ==5064== Releasing lock... [2025-09-29 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 00:25:28] Production.INFO: 35.5 MB #Memory Used# [2025-09-29 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 22:25:05 [end_date_ymd] => 2025-09-29 01:25:05 [RateCDR] => 1 ) [2025-09-29 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-28 22:25:05' and `end` < '2025-09-29 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-29 01:25:18] Production.INFO: count ==457 [2025-09-29 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-28 22:25:05 - End Time 2025-09-29 01:25:05 [2025-09-29 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15924541', 'tblTempUsageDetail_20' ) start [2025-09-29 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15924541', 'tblTempUsageDetail_20' ) end [2025-09-29 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15924541', 'tblTempVendorCDR_20' ) start [2025-09-29 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15924541', 'tblTempVendorCDR_20' ) end [2025-09-29 01:25:18] Production.INFO: ProcessCDR(1,15924541,1,1,2) [2025-09-29 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15924541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15924541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15924541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15924541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15924541', 'tblTempUsageDetail_20' ) start [2025-09-29 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15924541', 'tblTempUsageDetail_20' ) end [2025-09-29 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-29 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-29 01:25:26] Production.INFO: ==9674== Releasing lock... [2025-09-29 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 01:25:26] Production.INFO: 32.25 MB #Memory Used# [2025-09-29 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-28 23:25:05 [end_date_ymd] => 2025-09-29 02:25:05 [RateCDR] => 1 ) [2025-09-29 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-28 23:25:05' and `end` < '2025-09-29 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-29 02:25:18] Production.INFO: count ==406 [2025-09-29 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-28 23:25:05 - End Time 2025-09-29 02:25:05 [2025-09-29 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15924788', 'tblTempUsageDetail_20' ) start [2025-09-29 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15924788', 'tblTempUsageDetail_20' ) end [2025-09-29 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15924788', 'tblTempVendorCDR_20' ) start [2025-09-29 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15924788', 'tblTempVendorCDR_20' ) end [2025-09-29 02:25:18] Production.INFO: ProcessCDR(1,15924788,1,1,2) [2025-09-29 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15924788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15924788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15924788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15924788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15924788', 'tblTempUsageDetail_20' ) start [2025-09-29 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15924788', 'tblTempUsageDetail_20' ) end [2025-09-29 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-29 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-29 02:25:26] Production.INFO: ==14777== Releasing lock... [2025-09-29 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 02:25:26] Production.INFO: 31.5 MB #Memory Used# [2025-09-29 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 00:25:06 [end_date_ymd] => 2025-09-29 03:25:06 [RateCDR] => 1 ) [2025-09-29 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-09-29 00:25:06' and `end` < '2025-09-29 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-09-29 03:25:18] Production.INFO: count ==333 [2025-09-29 03:25:18] Production.ERROR: pbx CDR StartTime 2025-09-29 00:25:06 - End Time 2025-09-29 03:25:06 [2025-09-29 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15925035', 'tblTempUsageDetail_20' ) start [2025-09-29 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15925035', 'tblTempUsageDetail_20' ) end [2025-09-29 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15925035', 'tblTempVendorCDR_20' ) start [2025-09-29 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15925035', 'tblTempVendorCDR_20' ) end [2025-09-29 03:25:18] Production.INFO: ProcessCDR(1,15925035,1,1,2) [2025-09-29 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15925035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15925035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15925035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15925035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15925035', 'tblTempUsageDetail_20' ) start [2025-09-29 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15925035', 'tblTempUsageDetail_20' ) end [2025-09-29 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-29 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-29 03:25:23] Production.INFO: ==19323== Releasing lock... [2025-09-29 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 03:25:23] Production.INFO: 30.75 MB #Memory Used# [2025-09-29 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 01:25:05 [end_date_ymd] => 2025-09-29 04:25:05 [RateCDR] => 1 ) [2025-09-29 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-09-29 01:25:05' and `end` < '2025-09-29 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-09-29 04:25:17] Production.INFO: count ==258 [2025-09-29 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-29 01:25:05 - End Time 2025-09-29 04:25:05 [2025-09-29 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15925283', 'tblTempUsageDetail_20' ) start [2025-09-29 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15925283', 'tblTempUsageDetail_20' ) end [2025-09-29 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15925283', 'tblTempVendorCDR_20' ) start [2025-09-29 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15925283', 'tblTempVendorCDR_20' ) end [2025-09-29 04:25:17] Production.INFO: ProcessCDR(1,15925283,1,1,2) [2025-09-29 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15925283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15925283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15925283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15925283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15925283', 'tblTempUsageDetail_20' ) start [2025-09-29 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15925283', 'tblTempUsageDetail_20' ) end [2025-09-29 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-29 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-29 04:25:25] Production.INFO: ==23749== Releasing lock... [2025-09-29 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 04:25:25] Production.INFO: 30.5 MB #Memory Used# [2025-09-29 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 02:25:05 [end_date_ymd] => 2025-09-29 05:25:05 [RateCDR] => 1 ) [2025-09-29 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-29 02:25:05' and `end` < '2025-09-29 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-29 05:25:17] Production.INFO: count ==211 [2025-09-29 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-29 02:25:05 - End Time 2025-09-29 05:25:05 [2025-09-29 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15925531', 'tblTempUsageDetail_20' ) start [2025-09-29 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15925531', 'tblTempUsageDetail_20' ) end [2025-09-29 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15925531', 'tblTempVendorCDR_20' ) start [2025-09-29 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15925531', 'tblTempVendorCDR_20' ) end [2025-09-29 05:25:17] Production.INFO: ProcessCDR(1,15925531,1,1,2) [2025-09-29 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15925531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15925531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15925531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15925531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15925531', 'tblTempUsageDetail_20' ) start [2025-09-29 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15925531', 'tblTempUsageDetail_20' ) end [2025-09-29 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-29 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-29 05:25:25] Production.INFO: ==28127== Releasing lock... [2025-09-29 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 05:25:25] Production.INFO: 29.75 MB #Memory Used# [2025-09-29 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 03:25:04 [end_date_ymd] => 2025-09-29 06:25:04 [RateCDR] => 1 ) [2025-09-29 06: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-29 03:25:04' and `end` < '2025-09-29 06: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-29 06:25:16] Production.INFO: count ==209 [2025-09-29 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-29 03:25:04 - End Time 2025-09-29 06:25:04 [2025-09-29 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15925778', 'tblTempUsageDetail_20' ) start [2025-09-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15925778', 'tblTempUsageDetail_20' ) end [2025-09-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15925778', 'tblTempVendorCDR_20' ) start [2025-09-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15925778', 'tblTempVendorCDR_20' ) end [2025-09-29 06:25:17] Production.INFO: ProcessCDR(1,15925778,1,1,2) [2025-09-29 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15925778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15925778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15925778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15925778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15925778', 'tblTempUsageDetail_20' ) start [2025-09-29 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15925778', 'tblTempUsageDetail_20' ) end [2025-09-29 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-29 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-29 06:25:25] Production.INFO: ==32507== Releasing lock... [2025-09-29 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 06:25:25] Production.INFO: 29.75 MB #Memory Used# [2025-09-29 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 04:25:05 [end_date_ymd] => 2025-09-29 07:25:05 [RateCDR] => 1 ) [2025-09-29 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-29 04:25:05' and `end` < '2025-09-29 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-29 07:25:17] Production.INFO: count ==155 [2025-09-29 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-29 04:25:05 - End Time 2025-09-29 07:25:05 [2025-09-29 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15926025', 'tblTempUsageDetail_20' ) start [2025-09-29 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15926025', 'tblTempUsageDetail_20' ) end [2025-09-29 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15926025', 'tblTempVendorCDR_20' ) start [2025-09-29 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15926025', 'tblTempVendorCDR_20' ) end [2025-09-29 07:25:17] Production.INFO: ProcessCDR(1,15926025,1,1,2) [2025-09-29 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15926025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15926025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15926025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15926025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15926025', 'tblTempUsageDetail_20' ) start [2025-09-29 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15926025', 'tblTempUsageDetail_20' ) end [2025-09-29 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-29 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-29 07:25:26] Production.INFO: ==5414== Releasing lock... [2025-09-29 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 07:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-09-29 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 05:25:05 [end_date_ymd] => 2025-09-29 08:25:05 [RateCDR] => 1 ) [2025-09-29 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-29 05:25:05' and `end` < '2025-09-29 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-29 08:25:17] Production.INFO: count ==425 [2025-09-29 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-29 05:25:05 - End Time 2025-09-29 08:25:05 [2025-09-29 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15926272', 'tblTempUsageDetail_20' ) start [2025-09-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15926272', 'tblTempUsageDetail_20' ) end [2025-09-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15926272', 'tblTempVendorCDR_20' ) start [2025-09-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15926272', 'tblTempVendorCDR_20' ) end [2025-09-29 08:25:17] Production.INFO: ProcessCDR(1,15926272,1,1,2) [2025-09-29 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15926272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15926272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15926272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15926272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15926272', 'tblTempUsageDetail_20' ) start [2025-09-29 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15926272', 'tblTempUsageDetail_20' ) end [2025-09-29 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-29 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-29 08:25:26] Production.INFO: ==10042== Releasing lock... [2025-09-29 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 08:25:26] Production.INFO: 31.75 MB #Memory Used# [2025-09-29 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 06:25:05 [end_date_ymd] => 2025-09-29 09:25:05 [RateCDR] => 1 ) [2025-09-29 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-29 06:25:05' and `end` < '2025-09-29 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-29 09:25:17] Production.INFO: count ==1710 [2025-09-29 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-29 06:25:05 - End Time 2025-09-29 09:25:05 [2025-09-29 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15926519', 'tblTempUsageDetail_20' ) start [2025-09-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15926519', 'tblTempUsageDetail_20' ) end [2025-09-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15926519', 'tblTempVendorCDR_20' ) start [2025-09-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15926519', 'tblTempVendorCDR_20' ) end [2025-09-29 09:25:18] Production.INFO: ProcessCDR(1,15926519,1,1,2) [2025-09-29 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15926519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15926519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15926519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15926519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15926519', 'tblTempUsageDetail_20' ) start [2025-09-29 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15926519', 'tblTempUsageDetail_20' ) end [2025-09-29 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-29 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-29 09:25:28] Production.INFO: ==14629== Releasing lock... [2025-09-29 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 09:25:28] Production.INFO: 41 MB #Memory Used# [2025-09-29 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 07:25:05 [end_date_ymd] => 2025-09-29 10:25:05 [RateCDR] => 1 ) [2025-09-29 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-29 07:25:05' and `end` < '2025-09-29 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-29 10:25:22] Production.INFO: count ==3802 [2025-09-29 10:25:24] Production.ERROR: pbx CDR StartTime 2025-09-29 07:25:05 - End Time 2025-09-29 10:25:05 [2025-09-29 10:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15926766', 'tblTempUsageDetail_20' ) start [2025-09-29 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15926766', 'tblTempUsageDetail_20' ) end [2025-09-29 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15926766', 'tblTempVendorCDR_20' ) start [2025-09-29 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15926766', 'tblTempVendorCDR_20' ) end [2025-09-29 10:25:24] Production.INFO: ProcessCDR(1,15926766,1,1,2) [2025-09-29 10:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15926766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 10:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15926766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 10:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15926766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 10:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15926766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 10:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15926766', 'tblTempUsageDetail_20' ) start [2025-09-29 10:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15926766', 'tblTempUsageDetail_20' ) end [2025-09-29 10:25:35] Production.ERROR: pbx prc_insertCDR start [2025-09-29 10:25:37] Production.ERROR: pbx prc_insertCDR end [2025-09-29 10:25:37] Production.INFO: ==19140== Releasing lock... [2025-09-29 10:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 10:25:37] Production.INFO: 56.5 MB #Memory Used# [2025-09-29 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 08:25:06 [end_date_ymd] => 2025-09-29 11:25:06 [RateCDR] => 1 ) [2025-09-29 11: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-29 08:25:06' and `end` < '2025-09-29 11: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-29 11:25:19] Production.INFO: count ==5428 [2025-09-29 11:25:22] Production.ERROR: pbx CDR StartTime 2025-09-29 08:25:06 - End Time 2025-09-29 11:25:06 [2025-09-29 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15927013', 'tblTempUsageDetail_20' ) start [2025-09-29 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15927013', 'tblTempUsageDetail_20' ) end [2025-09-29 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15927013', 'tblTempVendorCDR_20' ) start [2025-09-29 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15927013', 'tblTempVendorCDR_20' ) end [2025-09-29 11:25:22] Production.INFO: ProcessCDR(1,15927013,1,1,2) [2025-09-29 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15927013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15927013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15927013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15927013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15927013', 'tblTempUsageDetail_20' ) start [2025-09-29 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15927013', 'tblTempUsageDetail_20' ) end [2025-09-29 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-29 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-29 11:25:35] Production.INFO: ==25087== Releasing lock... [2025-09-29 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 11:25:35] Production.INFO: 68.75 MB #Memory Used# [2025-09-29 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 09:25:05 [end_date_ymd] => 2025-09-29 12:25:05 [RateCDR] => 1 ) [2025-09-29 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-29 09:25:05' and `end` < '2025-09-29 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-29 12:25:21] Production.INFO: count ==6148 [2025-09-29 12:25:24] Production.ERROR: pbx CDR StartTime 2025-09-29 09:25:05 - End Time 2025-09-29 12:25:05 [2025-09-29 12:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15927260', 'tblTempUsageDetail_20' ) start [2025-09-29 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15927260', 'tblTempUsageDetail_20' ) end [2025-09-29 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15927260', 'tblTempVendorCDR_20' ) start [2025-09-29 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15927260', 'tblTempVendorCDR_20' ) end [2025-09-29 12:25:24] Production.INFO: ProcessCDR(1,15927260,1,1,2) [2025-09-29 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15927260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15927260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15927260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 12:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15927260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15927260', 'tblTempUsageDetail_20' ) start [2025-09-29 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15927260', 'tblTempUsageDetail_20' ) end [2025-09-29 12:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-29 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-29 12:25:36] Production.INFO: ==29767== Releasing lock... [2025-09-29 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 12:25:36] Production.INFO: 74.25 MB #Memory Used# [2025-09-29 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 10:25:05 [end_date_ymd] => 2025-09-29 13:25:05 [RateCDR] => 1 ) [2025-09-29 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-29 10:25:05' and `end` < '2025-09-29 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-29 13:25:19] Production.INFO: count ==6000 [2025-09-29 13:25:22] Production.ERROR: pbx CDR StartTime 2025-09-29 10:25:05 - End Time 2025-09-29 13:25:05 [2025-09-29 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15927507', 'tblTempUsageDetail_20' ) start [2025-09-29 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15927507', 'tblTempUsageDetail_20' ) end [2025-09-29 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15927507', 'tblTempVendorCDR_20' ) start [2025-09-29 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15927507', 'tblTempVendorCDR_20' ) end [2025-09-29 13:25:22] Production.INFO: ProcessCDR(1,15927507,1,1,2) [2025-09-29 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15927507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15927507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15927507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15927507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15927507', 'tblTempUsageDetail_20' ) start [2025-09-29 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15927507', 'tblTempUsageDetail_20' ) end [2025-09-29 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-29 13:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-29 13:25:34] Production.INFO: ==2466== Releasing lock... [2025-09-29 13:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 13:25:34] Production.INFO: 73.25 MB #Memory Used# [2025-09-29 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 11:25:06 [end_date_ymd] => 2025-09-29 14:25:06 [RateCDR] => 1 ) [2025-09-29 14:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-29 11:25:06' and `end` < '2025-09-29 14:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-29 14:25:28] Production.INFO: count ==6270 [2025-09-29 14:25:31] Production.ERROR: pbx CDR StartTime 2025-09-29 11:25:06 - End Time 2025-09-29 14:25:06 [2025-09-29 14:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 14:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15927754', 'tblTempUsageDetail_20' ) start [2025-09-29 14:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15927754', 'tblTempUsageDetail_20' ) end [2025-09-29 14:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15927754', 'tblTempVendorCDR_20' ) start [2025-09-29 14:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15927754', 'tblTempVendorCDR_20' ) end [2025-09-29 14:25:32] Production.INFO: ProcessCDR(1,15927754,1,1,2) [2025-09-29 14:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15927754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 14:25:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15927754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 14:25:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15927754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 14:25:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15927754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 14:25:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15927754', 'tblTempUsageDetail_20' ) start [2025-09-29 14:25:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15927754', 'tblTempUsageDetail_20' ) end [2025-09-29 14:25:43] Production.ERROR: pbx prc_insertCDR start [2025-09-29 14:25:45] Production.ERROR: pbx prc_insertCDR end [2025-09-29 14:25:45] Production.INFO: ==7642== Releasing lock... [2025-09-29 14:25:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 14:25:45] Production.INFO: 75.25 MB #Memory Used# [2025-09-29 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 12:25:05 [end_date_ymd] => 2025-09-29 15:25:05 [RateCDR] => 1 ) [2025-09-29 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-09-29 12:25:05' and `end` < '2025-09-29 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-09-29 15:25:18] Production.INFO: count ==6235 [2025-09-29 15:25:22] Production.ERROR: pbx CDR StartTime 2025-09-29 12:25:05 - End Time 2025-09-29 15:25:05 [2025-09-29 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15928001', 'tblTempUsageDetail_20' ) start [2025-09-29 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15928001', 'tblTempUsageDetail_20' ) end [2025-09-29 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15928001', 'tblTempVendorCDR_20' ) start [2025-09-29 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15928001', 'tblTempVendorCDR_20' ) end [2025-09-29 15:25:22] Production.INFO: ProcessCDR(1,15928001,1,1,2) [2025-09-29 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15928001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15928001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15928001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15928001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15928001', 'tblTempUsageDetail_20' ) start [2025-09-29 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15928001', 'tblTempUsageDetail_20' ) end [2025-09-29 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-29 15:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-29 15:25:36] Production.INFO: ==12808== Releasing lock... [2025-09-29 15:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 15:25:36] Production.INFO: 75 MB #Memory Used# [2025-09-29 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 13:25:05 [end_date_ymd] => 2025-09-29 16:25:05 [RateCDR] => 1 ) [2025-09-29 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-09-29 13:25:05' and `end` < '2025-09-29 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-09-29 16:25:31] Production.INFO: count ==6087 [2025-09-29 16:25:34] Production.ERROR: pbx CDR StartTime 2025-09-29 13:25:05 - End Time 2025-09-29 16:25:05 [2025-09-29 16:25:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 16:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15928248', 'tblTempUsageDetail_20' ) start [2025-09-29 16:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15928248', 'tblTempUsageDetail_20' ) end [2025-09-29 16:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15928248', 'tblTempVendorCDR_20' ) start [2025-09-29 16:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15928248', 'tblTempVendorCDR_20' ) end [2025-09-29 16:25:34] Production.INFO: ProcessCDR(1,15928248,1,1,2) [2025-09-29 16:25:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15928248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 16:25:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15928248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 16:25:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15928248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 16:25:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15928248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 16:25:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15928248', 'tblTempUsageDetail_20' ) start [2025-09-29 16:25:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15928248', 'tblTempUsageDetail_20' ) end [2025-09-29 16:25:45] Production.ERROR: pbx prc_insertCDR start [2025-09-29 16:25:47] Production.ERROR: pbx prc_insertCDR end [2025-09-29 16:25:47] Production.INFO: ==17307== Releasing lock... [2025-09-29 16:25:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 16:25:47] Production.INFO: 73.75 MB #Memory Used# [2025-09-29 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 14:25:05 [end_date_ymd] => 2025-09-29 17:25:05 [RateCDR] => 1 ) [2025-09-29 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-29 14:25:05' and `end` < '2025-09-29 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-29 17:25:18] Production.INFO: count ==5536 [2025-09-29 17:25:21] Production.ERROR: pbx CDR StartTime 2025-09-29 14:25:05 - End Time 2025-09-29 17:25:05 [2025-09-29 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15928495', 'tblTempUsageDetail_20' ) start [2025-09-29 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15928495', 'tblTempUsageDetail_20' ) end [2025-09-29 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15928495', 'tblTempVendorCDR_20' ) start [2025-09-29 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15928495', 'tblTempVendorCDR_20' ) end [2025-09-29 17:25:22] Production.INFO: ProcessCDR(1,15928495,1,1,2) [2025-09-29 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15928495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15928495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15928495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15928495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15928495', 'tblTempUsageDetail_20' ) start [2025-09-29 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15928495', 'tblTempUsageDetail_20' ) end [2025-09-29 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-29 17:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-29 17:25:33] Production.INFO: ==21773== Releasing lock... [2025-09-29 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 17:25:33] Production.INFO: 69.75 MB #Memory Used# [2025-09-29 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 15:25:06 [end_date_ymd] => 2025-09-29 18:25:06 [RateCDR] => 1 ) [2025-09-29 18: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-29 15:25:06' and `end` < '2025-09-29 18: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-29 18:25:19] Production.INFO: count ==4513 [2025-09-29 18:25:21] Production.ERROR: pbx CDR StartTime 2025-09-29 15:25:06 - End Time 2025-09-29 18:25:06 [2025-09-29 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15928742', 'tblTempUsageDetail_20' ) start [2025-09-29 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15928742', 'tblTempUsageDetail_20' ) end [2025-09-29 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15928742', 'tblTempVendorCDR_20' ) start [2025-09-29 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15928742', 'tblTempVendorCDR_20' ) end [2025-09-29 18:25:21] Production.INFO: ProcessCDR(1,15928742,1,1,2) [2025-09-29 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15928742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15928742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15928742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 18:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15928742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15928742', 'tblTempUsageDetail_20' ) start [2025-09-29 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15928742', 'tblTempUsageDetail_20' ) end [2025-09-29 18:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-29 18:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-29 18:25:32] Production.INFO: ==26419== Releasing lock... [2025-09-29 18:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 18:25:32] Production.INFO: 62 MB #Memory Used# [2025-09-29 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 16:25:05 [end_date_ymd] => 2025-09-29 19:25:05 [RateCDR] => 1 ) [2025-09-29 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-29 16:25:05' and `end` < '2025-09-29 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-29 19:25:18] Production.INFO: count ==3422 [2025-09-29 19:25:20] Production.ERROR: pbx CDR StartTime 2025-09-29 16:25:05 - End Time 2025-09-29 19:25:05 [2025-09-29 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15928987', 'tblTempUsageDetail_20' ) start [2025-09-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15928987', 'tblTempUsageDetail_20' ) end [2025-09-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15928987', 'tblTempVendorCDR_20' ) start [2025-09-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15928987', 'tblTempVendorCDR_20' ) end [2025-09-29 19:25:20] Production.INFO: ProcessCDR(1,15928987,1,1,2) [2025-09-29 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15928987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15928987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15928987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15928987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15928987', 'tblTempUsageDetail_20' ) start [2025-09-29 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15928987', 'tblTempUsageDetail_20' ) end [2025-09-29 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-29 19:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-29 19:25:30] Production.INFO: ==31833== Releasing lock... [2025-09-29 19:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 19:25:30] Production.INFO: 54.75 MB #Memory Used# [2025-09-29 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 17:25:06 [end_date_ymd] => 2025-09-29 20:25:06 [RateCDR] => 1 ) [2025-09-29 20: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-29 17:25:06' and `end` < '2025-09-29 20: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-29 20:25:18] Production.INFO: count ==2380 [2025-09-29 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-29 17:25:06 - End Time 2025-09-29 20:25:06 [2025-09-29 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15929234', 'tblTempUsageDetail_20' ) start [2025-09-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15929234', 'tblTempUsageDetail_20' ) end [2025-09-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15929234', 'tblTempVendorCDR_20' ) start [2025-09-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15929234', 'tblTempVendorCDR_20' ) end [2025-09-29 20:25:19] Production.INFO: ProcessCDR(1,15929234,1,1,2) [2025-09-29 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15929234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15929234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15929234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15929234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15929234', 'tblTempUsageDetail_20' ) start [2025-09-29 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15929234', 'tblTempUsageDetail_20' ) end [2025-09-29 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-29 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-29 20:25:28] Production.INFO: ==4066== Releasing lock... [2025-09-29 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 20:25:28] Production.INFO: 46 MB #Memory Used# [2025-09-29 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 18:25:06 [end_date_ymd] => 2025-09-29 21:25:06 [RateCDR] => 1 ) [2025-09-29 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-29 18:25:06' and `end` < '2025-09-29 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-29 21:25:18] Production.INFO: count ==1829 [2025-09-29 21:25:19] Production.ERROR: pbx CDR StartTime 2025-09-29 18:25:06 - End Time 2025-09-29 21:25:06 [2025-09-29 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15929481', 'tblTempUsageDetail_20' ) start [2025-09-29 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15929481', 'tblTempUsageDetail_20' ) end [2025-09-29 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15929481', 'tblTempVendorCDR_20' ) start [2025-09-29 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15929481', 'tblTempVendorCDR_20' ) end [2025-09-29 21:25:19] Production.INFO: ProcessCDR(1,15929481,1,1,2) [2025-09-29 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15929481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15929481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15929481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15929481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15929481', 'tblTempUsageDetail_20' ) start [2025-09-29 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15929481', 'tblTempUsageDetail_20' ) end [2025-09-29 21:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-29 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-29 21:25:28] Production.INFO: ==8738== Releasing lock... [2025-09-29 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 21:25:28] Production.INFO: 41.75 MB #Memory Used# [2025-09-29 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 19:25:06 [end_date_ymd] => 2025-09-29 22:25:06 [RateCDR] => 1 ) [2025-09-29 22: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-29 19:25:06' and `end` < '2025-09-29 22: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-29 22:25:18] Production.INFO: count ==1406 [2025-09-29 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-29 19:25:06 - End Time 2025-09-29 22:25:06 [2025-09-29 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15929728', 'tblTempUsageDetail_20' ) start [2025-09-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15929728', 'tblTempUsageDetail_20' ) end [2025-09-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15929728', 'tblTempVendorCDR_20' ) start [2025-09-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15929728', 'tblTempVendorCDR_20' ) end [2025-09-29 22:25:18] Production.INFO: ProcessCDR(1,15929728,1,1,2) [2025-09-29 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15929728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 22:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15929728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 22:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15929728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15929728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15929728', 'tblTempUsageDetail_20' ) start [2025-09-29 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15929728', 'tblTempUsageDetail_20' ) end [2025-09-29 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-29 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-29 22:25:27] Production.INFO: ==13072== Releasing lock... [2025-09-29 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 22:25:27] Production.INFO: 38.75 MB #Memory Used# [2025-09-29 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-29 20:25:05 [end_date_ymd] => 2025-09-29 23:25:05 [RateCDR] => 1 ) [2025-09-29 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-29 20:25:05' and `end` < '2025-09-29 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-29 23:25:17] Production.INFO: count ==992 [2025-09-29 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-29 20:25:05 - End Time 2025-09-29 23:25:05 [2025-09-29 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15929975', 'tblTempUsageDetail_20' ) start [2025-09-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15929975', 'tblTempUsageDetail_20' ) end [2025-09-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15929975', 'tblTempVendorCDR_20' ) start [2025-09-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15929975', 'tblTempVendorCDR_20' ) end [2025-09-29 23:25:18] Production.INFO: ProcessCDR(1,15929975,1,1,2) [2025-09-29 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15929975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15929975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-29 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15929975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15929975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-29 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15929975', 'tblTempUsageDetail_20' ) start [2025-09-29 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15929975', 'tblTempUsageDetail_20' ) end [2025-09-29 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-29 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-29 23:25:27] Production.INFO: ==17487== Releasing lock... [2025-09-29 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-29 23:25:27] Production.INFO: 35.75 MB #Memory Used#