[2025-09-11 00:25:04] Production.INFO: next invoice date [2025-09-11 00:25:04] Production.INFO: 2025-10-11 [2025-09-11 00:25:04] Production.INFO: getdaysdiff [2025-09-11 00:25:04] Production.INFO: +30 [2025-09-11 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (229,16,1,30,30,'RMScheduler',2025-09-11 00:25:04,1,0,,,0) [2025-09-11 00:25:04] Production.INFO: next invoice date [2025-09-11 00:25:04] Production.INFO: 2025-10-11 [2025-09-11 00:25:04] Production.INFO: getdaysdiff [2025-09-11 00:25:04] Production.INFO: +30 [2025-09-11 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (229,13,2,30,30,'RMScheduler',2025-09-11 00:25:04,1,0,,,0) [2025-09-11 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 21:25:06 [end_date_ymd] => 2025-09-11 00:25:06 [RateCDR] => 1 ) [2025-09-11 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-10 21:25:06' and `end` < '2025-09-11 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-11 00:25:18] Production.INFO: count ==772 [2025-09-11 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-10 21:25:06 - End Time 2025-09-11 00:25:06 [2025-09-11 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15817603', 'tblTempUsageDetail_20' ) start [2025-09-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15817603', 'tblTempUsageDetail_20' ) end [2025-09-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15817603', 'tblTempVendorCDR_20' ) start [2025-09-11 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15817603', 'tblTempVendorCDR_20' ) end [2025-09-11 00:25:18] Production.INFO: ProcessCDR(1,15817603,1,1,2) [2025-09-11 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15817603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15817603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15817603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15817603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15817603', 'tblTempUsageDetail_20' ) start [2025-09-11 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15817603', 'tblTempUsageDetail_20' ) end [2025-09-11 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-11 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-11 00:25:28] Production.INFO: ==4244== Releasing lock... [2025-09-11 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 00:25:28] Production.INFO: 38.5 MB #Memory Used# [2025-09-11 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 22:25:05 [end_date_ymd] => 2025-09-11 01:25:05 [RateCDR] => 1 ) [2025-09-11 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-10 22:25:05' and `end` < '2025-09-11 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-11 01:25:17] Production.INFO: count ==521 [2025-09-11 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-10 22:25:05 - End Time 2025-09-11 01:25:05 [2025-09-11 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15817850', 'tblTempUsageDetail_20' ) start [2025-09-11 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15817850', 'tblTempUsageDetail_20' ) end [2025-09-11 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15817850', 'tblTempVendorCDR_20' ) start [2025-09-11 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15817850', 'tblTempVendorCDR_20' ) end [2025-09-11 01:25:17] Production.INFO: ProcessCDR(1,15817850,1,1,2) [2025-09-11 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15817850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15817850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15817850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15817850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15817850', 'tblTempUsageDetail_20' ) start [2025-09-11 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15817850', 'tblTempUsageDetail_20' ) end [2025-09-11 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-11 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-11 01:25:25] Production.INFO: ==9209== Releasing lock... [2025-09-11 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 01:25:25] Production.INFO: 32.5 MB #Memory Used# [2025-09-11 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-10 23:25:05 [end_date_ymd] => 2025-09-11 02:25:05 [RateCDR] => 1 ) [2025-09-11 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-10 23:25:05' and `end` < '2025-09-11 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-11 02:25:18] Production.INFO: count ==438 [2025-09-11 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-10 23:25:05 - End Time 2025-09-11 02:25:05 [2025-09-11 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15818097', 'tblTempUsageDetail_20' ) start [2025-09-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15818097', 'tblTempUsageDetail_20' ) end [2025-09-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15818097', 'tblTempVendorCDR_20' ) start [2025-09-11 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15818097', 'tblTempVendorCDR_20' ) end [2025-09-11 02:25:18] Production.INFO: ProcessCDR(1,15818097,1,1,2) [2025-09-11 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15818097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15818097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15818097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15818097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15818097', 'tblTempUsageDetail_20' ) start [2025-09-11 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15818097', 'tblTempUsageDetail_20' ) end [2025-09-11 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-11 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-11 02:25:26] Production.INFO: ==14290== Releasing lock... [2025-09-11 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 02:25:26] Production.INFO: 32 MB #Memory Used# [2025-09-11 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 00:25:05 [end_date_ymd] => 2025-09-11 03:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 00:25:05' and `end` < '2025-09-11 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-11 03:25:17] Production.INFO: count ==328 [2025-09-11 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-11 00:25:05 - End Time 2025-09-11 03:25:05 [2025-09-11 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15818344', 'tblTempUsageDetail_20' ) start [2025-09-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15818344', 'tblTempUsageDetail_20' ) end [2025-09-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15818344', 'tblTempVendorCDR_20' ) start [2025-09-11 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15818344', 'tblTempVendorCDR_20' ) end [2025-09-11 03:25:17] Production.INFO: ProcessCDR(1,15818344,1,1,2) [2025-09-11 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15818344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15818344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15818344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15818344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15818344', 'tblTempUsageDetail_20' ) start [2025-09-11 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15818344', 'tblTempUsageDetail_20' ) end [2025-09-11 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-11 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-11 03:25:25] Production.INFO: ==19167== Releasing lock... [2025-09-11 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 03:25:25] Production.INFO: 31 MB #Memory Used# [2025-09-11 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 01:25:06 [end_date_ymd] => 2025-09-11 04:25:06 [RateCDR] => 1 ) [2025-09-11 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-11 01:25:06' and `end` < '2025-09-11 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-11 04:25:18] Production.INFO: count ==224 [2025-09-11 04:25:18] Production.ERROR: pbx CDR StartTime 2025-09-11 01:25:06 - End Time 2025-09-11 04:25:06 [2025-09-11 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15818592', 'tblTempUsageDetail_20' ) start [2025-09-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15818592', 'tblTempUsageDetail_20' ) end [2025-09-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15818592', 'tblTempVendorCDR_20' ) start [2025-09-11 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15818592', 'tblTempVendorCDR_20' ) end [2025-09-11 04:25:18] Production.INFO: ProcessCDR(1,15818592,1,1,2) [2025-09-11 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15818592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15818592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15818592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15818592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15818592', 'tblTempUsageDetail_20' ) start [2025-09-11 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15818592', 'tblTempUsageDetail_20' ) end [2025-09-11 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-11 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-11 04:25:23] Production.INFO: ==24002== Releasing lock... [2025-09-11 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 04:25:23] Production.INFO: 30 MB #Memory Used# [2025-09-11 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 02:25:05 [end_date_ymd] => 2025-09-11 05:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 02:25:05' and `end` < '2025-09-11 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-11 05:25:17] Production.INFO: count ==144 [2025-09-11 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-11 02:25:05 - End Time 2025-09-11 05:25:05 [2025-09-11 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15818840', 'tblTempUsageDetail_20' ) start [2025-09-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15818840', 'tblTempUsageDetail_20' ) end [2025-09-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15818840', 'tblTempVendorCDR_20' ) start [2025-09-11 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15818840', 'tblTempVendorCDR_20' ) end [2025-09-11 05:25:17] Production.INFO: ProcessCDR(1,15818840,1,1,2) [2025-09-11 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15818840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15818840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15818840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15818840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15818840', 'tblTempUsageDetail_20' ) start [2025-09-11 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15818840', 'tblTempUsageDetail_20' ) end [2025-09-11 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-09-11 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-09-11 05:25:22] Production.INFO: ==29142== Releasing lock... [2025-09-11 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 05:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-09-11 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 03:25:06 [end_date_ymd] => 2025-09-11 06:25:06 [RateCDR] => 1 ) [2025-09-11 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-11 03:25:06' and `end` < '2025-09-11 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-11 06:25:18] Production.INFO: count ==162 [2025-09-11 06:25:18] Production.ERROR: pbx CDR StartTime 2025-09-11 03:25:06 - End Time 2025-09-11 06:25:06 [2025-09-11 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15819087', 'tblTempUsageDetail_20' ) start [2025-09-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15819087', 'tblTempUsageDetail_20' ) end [2025-09-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15819087', 'tblTempVendorCDR_20' ) start [2025-09-11 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15819087', 'tblTempVendorCDR_20' ) end [2025-09-11 06:25:18] Production.INFO: ProcessCDR(1,15819087,1,1,2) [2025-09-11 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15819087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15819087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15819087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15819087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15819087', 'tblTempUsageDetail_20' ) start [2025-09-11 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15819087', 'tblTempUsageDetail_20' ) end [2025-09-11 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-11 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-11 06:25:26] Production.INFO: ==1945== Releasing lock... [2025-09-11 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 06:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-09-11 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 04:25:05 [end_date_ymd] => 2025-09-11 07:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 04:25:05' and `end` < '2025-09-11 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-11 07:25:17] Production.INFO: count ==151 [2025-09-11 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-11 04:25:05 - End Time 2025-09-11 07:25:05 [2025-09-11 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15819334', 'tblTempUsageDetail_20' ) start [2025-09-11 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15819334', 'tblTempUsageDetail_20' ) end [2025-09-11 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15819334', 'tblTempVendorCDR_20' ) start [2025-09-11 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15819334', 'tblTempVendorCDR_20' ) end [2025-09-11 07:25:17] Production.INFO: ProcessCDR(1,15819334,1,1,2) [2025-09-11 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15819334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15819334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15819334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15819334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15819334', 'tblTempUsageDetail_20' ) start [2025-09-11 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15819334', 'tblTempUsageDetail_20' ) end [2025-09-11 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-11 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-11 07:25:25] Production.INFO: ==6720== Releasing lock... [2025-09-11 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 07:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-09-11 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 05:25:05 [end_date_ymd] => 2025-09-11 08:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 05:25:05' and `end` < '2025-09-11 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-11 08:25:17] Production.INFO: count ==389 [2025-09-11 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-11 05:25:05 - End Time 2025-09-11 08:25:05 [2025-09-11 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15819581', 'tblTempUsageDetail_20' ) start [2025-09-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15819581', 'tblTempUsageDetail_20' ) end [2025-09-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15819581', 'tblTempVendorCDR_20' ) start [2025-09-11 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15819581', 'tblTempVendorCDR_20' ) end [2025-09-11 08:25:17] Production.INFO: ProcessCDR(1,15819581,1,1,2) [2025-09-11 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15819581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15819581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15819581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15819581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15819581', 'tblTempUsageDetail_20' ) start [2025-09-11 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15819581', 'tblTempUsageDetail_20' ) end [2025-09-11 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-11 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-11 08:25:25] Production.INFO: ==11496== Releasing lock... [2025-09-11 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 08:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-09-11 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 06:25:06 [end_date_ymd] => 2025-09-11 09:25:06 [RateCDR] => 1 ) [2025-09-11 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-11 06:25:06' and `end` < '2025-09-11 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-11 09:25:20] Production.INFO: count ==1467 [2025-09-11 09:25:20] Production.ERROR: pbx CDR StartTime 2025-09-11 06:25:06 - End Time 2025-09-11 09:25:06 [2025-09-11 09:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15819828', 'tblTempUsageDetail_20' ) start [2025-09-11 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15819828', 'tblTempUsageDetail_20' ) end [2025-09-11 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15819828', 'tblTempVendorCDR_20' ) start [2025-09-11 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15819828', 'tblTempVendorCDR_20' ) end [2025-09-11 09:25:20] Production.INFO: ProcessCDR(1,15819828,1,1,2) [2025-09-11 09:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15819828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 09:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15819828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 09:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15819828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 09:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15819828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 09:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15819828', 'tblTempUsageDetail_20' ) start [2025-09-11 09:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15819828', 'tblTempUsageDetail_20' ) end [2025-09-11 09:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-11 09:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-11 09:25:30] Production.INFO: ==16290== Releasing lock... [2025-09-11 09:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 09:25:30] Production.INFO: 39 MB #Memory Used# [2025-09-11 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 07:25:05 [end_date_ymd] => 2025-09-11 10:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 07:25:05' and `end` < '2025-09-11 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-11 10:25:18] Production.INFO: count ==3041 [2025-09-11 10:25:20] Production.ERROR: pbx CDR StartTime 2025-09-11 07:25:05 - End Time 2025-09-11 10:25:05 [2025-09-11 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15820075', 'tblTempUsageDetail_20' ) start [2025-09-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15820075', 'tblTempUsageDetail_20' ) end [2025-09-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15820075', 'tblTempVendorCDR_20' ) start [2025-09-11 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15820075', 'tblTempVendorCDR_20' ) end [2025-09-11 10:25:20] Production.INFO: ProcessCDR(1,15820075,1,1,2) [2025-09-11 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15820075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15820075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15820075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15820075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15820075', 'tblTempUsageDetail_20' ) start [2025-09-11 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15820075', 'tblTempUsageDetail_20' ) end [2025-09-11 10:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-11 10:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-11 10:25:31] Production.INFO: ==21364== Releasing lock... [2025-09-11 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 10:25:31] Production.INFO: 51 MB #Memory Used# [2025-09-11 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 08:25:06 [end_date_ymd] => 2025-09-11 11:25:06 [RateCDR] => 1 ) [2025-09-11 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-11 08:25:06' and `end` < '2025-09-11 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-11 11:25:19] Production.INFO: count ==4604 [2025-09-11 11:25:22] Production.ERROR: pbx CDR StartTime 2025-09-11 08:25:06 - End Time 2025-09-11 11:25:06 [2025-09-11 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15820322', 'tblTempUsageDetail_20' ) start [2025-09-11 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15820322', 'tblTempUsageDetail_20' ) end [2025-09-11 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15820322', 'tblTempVendorCDR_20' ) start [2025-09-11 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15820322', 'tblTempVendorCDR_20' ) end [2025-09-11 11:25:22] Production.INFO: ProcessCDR(1,15820322,1,1,2) [2025-09-11 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15820322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15820322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15820322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15820322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15820322', 'tblTempUsageDetail_20' ) start [2025-09-11 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15820322', 'tblTempUsageDetail_20' ) end [2025-09-11 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-11 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-11 11:25:34] Production.INFO: ==26629== Releasing lock... [2025-09-11 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 11:25:34] Production.INFO: 62.75 MB #Memory Used# [2025-09-11 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 09:25:05 [end_date_ymd] => 2025-09-11 12:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 09:25:05' and `end` < '2025-09-11 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-11 12:25:19] Production.INFO: count ==4982 [2025-09-11 12:25:21] Production.ERROR: pbx CDR StartTime 2025-09-11 09:25:05 - End Time 2025-09-11 12:25:05 [2025-09-11 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15820569', 'tblTempUsageDetail_20' ) start [2025-09-11 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15820569', 'tblTempUsageDetail_20' ) end [2025-09-11 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15820569', 'tblTempVendorCDR_20' ) start [2025-09-11 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15820569', 'tblTempVendorCDR_20' ) end [2025-09-11 12:25:21] Production.INFO: ProcessCDR(1,15820569,1,1,2) [2025-09-11 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15820569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15820569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15820569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15820569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15820569', 'tblTempUsageDetail_20' ) start [2025-09-11 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15820569', 'tblTempUsageDetail_20' ) end [2025-09-11 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-11 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-11 12:25:34] Production.INFO: ==31539== Releasing lock... [2025-09-11 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 12:25:34] Production.INFO: 65.5 MB #Memory Used# [2025-09-11 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 10:25:05 [end_date_ymd] => 2025-09-11 13:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 10:25:05' and `end` < '2025-09-11 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-11 13:25:21] Production.INFO: count ==5065 [2025-09-11 13:25:24] Production.ERROR: pbx CDR StartTime 2025-09-11 10:25:05 - End Time 2025-09-11 13:25:05 [2025-09-11 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15820816', 'tblTempUsageDetail_20' ) start [2025-09-11 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15820816', 'tblTempUsageDetail_20' ) end [2025-09-11 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15820816', 'tblTempVendorCDR_20' ) start [2025-09-11 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15820816', 'tblTempVendorCDR_20' ) end [2025-09-11 13:25:24] Production.INFO: ProcessCDR(1,15820816,1,1,2) [2025-09-11 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15820816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 13:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15820816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 13:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15820816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15820816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15820816', 'tblTempUsageDetail_20' ) start [2025-09-11 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15820816', 'tblTempUsageDetail_20' ) end [2025-09-11 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-11 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-11 13:25:35] Production.INFO: ==4668== Releasing lock... [2025-09-11 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 13:25:35] Production.INFO: 66.25 MB #Memory Used# [2025-09-11 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 11:25:05 [end_date_ymd] => 2025-09-11 14:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 11:25:05' and `end` < '2025-09-11 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-11 14:25:20] Production.INFO: count ==4894 [2025-09-11 14:25:22] Production.ERROR: pbx CDR StartTime 2025-09-11 11:25:05 - End Time 2025-09-11 14:25:05 [2025-09-11 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15821063', 'tblTempUsageDetail_20' ) start [2025-09-11 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15821063', 'tblTempUsageDetail_20' ) end [2025-09-11 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15821063', 'tblTempVendorCDR_20' ) start [2025-09-11 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15821063', 'tblTempVendorCDR_20' ) end [2025-09-11 14:25:22] Production.INFO: ProcessCDR(1,15821063,1,1,2) [2025-09-11 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15821063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15821063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15821063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15821063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15821063', 'tblTempUsageDetail_20' ) start [2025-09-11 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15821063', 'tblTempUsageDetail_20' ) end [2025-09-11 14:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-11 14:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-11 14:25:33] Production.INFO: ==9759== Releasing lock... [2025-09-11 14:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 14:25:33] Production.INFO: 64.75 MB #Memory Used# [2025-09-11 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 12:25:05 [end_date_ymd] => 2025-09-11 15:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 12:25:05' and `end` < '2025-09-11 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-11 15:25:19] Production.INFO: count ==5059 [2025-09-11 15:25:22] Production.ERROR: pbx CDR StartTime 2025-09-11 12:25:05 - End Time 2025-09-11 15:25:05 [2025-09-11 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15821310', 'tblTempUsageDetail_20' ) start [2025-09-11 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15821310', 'tblTempUsageDetail_20' ) end [2025-09-11 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15821310', 'tblTempVendorCDR_20' ) start [2025-09-11 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15821310', 'tblTempVendorCDR_20' ) end [2025-09-11 15:25:22] Production.INFO: ProcessCDR(1,15821310,1,1,2) [2025-09-11 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15821310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15821310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15821310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15821310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15821310', 'tblTempUsageDetail_20' ) start [2025-09-11 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15821310', 'tblTempUsageDetail_20' ) end [2025-09-11 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-11 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-11 15:25:33] Production.INFO: ==15223== Releasing lock... [2025-09-11 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 15:25:33] Production.INFO: 66 MB #Memory Used# [2025-09-11 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 13:25:05 [end_date_ymd] => 2025-09-11 16:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 13:25:05' and `end` < '2025-09-11 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-11 16:25:19] Production.INFO: count ==5261 [2025-09-11 16:25:22] Production.ERROR: pbx CDR StartTime 2025-09-11 13:25:05 - End Time 2025-09-11 16:25:05 [2025-09-11 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15821557', 'tblTempUsageDetail_20' ) start [2025-09-11 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15821557', 'tblTempUsageDetail_20' ) end [2025-09-11 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15821557', 'tblTempVendorCDR_20' ) start [2025-09-11 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15821557', 'tblTempVendorCDR_20' ) end [2025-09-11 16:25:22] Production.INFO: ProcessCDR(1,15821557,1,1,2) [2025-09-11 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15821557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15821557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15821557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 16:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15821557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15821557', 'tblTempUsageDetail_20' ) start [2025-09-11 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15821557', 'tblTempUsageDetail_20' ) end [2025-09-11 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-11 16:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-11 16:25:34] Production.INFO: ==20259== Releasing lock... [2025-09-11 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 16:25:34] Production.INFO: 67.75 MB #Memory Used# [2025-09-11 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 14:25:05 [end_date_ymd] => 2025-09-11 17:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 14:25:05' and `end` < '2025-09-11 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-11 17:25:18] Production.INFO: count ==5056 [2025-09-11 17:25:20] Production.ERROR: pbx CDR StartTime 2025-09-11 14:25:05 - End Time 2025-09-11 17:25:05 [2025-09-11 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15821804', 'tblTempUsageDetail_20' ) start [2025-09-11 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15821804', 'tblTempUsageDetail_20' ) end [2025-09-11 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15821804', 'tblTempVendorCDR_20' ) start [2025-09-11 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15821804', 'tblTempVendorCDR_20' ) end [2025-09-11 17:25:20] Production.INFO: ProcessCDR(1,15821804,1,1,2) [2025-09-11 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15821804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15821804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15821804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15821804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15821804', 'tblTempUsageDetail_20' ) start [2025-09-11 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15821804', 'tblTempUsageDetail_20' ) end [2025-09-11 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-11 17:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-11 17:25:31] Production.INFO: ==25819== Releasing lock... [2025-09-11 17:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 17:25:31] Production.INFO: 66 MB #Memory Used# [2025-09-11 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 15:25:06 [end_date_ymd] => 2025-09-11 18:25:06 [RateCDR] => 1 ) [2025-09-11 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-11 15:25:06' and `end` < '2025-09-11 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-11 18:25:19] Production.INFO: count ==4164 [2025-09-11 18:25:21] Production.ERROR: pbx CDR StartTime 2025-09-11 15:25:06 - End Time 2025-09-11 18:25:06 [2025-09-11 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15822051', 'tblTempUsageDetail_20' ) start [2025-09-11 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15822051', 'tblTempUsageDetail_20' ) end [2025-09-11 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15822051', 'tblTempVendorCDR_20' ) start [2025-09-11 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15822051', 'tblTempVendorCDR_20' ) end [2025-09-11 18:25:21] Production.INFO: ProcessCDR(1,15822051,1,1,2) [2025-09-11 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15822051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15822051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15822051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 18:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15822051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 18:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15822051', 'tblTempUsageDetail_20' ) start [2025-09-11 18:26:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15822051', 'tblTempUsageDetail_20' ) end [2025-09-11 18:26:36] Production.ERROR: pbx prc_insertCDR start [2025-09-11 18:26:38] Production.ERROR: pbx prc_insertCDR end [2025-09-11 18:26:43] Production.INFO: ==30680== Releasing lock... [2025-09-11 18:26:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 18:26:43] Production.INFO: 59.25 MB #Memory Used# [2025-09-11 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 16:25:05 [end_date_ymd] => 2025-09-11 19:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 16:25:05' and `end` < '2025-09-11 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-11 19:25:17] Production.INFO: count ==2865 [2025-09-11 19:25:18] Production.ERROR: pbx CDR StartTime 2025-09-11 16:25:05 - End Time 2025-09-11 19:25:05 [2025-09-11 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15822295', 'tblTempUsageDetail_20' ) start [2025-09-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15822295', 'tblTempUsageDetail_20' ) end [2025-09-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15822295', 'tblTempVendorCDR_20' ) start [2025-09-11 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15822295', 'tblTempVendorCDR_20' ) end [2025-09-11 19:25:19] Production.INFO: ProcessCDR(1,15822295,1,1,2) [2025-09-11 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15822295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15822295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15822295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15822295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15822295', 'tblTempUsageDetail_20' ) start [2025-09-11 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15822295', 'tblTempUsageDetail_20' ) end [2025-09-11 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-11 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-11 19:25:28] Production.INFO: ==3158== Releasing lock... [2025-09-11 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 19:25:28] Production.INFO: 50 MB #Memory Used# [2025-09-11 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 17:25:05 [end_date_ymd] => 2025-09-11 20:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 17:25:05' and `end` < '2025-09-11 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-11 20:25:17] Production.INFO: count ==1994 [2025-09-11 20:25:18] Production.ERROR: pbx CDR StartTime 2025-09-11 17:25:05 - End Time 2025-09-11 20:25:05 [2025-09-11 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15822542', 'tblTempUsageDetail_20' ) start [2025-09-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15822542', 'tblTempUsageDetail_20' ) end [2025-09-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15822542', 'tblTempVendorCDR_20' ) start [2025-09-11 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15822542', 'tblTempVendorCDR_20' ) end [2025-09-11 20:25:18] Production.INFO: ProcessCDR(1,15822542,1,1,2) [2025-09-11 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15822542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15822542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15822542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15822542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15822542', 'tblTempUsageDetail_20' ) start [2025-09-11 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15822542', 'tblTempUsageDetail_20' ) end [2025-09-11 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-11 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-11 20:25:27] Production.INFO: ==8672== Releasing lock... [2025-09-11 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 20:25:27] Production.INFO: 43 MB #Memory Used# [2025-09-11 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 18:25:06 [end_date_ymd] => 2025-09-11 21:25:06 [RateCDR] => 1 ) [2025-09-11 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-11 18:25:06' and `end` < '2025-09-11 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-11 21:25:18] Production.INFO: count ==1537 [2025-09-11 21:25:19] Production.ERROR: pbx CDR StartTime 2025-09-11 18:25:06 - End Time 2025-09-11 21:25:06 [2025-09-11 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15822789', 'tblTempUsageDetail_20' ) start [2025-09-11 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15822789', 'tblTempUsageDetail_20' ) end [2025-09-11 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15822789', 'tblTempVendorCDR_20' ) start [2025-09-11 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15822789', 'tblTempVendorCDR_20' ) end [2025-09-11 21:25:19] Production.INFO: ProcessCDR(1,15822789,1,1,2) [2025-09-11 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15822789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15822789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15822789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15822789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15822789', 'tblTempUsageDetail_20' ) start [2025-09-11 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15822789', 'tblTempUsageDetail_20' ) end [2025-09-11 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-11 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-11 21:25:27] Production.INFO: ==13600== Releasing lock... [2025-09-11 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 21:25:27] Production.INFO: 39.75 MB #Memory Used# [2025-09-11 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 19:25:05 [end_date_ymd] => 2025-09-11 22:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 19:25:05' and `end` < '2025-09-11 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-11 22:25:17] Production.INFO: count ==1306 [2025-09-11 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-11 19:25:05 - End Time 2025-09-11 22:25:05 [2025-09-11 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15823036', 'tblTempUsageDetail_20' ) start [2025-09-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15823036', 'tblTempUsageDetail_20' ) end [2025-09-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15823036', 'tblTempVendorCDR_20' ) start [2025-09-11 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15823036', 'tblTempVendorCDR_20' ) end [2025-09-11 22:25:18] Production.INFO: ProcessCDR(1,15823036,1,1,2) [2025-09-11 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15823036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15823036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15823036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15823036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15823036', 'tblTempUsageDetail_20' ) start [2025-09-11 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15823036', 'tblTempUsageDetail_20' ) end [2025-09-11 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-11 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-11 22:25:26] Production.INFO: ==18436== Releasing lock... [2025-09-11 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 22:25:26] Production.INFO: 38 MB #Memory Used# [2025-09-11 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-11 20:25:05 [end_date_ymd] => 2025-09-11 23:25:05 [RateCDR] => 1 ) [2025-09-11 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-11 20:25:05' and `end` < '2025-09-11 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-11 23:25:18] Production.INFO: count ==981 [2025-09-11 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-11 20:25:05 - End Time 2025-09-11 23:25:05 [2025-09-11 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15823283', 'tblTempUsageDetail_20' ) start [2025-09-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15823283', 'tblTempUsageDetail_20' ) end [2025-09-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15823283', 'tblTempVendorCDR_20' ) start [2025-09-11 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15823283', 'tblTempVendorCDR_20' ) end [2025-09-11 23:25:18] Production.INFO: ProcessCDR(1,15823283,1,1,2) [2025-09-11 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15823283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15823283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-11 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15823283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15823283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-11 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15823283', 'tblTempUsageDetail_20' ) start [2025-09-11 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15823283', 'tblTempUsageDetail_20' ) end [2025-09-11 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-11 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-11 23:25:26] Production.INFO: ==22870== Releasing lock... [2025-09-11 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-11 23:25:26] Production.INFO: 36.25 MB #Memory Used#