[2025-09-22 00:25:04] Production.INFO: next invoice date [2025-09-22 00:25:04] Production.INFO: 2025-10-22 [2025-09-22 00:25:04] Production.INFO: getdaysdiff [2025-09-22 00:25:04] Production.INFO: +30 [2025-09-22 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (253,16,1,30,30,'RMScheduler',2025-09-22 00:25:04,1,0,,,0) [2025-09-22 00:25:04] Production.INFO: next invoice date [2025-09-22 00:25:04] Production.INFO: 2025-10-22 [2025-09-22 00:25:04] Production.INFO: getdaysdiff [2025-09-22 00:25:04] Production.INFO: +30 [2025-09-22 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (253,13,2,30,30,'RMScheduler',2025-09-22 00:25:04,1,0,,,0) [2025-09-22 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 21:25:05 [end_date_ymd] => 2025-09-22 00:25:05 [RateCDR] => 1 ) [2025-09-22 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-21 21:25:05' and `end` < '2025-09-22 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-22 00:25:17] Production.INFO: count ==619 [2025-09-22 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-21 21:25:05 - End Time 2025-09-22 00:25:05 [2025-09-22 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15882805', 'tblTempUsageDetail_20' ) start [2025-09-22 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15882805', 'tblTempUsageDetail_20' ) end [2025-09-22 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15882805', 'tblTempVendorCDR_20' ) start [2025-09-22 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15882805', 'tblTempVendorCDR_20' ) end [2025-09-22 00:25:18] Production.INFO: ProcessCDR(1,15882805,1,1,2) [2025-09-22 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15882805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15882805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15882805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15882805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15882805', 'tblTempUsageDetail_20' ) start [2025-09-22 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15882805', 'tblTempUsageDetail_20' ) end [2025-09-22 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-22 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-22 00:25:27] Production.INFO: ==31369== Releasing lock... [2025-09-22 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 00:25:27] Production.INFO: 36 MB #Memory Used# [2025-09-22 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 22:25:05 [end_date_ymd] => 2025-09-22 01:25:05 [RateCDR] => 1 ) [2025-09-22 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-21 22:25:05' and `end` < '2025-09-22 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-22 01:25:17] Production.INFO: count ==392 [2025-09-22 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-21 22:25:05 - End Time 2025-09-22 01:25:05 [2025-09-22 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15883052', 'tblTempUsageDetail_20' ) start [2025-09-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15883052', 'tblTempUsageDetail_20' ) end [2025-09-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15883052', 'tblTempVendorCDR_20' ) start [2025-09-22 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15883052', 'tblTempVendorCDR_20' ) end [2025-09-22 01:25:17] Production.INFO: ProcessCDR(1,15883052,1,1,2) [2025-09-22 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15883052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15883052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15883052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15883052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15883052', 'tblTempUsageDetail_20' ) start [2025-09-22 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15883052', 'tblTempUsageDetail_20' ) end [2025-09-22 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-22 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-22 01:25:25] Production.INFO: ==3281== Releasing lock... [2025-09-22 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 01:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-09-22 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-21 23:25:06 [end_date_ymd] => 2025-09-22 02:25:06 [RateCDR] => 1 ) [2025-09-22 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-21 23:25:06' and `end` < '2025-09-22 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-22 02:25:18] Production.INFO: count ==287 [2025-09-22 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-21 23:25:06 - End Time 2025-09-22 02:25:06 [2025-09-22 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15883299', 'tblTempUsageDetail_20' ) start [2025-09-22 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15883299', 'tblTempUsageDetail_20' ) end [2025-09-22 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15883299', 'tblTempVendorCDR_20' ) start [2025-09-22 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15883299', 'tblTempVendorCDR_20' ) end [2025-09-22 02:25:18] Production.INFO: ProcessCDR(1,15883299,1,1,2) [2025-09-22 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15883299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15883299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15883299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15883299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15883299', 'tblTempUsageDetail_20' ) start [2025-09-22 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15883299', 'tblTempUsageDetail_20' ) end [2025-09-22 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-22 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-22 02:25:26] Production.INFO: ==8273== Releasing lock... [2025-09-22 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 02:25:26] Production.INFO: 30.5 MB #Memory Used# [2025-09-22 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 00:25:05 [end_date_ymd] => 2025-09-22 03:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 00:25:05' and `end` < '2025-09-22 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-22 03:25:16] Production.INFO: count ==226 [2025-09-22 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-22 00:25:05 - End Time 2025-09-22 03:25:05 [2025-09-22 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15883546', 'tblTempUsageDetail_20' ) start [2025-09-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15883546', 'tblTempUsageDetail_20' ) end [2025-09-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15883546', 'tblTempVendorCDR_20' ) start [2025-09-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15883546', 'tblTempVendorCDR_20' ) end [2025-09-22 03:25:17] Production.INFO: ProcessCDR(1,15883546,1,1,2) [2025-09-22 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15883546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15883546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15883546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15883546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15883546', 'tblTempUsageDetail_20' ) start [2025-09-22 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15883546', 'tblTempUsageDetail_20' ) end [2025-09-22 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-22 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-22 03:25:25] Production.INFO: ==13375== Releasing lock... [2025-09-22 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 03:25:25] Production.INFO: 30.25 MB #Memory Used# [2025-09-22 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 01:25:05 [end_date_ymd] => 2025-09-22 04:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 01:25:05' and `end` < '2025-09-22 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-22 04:25:17] Production.INFO: count ==154 [2025-09-22 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-22 01:25:05 - End Time 2025-09-22 04:25:05 [2025-09-22 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15883794', 'tblTempUsageDetail_20' ) start [2025-09-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15883794', 'tblTempUsageDetail_20' ) end [2025-09-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15883794', 'tblTempVendorCDR_20' ) start [2025-09-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15883794', 'tblTempVendorCDR_20' ) end [2025-09-22 04:25:17] Production.INFO: ProcessCDR(1,15883794,1,1,2) [2025-09-22 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15883794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15883794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15883794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15883794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15883794', 'tblTempUsageDetail_20' ) start [2025-09-22 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15883794', 'tblTempUsageDetail_20' ) end [2025-09-22 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-22 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-22 04:25:25] Production.INFO: ==17711== Releasing lock... [2025-09-22 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 04:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-09-22 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 02:25:05 [end_date_ymd] => 2025-09-22 05:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 02:25:05' and `end` < '2025-09-22 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-22 05:25:17] Production.INFO: count ==127 [2025-09-22 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-22 02:25:05 - End Time 2025-09-22 05:25:05 [2025-09-22 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15884042', 'tblTempUsageDetail_20' ) start [2025-09-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15884042', 'tblTempUsageDetail_20' ) end [2025-09-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15884042', 'tblTempVendorCDR_20' ) start [2025-09-22 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15884042', 'tblTempVendorCDR_20' ) end [2025-09-22 05:25:17] Production.INFO: ProcessCDR(1,15884042,1,1,2) [2025-09-22 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15884042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15884042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15884042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15884042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15884042', 'tblTempUsageDetail_20' ) start [2025-09-22 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15884042', 'tblTempUsageDetail_20' ) end [2025-09-22 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-22 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-22 05:25:25] Production.INFO: ==22150== Releasing lock... [2025-09-22 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 05:25:25] Production.INFO: 29 MB #Memory Used# [2025-09-22 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 03:25:05 [end_date_ymd] => 2025-09-22 06:25:05 [RateCDR] => 1 ) [2025-09-22 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-22 03:25:05' and `end` < '2025-09-22 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-22 06:25:17] Production.INFO: count ==106 [2025-09-22 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-22 03:25:05 - End Time 2025-09-22 06:25:05 [2025-09-22 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15884289', 'tblTempUsageDetail_20' ) start [2025-09-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15884289', 'tblTempUsageDetail_20' ) end [2025-09-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15884289', 'tblTempVendorCDR_20' ) start [2025-09-22 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15884289', 'tblTempVendorCDR_20' ) end [2025-09-22 06:25:17] Production.INFO: ProcessCDR(1,15884289,1,1,2) [2025-09-22 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15884289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15884289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15884289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15884289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15884289', 'tblTempUsageDetail_20' ) start [2025-09-22 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15884289', 'tblTempUsageDetail_20' ) end [2025-09-22 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-22 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-22 06:25:25] Production.INFO: ==26530== Releasing lock... [2025-09-22 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 06:25:25] Production.INFO: 28.75 MB #Memory Used# [2025-09-22 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 04:25:05 [end_date_ymd] => 2025-09-22 07:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 04:25:05' and `end` < '2025-09-22 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-22 07:25:17] Production.INFO: count ==131 [2025-09-22 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-22 04:25:05 - End Time 2025-09-22 07:25:05 [2025-09-22 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15884536', 'tblTempUsageDetail_20' ) start [2025-09-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15884536', 'tblTempUsageDetail_20' ) end [2025-09-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15884536', 'tblTempVendorCDR_20' ) start [2025-09-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15884536', 'tblTempVendorCDR_20' ) end [2025-09-22 07:25:17] Production.INFO: ProcessCDR(1,15884536,1,1,2) [2025-09-22 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15884536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15884536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15884536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15884536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15884536', 'tblTempUsageDetail_20' ) start [2025-09-22 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15884536', 'tblTempUsageDetail_20' ) end [2025-09-22 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-22 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-22 07:25:26] Production.INFO: ==30759== Releasing lock... [2025-09-22 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 07:25:26] Production.INFO: 29.25 MB #Memory Used# [2025-09-22 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 05:25:05 [end_date_ymd] => 2025-09-22 08:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 05:25:05' and `end` < '2025-09-22 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-22 08:25:17] Production.INFO: count ==390 [2025-09-22 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-22 05:25:05 - End Time 2025-09-22 08:25:05 [2025-09-22 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15884783', 'tblTempUsageDetail_20' ) start [2025-09-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15884783', 'tblTempUsageDetail_20' ) end [2025-09-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15884783', 'tblTempVendorCDR_20' ) start [2025-09-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15884783', 'tblTempVendorCDR_20' ) end [2025-09-22 08:25:17] Production.INFO: ProcessCDR(1,15884783,1,1,2) [2025-09-22 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15884783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15884783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15884783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15884783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15884783', 'tblTempUsageDetail_20' ) start [2025-09-22 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15884783', 'tblTempUsageDetail_20' ) end [2025-09-22 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-22 08:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-22 08:25:27] Production.INFO: ==3595== Releasing lock... [2025-09-22 08:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 08:25:27] Production.INFO: 31.5 MB #Memory Used# [2025-09-22 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 06:25:05 [end_date_ymd] => 2025-09-22 09:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 06:25:05' and `end` < '2025-09-22 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-22 09:25:17] Production.INFO: count ==1792 [2025-09-22 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-22 06:25:05 - End Time 2025-09-22 09:25:05 [2025-09-22 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15885031', 'tblTempUsageDetail_20' ) start [2025-09-22 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15885031', 'tblTempUsageDetail_20' ) end [2025-09-22 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15885031', 'tblTempVendorCDR_20' ) start [2025-09-22 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15885031', 'tblTempVendorCDR_20' ) end [2025-09-22 09:25:18] Production.INFO: ProcessCDR(1,15885031,1,1,2) [2025-09-22 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15885031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15885031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15885031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15885031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15885031', 'tblTempUsageDetail_20' ) start [2025-09-22 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15885031', 'tblTempUsageDetail_20' ) end [2025-09-22 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-22 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-22 09:25:28] Production.INFO: ==8141== Releasing lock... [2025-09-22 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 09:25:28] Production.INFO: 42 MB #Memory Used# [2025-09-22 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 07:25:05 [end_date_ymd] => 2025-09-22 10:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 07:25:05' and `end` < '2025-09-22 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-22 10:25:25] Production.INFO: count ==3982 [2025-09-22 10:25:26] Production.ERROR: pbx CDR StartTime 2025-09-22 07:25:05 - End Time 2025-09-22 10:25:05 [2025-09-22 10:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 10:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15885278', 'tblTempUsageDetail_20' ) start [2025-09-22 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15885278', 'tblTempUsageDetail_20' ) end [2025-09-22 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15885278', 'tblTempVendorCDR_20' ) start [2025-09-22 10:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15885278', 'tblTempVendorCDR_20' ) end [2025-09-22 10:25:27] Production.INFO: ProcessCDR(1,15885278,1,1,2) [2025-09-22 10:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15885278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 10:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15885278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 10:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15885278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 10:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15885278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 10:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15885278', 'tblTempUsageDetail_20' ) start [2025-09-22 10:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15885278', 'tblTempUsageDetail_20' ) end [2025-09-22 10:25:37] Production.ERROR: pbx prc_insertCDR start [2025-09-22 10:25:39] Production.ERROR: pbx prc_insertCDR end [2025-09-22 10:25:39] Production.INFO: ==12417== Releasing lock... [2025-09-22 10:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 10:25:39] Production.INFO: 58 MB #Memory Used# [2025-09-22 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 08:25:05 [end_date_ymd] => 2025-09-22 11:25:05 [RateCDR] => 1 ) [2025-09-22 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-22 08:25:05' and `end` < '2025-09-22 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-22 11:25:18] Production.INFO: count ==5798 [2025-09-22 11:25:21] Production.ERROR: pbx CDR StartTime 2025-09-22 08:25:05 - End Time 2025-09-22 11:25:05 [2025-09-22 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15885525', 'tblTempUsageDetail_20' ) start [2025-09-22 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15885525', 'tblTempUsageDetail_20' ) end [2025-09-22 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15885525', 'tblTempVendorCDR_20' ) start [2025-09-22 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15885525', 'tblTempVendorCDR_20' ) end [2025-09-22 11:25:22] Production.INFO: ProcessCDR(1,15885525,1,1,2) [2025-09-22 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15885525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15885525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15885525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15885525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15885525', 'tblTempUsageDetail_20' ) start [2025-09-22 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15885525', 'tblTempUsageDetail_20' ) end [2025-09-22 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-22 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-22 11:25:34] Production.INFO: ==16605== Releasing lock... [2025-09-22 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 11:25:34] Production.INFO: 71.75 MB #Memory Used# [2025-09-22 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 09:25:05 [end_date_ymd] => 2025-09-22 12:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 09:25:05' and `end` < '2025-09-22 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-22 12:25:29] Production.INFO: count ==6437 [2025-09-22 12:25:32] Production.ERROR: pbx CDR StartTime 2025-09-22 09:25:05 - End Time 2025-09-22 12:25:05 [2025-09-22 12:25:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 12:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15885772', 'tblTempUsageDetail_20' ) start [2025-09-22 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15885772', 'tblTempUsageDetail_20' ) end [2025-09-22 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15885772', 'tblTempVendorCDR_20' ) start [2025-09-22 12:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15885772', 'tblTempVendorCDR_20' ) end [2025-09-22 12:25:33] Production.INFO: ProcessCDR(1,15885772,1,1,2) [2025-09-22 12:25:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15885772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 12:25:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15885772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 12:25:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15885772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 12:25:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15885772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 12:25:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15885772', 'tblTempUsageDetail_20' ) start [2025-09-22 12:25:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15885772', 'tblTempUsageDetail_20' ) end [2025-09-22 12:25:43] Production.ERROR: pbx prc_insertCDR start [2025-09-22 12:25:45] Production.ERROR: pbx prc_insertCDR end [2025-09-22 12:25:45] Production.INFO: ==20870== Releasing lock... [2025-09-22 12:25:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 12:25:45] Production.INFO: 76.5 MB #Memory Used# [2025-09-22 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 10:25:06 [end_date_ymd] => 2025-09-22 13:25:06 [RateCDR] => 1 ) [2025-09-22 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-22 10:25:06' and `end` < '2025-09-22 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-22 13:25:19] Production.INFO: count ==5835 [2025-09-22 13:25:22] Production.ERROR: pbx CDR StartTime 2025-09-22 10:25:06 - End Time 2025-09-22 13:25:06 [2025-09-22 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15886019', 'tblTempUsageDetail_20' ) start [2025-09-22 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15886019', 'tblTempUsageDetail_20' ) end [2025-09-22 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15886019', 'tblTempVendorCDR_20' ) start [2025-09-22 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15886019', 'tblTempVendorCDR_20' ) end [2025-09-22 13:25:23] Production.INFO: ProcessCDR(1,15886019,1,1,2) [2025-09-22 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15886019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15886019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15886019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15886019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15886019', 'tblTempUsageDetail_20' ) start [2025-09-22 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15886019', 'tblTempUsageDetail_20' ) end [2025-09-22 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-22 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-22 13:25:35] Production.INFO: ==25560== Releasing lock... [2025-09-22 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 13:25:35] Production.INFO: 72 MB #Memory Used# [2025-09-22 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 11:25:06 [end_date_ymd] => 2025-09-22 14:25:06 [RateCDR] => 1 ) [2025-09-22 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-22 11:25:06' and `end` < '2025-09-22 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-22 14:25:22] Production.INFO: count ==5700 [2025-09-22 14:25:25] Production.ERROR: pbx CDR StartTime 2025-09-22 11:25:06 - End Time 2025-09-22 14:25:06 [2025-09-22 14:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15886266', 'tblTempUsageDetail_20' ) start [2025-09-22 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15886266', 'tblTempUsageDetail_20' ) end [2025-09-22 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15886266', 'tblTempVendorCDR_20' ) start [2025-09-22 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15886266', 'tblTempVendorCDR_20' ) end [2025-09-22 14:25:26] Production.INFO: ProcessCDR(1,15886266,1,1,2) [2025-09-22 14:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15886266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 14:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15886266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 14:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15886266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 14:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15886266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15886266', 'tblTempUsageDetail_20' ) start [2025-09-22 14:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15886266', 'tblTempUsageDetail_20' ) end [2025-09-22 14:25:36] Production.ERROR: pbx prc_insertCDR start [2025-09-22 14:25:38] Production.ERROR: pbx prc_insertCDR end [2025-09-22 14:25:38] Production.INFO: ==30027== Releasing lock... [2025-09-22 14:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 14:25:38] Production.INFO: 71 MB #Memory Used# [2025-09-22 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 12:25:05 [end_date_ymd] => 2025-09-22 15:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 12:25:05' and `end` < '2025-09-22 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-22 15:25:19] Production.INFO: count ==5532 [2025-09-22 15:25:21] Production.ERROR: pbx CDR StartTime 2025-09-22 12:25:05 - End Time 2025-09-22 15:25:05 [2025-09-22 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15886513', 'tblTempUsageDetail_20' ) start [2025-09-22 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15886513', 'tblTempUsageDetail_20' ) end [2025-09-22 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15886513', 'tblTempVendorCDR_20' ) start [2025-09-22 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15886513', 'tblTempVendorCDR_20' ) end [2025-09-22 15:25:22] Production.INFO: ProcessCDR(1,15886513,1,1,2) [2025-09-22 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15886513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15886513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15886513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15886513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15886513', 'tblTempUsageDetail_20' ) start [2025-09-22 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15886513', 'tblTempUsageDetail_20' ) end [2025-09-22 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-22 15:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-22 15:25:34] Production.INFO: ==1886== Releasing lock... [2025-09-22 15:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 15:25:34] Production.INFO: 69.75 MB #Memory Used# [2025-09-22 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 13:25:05 [end_date_ymd] => 2025-09-22 16:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 13:25:05' and `end` < '2025-09-22 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-22 16:25:21] Production.INFO: count ==5627 [2025-09-22 16:25:24] Production.ERROR: pbx CDR StartTime 2025-09-22 13:25:05 - End Time 2025-09-22 16:25:05 [2025-09-22 16:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15886760', 'tblTempUsageDetail_20' ) start [2025-09-22 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15886760', 'tblTempUsageDetail_20' ) end [2025-09-22 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15886760', 'tblTempVendorCDR_20' ) start [2025-09-22 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15886760', 'tblTempVendorCDR_20' ) end [2025-09-22 16:25:24] Production.INFO: ProcessCDR(1,15886760,1,1,2) [2025-09-22 16:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15886760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15886760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15886760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 16:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15886760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15886760', 'tblTempUsageDetail_20' ) start [2025-09-22 16:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15886760', 'tblTempUsageDetail_20' ) end [2025-09-22 16:25:35] Production.ERROR: pbx prc_insertCDR start [2025-09-22 16:25:37] Production.ERROR: pbx prc_insertCDR end [2025-09-22 16:25:37] Production.INFO: ==6616== Releasing lock... [2025-09-22 16:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 16:25:37] Production.INFO: 70.25 MB #Memory Used# [2025-09-22 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 14:25:05 [end_date_ymd] => 2025-09-22 17:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 14:25:05' and `end` < '2025-09-22 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-22 17:25:19] Production.INFO: count ==5435 [2025-09-22 17:25:21] Production.ERROR: pbx CDR StartTime 2025-09-22 14:25:05 - End Time 2025-09-22 17:25:05 [2025-09-22 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15887007', 'tblTempUsageDetail_20' ) start [2025-09-22 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15887007', 'tblTempUsageDetail_20' ) end [2025-09-22 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15887007', 'tblTempVendorCDR_20' ) start [2025-09-22 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15887007', 'tblTempVendorCDR_20' ) end [2025-09-22 17:25:22] Production.INFO: ProcessCDR(1,15887007,1,1,2) [2025-09-22 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15887007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15887007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15887007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 17:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15887007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15887007', 'tblTempUsageDetail_20' ) start [2025-09-22 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15887007', 'tblTempUsageDetail_20' ) end [2025-09-22 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-22 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-22 17:25:34] Production.INFO: ==11098== Releasing lock... [2025-09-22 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 17:25:34] Production.INFO: 69 MB #Memory Used# [2025-09-22 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 15:25:05 [end_date_ymd] => 2025-09-22 18:25:05 [RateCDR] => 1 ) [2025-09-22 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-22 15:25:05' and `end` < '2025-09-22 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-22 18:25:18] Production.INFO: count ==4557 [2025-09-22 18:25:20] Production.ERROR: pbx CDR StartTime 2025-09-22 15:25:05 - End Time 2025-09-22 18:25:05 [2025-09-22 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15887254', 'tblTempUsageDetail_20' ) start [2025-09-22 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15887254', 'tblTempUsageDetail_20' ) end [2025-09-22 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15887254', 'tblTempVendorCDR_20' ) start [2025-09-22 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15887254', 'tblTempVendorCDR_20' ) end [2025-09-22 18:25:20] Production.INFO: ProcessCDR(1,15887254,1,1,2) [2025-09-22 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15887254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15887254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15887254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15887254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15887254', 'tblTempUsageDetail_20' ) start [2025-09-22 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15887254', 'tblTempUsageDetail_20' ) end [2025-09-22 18:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-22 18:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-22 18:25:31] Production.INFO: ==15426== Releasing lock... [2025-09-22 18:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 18:25:31] Production.INFO: 62.25 MB #Memory Used# [2025-09-22 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 16:25:06 [end_date_ymd] => 2025-09-22 19:25:06 [RateCDR] => 1 ) [2025-09-22 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-22 16:25:06' and `end` < '2025-09-22 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-22 19:25:18] Production.INFO: count ==3469 [2025-09-22 19:25:20] Production.ERROR: pbx CDR StartTime 2025-09-22 16:25:06 - End Time 2025-09-22 19:25:06 [2025-09-22 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15887498', 'tblTempUsageDetail_20' ) start [2025-09-22 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15887498', 'tblTempUsageDetail_20' ) end [2025-09-22 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15887498', 'tblTempVendorCDR_20' ) start [2025-09-22 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15887498', 'tblTempVendorCDR_20' ) end [2025-09-22 19:25:20] Production.INFO: ProcessCDR(1,15887498,1,1,2) [2025-09-22 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15887498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15887498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15887498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15887498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15887498', 'tblTempUsageDetail_20' ) start [2025-09-22 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15887498', 'tblTempUsageDetail_20' ) end [2025-09-22 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-22 19:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-22 19:25:31] Production.INFO: ==20179== Releasing lock... [2025-09-22 19:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 19:25:31] Production.INFO: 54 MB #Memory Used# [2025-09-22 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 17:25:05 [end_date_ymd] => 2025-09-22 20:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 17:25:05' and `end` < '2025-09-22 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-22 20:25:17] Production.INFO: count ==2238 [2025-09-22 20:25:18] Production.ERROR: pbx CDR StartTime 2025-09-22 17:25:05 - End Time 2025-09-22 20:25:05 [2025-09-22 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15887745', 'tblTempUsageDetail_20' ) start [2025-09-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15887745', 'tblTempUsageDetail_20' ) end [2025-09-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15887745', 'tblTempVendorCDR_20' ) start [2025-09-22 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15887745', 'tblTempVendorCDR_20' ) end [2025-09-22 20:25:18] Production.INFO: ProcessCDR(1,15887745,1,1,2) [2025-09-22 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15887745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15887745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15887745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15887745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15887745', 'tblTempUsageDetail_20' ) start [2025-09-22 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15887745', 'tblTempUsageDetail_20' ) end [2025-09-22 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-22 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-22 20:25:28] Production.INFO: ==24858== Releasing lock... [2025-09-22 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 20:25:28] Production.INFO: 45 MB #Memory Used# [2025-09-22 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 18:25:05 [end_date_ymd] => 2025-09-22 21:25:05 [RateCDR] => 1 ) [2025-09-22 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-22 18:25:05' and `end` < '2025-09-22 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-22 21:25:18] Production.INFO: count ==1542 [2025-09-22 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-22 18:25:05 - End Time 2025-09-22 21:25:05 [2025-09-22 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15887992', 'tblTempUsageDetail_20' ) start [2025-09-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15887992', 'tblTempUsageDetail_20' ) end [2025-09-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15887992', 'tblTempVendorCDR_20' ) start [2025-09-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15887992', 'tblTempVendorCDR_20' ) end [2025-09-22 21:25:18] Production.INFO: ProcessCDR(1,15887992,1,1,2) [2025-09-22 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15887992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15887992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15887992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15887992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15887992', 'tblTempUsageDetail_20' ) start [2025-09-22 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15887992', 'tblTempUsageDetail_20' ) end [2025-09-22 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-22 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-22 21:25:27] Production.INFO: ==29278== Releasing lock... [2025-09-22 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 21:25:27] Production.INFO: 39.75 MB #Memory Used# [2025-09-22 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 19:25:05 [end_date_ymd] => 2025-09-22 22:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 19:25:05' and `end` < '2025-09-22 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-22 22:25:18] Production.INFO: count ==1091 [2025-09-22 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-22 19:25:05 - End Time 2025-09-22 22:25:05 [2025-09-22 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15888239', 'tblTempUsageDetail_20' ) start [2025-09-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15888239', 'tblTempUsageDetail_20' ) end [2025-09-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15888239', 'tblTempVendorCDR_20' ) start [2025-09-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15888239', 'tblTempVendorCDR_20' ) end [2025-09-22 22:25:18] Production.INFO: ProcessCDR(1,15888239,1,1,2) [2025-09-22 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15888239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15888239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15888239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15888239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15888239', 'tblTempUsageDetail_20' ) start [2025-09-22 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15888239', 'tblTempUsageDetail_20' ) end [2025-09-22 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-22 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-22 22:25:27] Production.INFO: ==1122== Releasing lock... [2025-09-22 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 22:25:27] Production.INFO: 36.75 MB #Memory Used# [2025-09-22 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 20:25:05 [end_date_ymd] => 2025-09-22 23:25:05 [RateCDR] => 1 ) [2025-09-22 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-22 20:25:05' and `end` < '2025-09-22 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-22 23:25:17] Production.INFO: count ==693 [2025-09-22 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-22 20:25:05 - End Time 2025-09-22 23:25:05 [2025-09-22 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15888486', 'tblTempUsageDetail_20' ) start [2025-09-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15888486', 'tblTempUsageDetail_20' ) end [2025-09-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15888486', 'tblTempVendorCDR_20' ) start [2025-09-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15888486', 'tblTempVendorCDR_20' ) end [2025-09-22 23:25:18] Production.INFO: ProcessCDR(1,15888486,1,1,2) [2025-09-22 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15888486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15888486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-22 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15888486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15888486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-22 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15888486', 'tblTempUsageDetail_20' ) start [2025-09-22 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15888486', 'tblTempUsageDetail_20' ) end [2025-09-22 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-22 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-22 23:25:26] Production.INFO: ==5545== Releasing lock... [2025-09-22 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-22 23:25:26] Production.INFO: 33.75 MB #Memory Used#