[2025-06-16 00:25:04] Production.INFO: next invoice date [2025-06-16 00:25:04] Production.INFO: 2025-07-16 [2025-06-16 00:25:04] Production.INFO: getdaysdiff [2025-06-16 00:25:04] Production.INFO: +30 [2025-06-16 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (107,16,1,30,30,'RMScheduler',2025-06-16 00:25:04,1,0,,,0) [2025-06-16 00:25:04] Production.INFO: next invoice date [2025-06-16 00:25:04] Production.INFO: 2025-07-16 [2025-06-16 00:25:04] Production.INFO: getdaysdiff [2025-06-16 00:25:04] Production.INFO: +30 [2025-06-16 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (140,16,1,30,30,'RMScheduler',2025-06-16 00:25:04,1,0,,,0) [2025-06-16 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 21:25:05 [end_date_ymd] => 2025-06-16 00:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-15 21:25:05' and `end` < '2025-06-16 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-06-16 00:25:17] Production.INFO: count ==459 [2025-06-16 00:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 21:25:05 - End Time 2025-06-16 00:25:05 [2025-06-16 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15301944', 'tblTempUsageDetail_20' ) start [2025-06-16 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15301944', 'tblTempUsageDetail_20' ) end [2025-06-16 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15301944', 'tblTempVendorCDR_20' ) start [2025-06-16 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15301944', 'tblTempVendorCDR_20' ) end [2025-06-16 00:25:17] Production.INFO: ProcessCDR(1,15301944,1,1,2) [2025-06-16 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15301944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15301944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15301944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 00:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15301944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15301944', 'tblTempUsageDetail_20' ) start [2025-06-16 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15301944', 'tblTempUsageDetail_20' ) end [2025-06-16 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-16 00:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-16 00:25:25] Production.INFO: ==32045== Releasing lock... [2025-06-16 00:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 00:25:25] Production.INFO: 34.25 MB #Memory Used# [2025-06-16 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 22:25:05 [end_date_ymd] => 2025-06-16 01:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-15 22:25:05' and `end` < '2025-06-16 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-06-16 01:25:17] Production.INFO: count ==379 [2025-06-16 01:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 22:25:05 - End Time 2025-06-16 01:25:05 [2025-06-16 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15302191', 'tblTempUsageDetail_20' ) start [2025-06-16 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15302191', 'tblTempUsageDetail_20' ) end [2025-06-16 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15302191', 'tblTempVendorCDR_20' ) start [2025-06-16 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15302191', 'tblTempVendorCDR_20' ) end [2025-06-16 01:25:17] Production.INFO: ProcessCDR(1,15302191,1,1,2) [2025-06-16 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15302191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15302191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15302191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15302191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15302191', 'tblTempUsageDetail_20' ) start [2025-06-16 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15302191', 'tblTempUsageDetail_20' ) end [2025-06-16 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-16 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-16 01:25:23] Production.INFO: ==4724== Releasing lock... [2025-06-16 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 01:25:23] Production.INFO: 32 MB #Memory Used# [2025-06-16 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 23:25:05 [end_date_ymd] => 2025-06-16 02:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-15 23:25:05' and `end` < '2025-06-16 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-06-16 02:25:17] Production.INFO: count ==293 [2025-06-16 02:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 23:25:05 - End Time 2025-06-16 02:25:05 [2025-06-16 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15302438', 'tblTempUsageDetail_20' ) start [2025-06-16 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15302438', 'tblTempUsageDetail_20' ) end [2025-06-16 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15302438', 'tblTempVendorCDR_20' ) start [2025-06-16 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15302438', 'tblTempVendorCDR_20' ) end [2025-06-16 02:25:17] Production.INFO: ProcessCDR(1,15302438,1,1,2) [2025-06-16 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15302438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15302438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15302438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 02:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15302438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15302438', 'tblTempUsageDetail_20' ) start [2025-06-16 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15302438', 'tblTempUsageDetail_20' ) end [2025-06-16 02:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-16 02:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-16 02:25:23] Production.INFO: ==9066== Releasing lock... [2025-06-16 02:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 02:25:23] Production.INFO: 30.75 MB #Memory Used# [2025-06-16 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 00:25:05 [end_date_ymd] => 2025-06-16 03:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 00:25:05' and `end` < '2025-06-16 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-06-16 03:25:17] Production.INFO: count ==196 [2025-06-16 03:25:17] Production.ERROR: pbx CDR StartTime 2025-06-16 00:25:05 - End Time 2025-06-16 03:25:05 [2025-06-16 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15302685', 'tblTempUsageDetail_20' ) start [2025-06-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15302685', 'tblTempUsageDetail_20' ) end [2025-06-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15302685', 'tblTempVendorCDR_20' ) start [2025-06-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15302685', 'tblTempVendorCDR_20' ) end [2025-06-16 03:25:17] Production.INFO: ProcessCDR(1,15302685,1,1,2) [2025-06-16 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15302685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15302685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15302685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15302685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15302685', 'tblTempUsageDetail_20' ) start [2025-06-16 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15302685', 'tblTempUsageDetail_20' ) end [2025-06-16 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-06-16 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-06-16 03:25:21] Production.INFO: ==13355== Releasing lock... [2025-06-16 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 03:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-06-16 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 01:25:05 [end_date_ymd] => 2025-06-16 04:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 01:25:05' and `end` < '2025-06-16 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-06-16 04:25:17] Production.INFO: count ==125 [2025-06-16 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-16 01:25:05 - End Time 2025-06-16 04:25:05 [2025-06-16 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15302933', 'tblTempUsageDetail_20' ) start [2025-06-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15302933', 'tblTempUsageDetail_20' ) end [2025-06-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15302933', 'tblTempVendorCDR_20' ) start [2025-06-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15302933', 'tblTempVendorCDR_20' ) end [2025-06-16 04:25:17] Production.INFO: ProcessCDR(1,15302933,1,1,2) [2025-06-16 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15302933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15302933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15302933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15302933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15302933', 'tblTempUsageDetail_20' ) start [2025-06-16 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15302933', 'tblTempUsageDetail_20' ) end [2025-06-16 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-16 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-16 04:25:23] Production.INFO: ==17816== Releasing lock... [2025-06-16 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 04:25:23] Production.INFO: 28.75 MB #Memory Used# [2025-06-16 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 02:25:05 [end_date_ymd] => 2025-06-16 05:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 02:25:05' and `end` < '2025-06-16 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-06-16 05:25:17] Production.INFO: count ==89 [2025-06-16 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-16 02:25:05 - End Time 2025-06-16 05:25:05 [2025-06-16 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15303181', 'tblTempUsageDetail_20' ) start [2025-06-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15303181', 'tblTempUsageDetail_20' ) end [2025-06-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15303181', 'tblTempVendorCDR_20' ) start [2025-06-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15303181', 'tblTempVendorCDR_20' ) end [2025-06-16 05:25:17] Production.INFO: ProcessCDR(1,15303181,1,1,2) [2025-06-16 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15303181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15303181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15303181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15303181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15303181', 'tblTempUsageDetail_20' ) start [2025-06-16 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15303181', 'tblTempUsageDetail_20' ) end [2025-06-16 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-06-16 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-06-16 05:25:21] Production.INFO: ==22628== Releasing lock... [2025-06-16 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 05:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-06-16 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 03:25:05 [end_date_ymd] => 2025-06-16 06:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 03:25:05' and `end` < '2025-06-16 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-06-16 06:25:17] Production.INFO: count ==82 [2025-06-16 06:25:17] Production.ERROR: pbx CDR StartTime 2025-06-16 03:25:05 - End Time 2025-06-16 06:25:05 [2025-06-16 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15303428', 'tblTempUsageDetail_20' ) start [2025-06-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15303428', 'tblTempUsageDetail_20' ) end [2025-06-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15303428', 'tblTempVendorCDR_20' ) start [2025-06-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15303428', 'tblTempVendorCDR_20' ) end [2025-06-16 06:25:17] Production.INFO: ProcessCDR(1,15303428,1,1,2) [2025-06-16 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15303428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15303428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15303428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15303428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15303428', 'tblTempUsageDetail_20' ) start [2025-06-16 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15303428', 'tblTempUsageDetail_20' ) end [2025-06-16 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-16 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-16 06:25:23] Production.INFO: ==27714== Releasing lock... [2025-06-16 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 06:25:23] Production.INFO: 28.25 MB #Memory Used# [2025-06-16 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 04:25:05 [end_date_ymd] => 2025-06-16 07:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 04:25:05' and `end` < '2025-06-16 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-06-16 07:25:17] Production.INFO: count ==90 [2025-06-16 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-16 04:25:05 - End Time 2025-06-16 07:25:05 [2025-06-16 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15303675', 'tblTempUsageDetail_20' ) start [2025-06-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15303675', 'tblTempUsageDetail_20' ) end [2025-06-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15303675', 'tblTempVendorCDR_20' ) start [2025-06-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15303675', 'tblTempVendorCDR_20' ) end [2025-06-16 07:25:17] Production.INFO: ProcessCDR(1,15303675,1,1,2) [2025-06-16 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15303675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15303675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15303675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15303675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15303675', 'tblTempUsageDetail_20' ) start [2025-06-16 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15303675', 'tblTempUsageDetail_20' ) end [2025-06-16 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-16 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-16 07:25:23] Production.INFO: ==1126== Releasing lock... [2025-06-16 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 07:25:23] Production.INFO: 28.5 MB #Memory Used# [2025-06-16 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 05:25:05 [end_date_ymd] => 2025-06-16 08:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 05:25:05' and `end` < '2025-06-16 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-06-16 08:25:17] Production.INFO: count ==414 [2025-06-16 08:25:18] Production.ERROR: pbx CDR StartTime 2025-06-16 05:25:05 - End Time 2025-06-16 08:25:05 [2025-06-16 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15303922', 'tblTempUsageDetail_20' ) start [2025-06-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15303922', 'tblTempUsageDetail_20' ) end [2025-06-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15303922', 'tblTempVendorCDR_20' ) start [2025-06-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15303922', 'tblTempVendorCDR_20' ) end [2025-06-16 08:25:18] Production.INFO: ProcessCDR(1,15303922,1,1,2) [2025-06-16 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15303922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15303922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15303922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15303922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15303922', 'tblTempUsageDetail_20' ) start [2025-06-16 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15303922', 'tblTempUsageDetail_20' ) end [2025-06-16 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-16 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-16 08:25:24] Production.INFO: ==6253== Releasing lock... [2025-06-16 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 08:25:24] Production.INFO: 31.5 MB #Memory Used# [2025-06-16 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 06:25:05 [end_date_ymd] => 2025-06-16 09:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 06:25:05' and `end` < '2025-06-16 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-06-16 09:25:18] Production.INFO: count ==1316 [2025-06-16 09:25:18] Production.ERROR: pbx CDR StartTime 2025-06-16 06:25:05 - End Time 2025-06-16 09:25:05 [2025-06-16 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15304169', 'tblTempUsageDetail_20' ) start [2025-06-16 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15304169', 'tblTempUsageDetail_20' ) end [2025-06-16 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15304169', 'tblTempVendorCDR_20' ) start [2025-06-16 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15304169', 'tblTempVendorCDR_20' ) end [2025-06-16 09:25:18] Production.INFO: ProcessCDR(1,15304169,1,1,2) [2025-06-16 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15304169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15304169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15304169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15304169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15304169', 'tblTempUsageDetail_20' ) start [2025-06-16 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15304169', 'tblTempUsageDetail_20' ) end [2025-06-16 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-16 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-16 09:25:27] Production.INFO: ==11659== Releasing lock... [2025-06-16 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 09:25:27] Production.INFO: 38 MB #Memory Used# [2025-06-16 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 07:25:05 [end_date_ymd] => 2025-06-16 10:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 07:25:05' and `end` < '2025-06-16 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-06-16 10:25:18] Production.INFO: count ==3183 [2025-06-16 10:25:19] Production.ERROR: pbx CDR StartTime 2025-06-16 07:25:05 - End Time 2025-06-16 10:25:05 [2025-06-16 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15304416', 'tblTempUsageDetail_20' ) start [2025-06-16 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15304416', 'tblTempUsageDetail_20' ) end [2025-06-16 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15304416', 'tblTempVendorCDR_20' ) start [2025-06-16 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15304416', 'tblTempVendorCDR_20' ) end [2025-06-16 10:25:20] Production.INFO: ProcessCDR(1,15304416,1,1,2) [2025-06-16 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15304416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15304416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15304416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15304416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15304416', 'tblTempUsageDetail_20' ) start [2025-06-16 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15304416', 'tblTempUsageDetail_20' ) end [2025-06-16 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-16 10:25:29] Production.ERROR: pbx prc_insertCDR end [2025-06-16 10:25:29] Production.INFO: ==16834== Releasing lock... [2025-06-16 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 10:25:29] Production.INFO: 52 MB #Memory Used# [2025-06-16 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 08:25:06 [end_date_ymd] => 2025-06-16 11:25:06 [RateCDR] => 1 ) [2025-06-16 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-06-16 08:25:06' and `end` < '2025-06-16 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-06-16 11:25:22] Production.INFO: count ==4623 [2025-06-16 11:25:24] Production.ERROR: pbx CDR StartTime 2025-06-16 08:25:06 - End Time 2025-06-16 11:25:06 [2025-06-16 11:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15304663', 'tblTempUsageDetail_20' ) start [2025-06-16 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15304663', 'tblTempUsageDetail_20' ) end [2025-06-16 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15304663', 'tblTempVendorCDR_20' ) start [2025-06-16 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15304663', 'tblTempVendorCDR_20' ) end [2025-06-16 11:25:24] Production.INFO: ProcessCDR(1,15304663,1,1,2) [2025-06-16 11:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15304663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 11:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15304663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 11:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15304663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15304663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15304663', 'tblTempUsageDetail_20' ) start [2025-06-16 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15304663', 'tblTempUsageDetail_20' ) end [2025-06-16 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-06-16 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-06-16 11:25:35] Production.INFO: ==22858== Releasing lock... [2025-06-16 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 11:25:35] Production.INFO: 62.75 MB #Memory Used# [2025-06-16 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 09:25:06 [end_date_ymd] => 2025-06-16 12:25:06 [RateCDR] => 1 ) [2025-06-16 12: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-06-16 09:25:06' and `end` < '2025-06-16 12: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-06-16 12:25:19] Production.INFO: count ==5513 [2025-06-16 12:25:22] Production.ERROR: pbx CDR StartTime 2025-06-16 09:25:06 - End Time 2025-06-16 12:25:06 [2025-06-16 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15304910', 'tblTempUsageDetail_20' ) start [2025-06-16 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15304910', 'tblTempUsageDetail_20' ) end [2025-06-16 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15304910', 'tblTempVendorCDR_20' ) start [2025-06-16 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15304910', 'tblTempVendorCDR_20' ) end [2025-06-16 12:25:22] Production.INFO: ProcessCDR(1,15304910,1,1,2) [2025-06-16 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15304910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15304910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15304910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15304910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15304910', 'tblTempUsageDetail_20' ) start [2025-06-16 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15304910', 'tblTempUsageDetail_20' ) end [2025-06-16 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-16 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-16 12:25:33] Production.INFO: ==28241== Releasing lock... [2025-06-16 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 12:25:33] Production.INFO: 69.5 MB #Memory Used# [2025-06-16 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 10:25:05 [end_date_ymd] => 2025-06-16 13:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 10:25:05' and `end` < '2025-06-16 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-06-16 13:25:20] Production.INFO: count ==5666 [2025-06-16 13:25:23] Production.ERROR: pbx CDR StartTime 2025-06-16 10:25:05 - End Time 2025-06-16 13:25:05 [2025-06-16 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15305157', 'tblTempUsageDetail_20' ) start [2025-06-16 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15305157', 'tblTempUsageDetail_20' ) end [2025-06-16 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15305157', 'tblTempVendorCDR_20' ) start [2025-06-16 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15305157', 'tblTempVendorCDR_20' ) end [2025-06-16 13:25:23] Production.INFO: ProcessCDR(1,15305157,1,1,2) [2025-06-16 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15305157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15305157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15305157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15305157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15305157', 'tblTempUsageDetail_20' ) start [2025-06-16 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15305157', 'tblTempUsageDetail_20' ) end [2025-06-16 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-16 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-16 13:25:33] Production.INFO: ==32577== Releasing lock... [2025-06-16 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 13:25:33] Production.INFO: 70.75 MB #Memory Used# [2025-06-16 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 11:25:05 [end_date_ymd] => 2025-06-16 14:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 11:25:05' and `end` < '2025-06-16 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-06-16 14:25:19] Production.INFO: count ==5727 [2025-06-16 14:25:21] Production.ERROR: pbx CDR StartTime 2025-06-16 11:25:05 - End Time 2025-06-16 14:25:05 [2025-06-16 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15305404', 'tblTempUsageDetail_20' ) start [2025-06-16 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15305404', 'tblTempUsageDetail_20' ) end [2025-06-16 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15305404', 'tblTempVendorCDR_20' ) start [2025-06-16 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15305404', 'tblTempVendorCDR_20' ) end [2025-06-16 14:25:22] Production.INFO: ProcessCDR(1,15305404,1,1,2) [2025-06-16 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15305404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15305404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15305404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15305404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15305404', 'tblTempUsageDetail_20' ) start [2025-06-16 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15305404', 'tblTempUsageDetail_20' ) end [2025-06-16 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-16 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-16 14:25:32] Production.INFO: ==4926== Releasing lock... [2025-06-16 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 14:25:32] Production.INFO: 71.25 MB #Memory Used# [2025-06-16 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 12:25:05 [end_date_ymd] => 2025-06-16 15:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 12:25:05' and `end` < '2025-06-16 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-06-16 15:25:26] Production.INFO: count ==5611 [2025-06-16 15:25:29] Production.ERROR: pbx CDR StartTime 2025-06-16 12:25:05 - End Time 2025-06-16 15:25:05 [2025-06-16 15:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15305651', 'tblTempUsageDetail_20' ) start [2025-06-16 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15305651', 'tblTempUsageDetail_20' ) end [2025-06-16 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15305651', 'tblTempVendorCDR_20' ) start [2025-06-16 15:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15305651', 'tblTempVendorCDR_20' ) end [2025-06-16 15:25:29] Production.INFO: ProcessCDR(1,15305651,1,1,2) [2025-06-16 15:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15305651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 15:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15305651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 15:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15305651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 15:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15305651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 15:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15305651', 'tblTempUsageDetail_20' ) start [2025-06-16 15:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15305651', 'tblTempUsageDetail_20' ) end [2025-06-16 15:25:38] Production.ERROR: pbx prc_insertCDR start [2025-06-16 15:25:40] Production.ERROR: pbx prc_insertCDR end [2025-06-16 15:25:40] Production.INFO: ==9247== Releasing lock... [2025-06-16 15:25:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 15:25:40] Production.INFO: 70.25 MB #Memory Used# [2025-06-16 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 13:25:05 [end_date_ymd] => 2025-06-16 16:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 13:25:05' and `end` < '2025-06-16 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-06-16 16:25:18] Production.INFO: count ==5417 [2025-06-16 16:25:21] Production.ERROR: pbx CDR StartTime 2025-06-16 13:25:05 - End Time 2025-06-16 16:25:05 [2025-06-16 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15305898', 'tblTempUsageDetail_20' ) start [2025-06-16 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15305898', 'tblTempUsageDetail_20' ) end [2025-06-16 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15305898', 'tblTempVendorCDR_20' ) start [2025-06-16 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15305898', 'tblTempVendorCDR_20' ) end [2025-06-16 16:25:21] Production.INFO: ProcessCDR(1,15305898,1,1,2) [2025-06-16 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15305898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15305898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15305898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15305898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15305898', 'tblTempUsageDetail_20' ) start [2025-06-16 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15305898', 'tblTempUsageDetail_20' ) end [2025-06-16 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-16 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-16 16:25:33] Production.INFO: ==13967== Releasing lock... [2025-06-16 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 16:25:33] Production.INFO: 68.75 MB #Memory Used# [2025-06-16 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 14:25:05 [end_date_ymd] => 2025-06-16 17:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 14:25:05' and `end` < '2025-06-16 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-06-16 17:25:20] Production.INFO: count ==5243 [2025-06-16 17:25:23] Production.ERROR: pbx CDR StartTime 2025-06-16 14:25:05 - End Time 2025-06-16 17:25:05 [2025-06-16 17:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15306145', 'tblTempUsageDetail_20' ) start [2025-06-16 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15306145', 'tblTempUsageDetail_20' ) end [2025-06-16 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15306145', 'tblTempVendorCDR_20' ) start [2025-06-16 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15306145', 'tblTempVendorCDR_20' ) end [2025-06-16 17:25:23] Production.INFO: ProcessCDR(1,15306145,1,1,2) [2025-06-16 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15306145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 17:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15306145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 17:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15306145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15306145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15306145', 'tblTempUsageDetail_20' ) start [2025-06-16 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15306145', 'tblTempUsageDetail_20' ) end [2025-06-16 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-06-16 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-06-16 17:25:34] Production.INFO: ==18237== Releasing lock... [2025-06-16 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 17:25:34] Production.INFO: 67.5 MB #Memory Used# [2025-06-16 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 15:25:06 [end_date_ymd] => 2025-06-16 18:25:06 [RateCDR] => 1 ) [2025-06-16 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-06-16 15:25:06' and `end` < '2025-06-16 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-06-16 18:25:19] Production.INFO: count ==4440 [2025-06-16 18:25:21] Production.ERROR: pbx CDR StartTime 2025-06-16 15:25:06 - End Time 2025-06-16 18:25:06 [2025-06-16 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15306392', 'tblTempUsageDetail_20' ) start [2025-06-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15306392', 'tblTempUsageDetail_20' ) end [2025-06-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15306392', 'tblTempVendorCDR_20' ) start [2025-06-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15306392', 'tblTempVendorCDR_20' ) end [2025-06-16 18:25:21] Production.INFO: ProcessCDR(1,15306392,1,1,2) [2025-06-16 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15306392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15306392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15306392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15306392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15306392', 'tblTempUsageDetail_20' ) start [2025-06-16 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15306392', 'tblTempUsageDetail_20' ) end [2025-06-16 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-16 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-16 18:25:30] Production.INFO: ==23215== Releasing lock... [2025-06-16 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 18:25:30] Production.INFO: 61.5 MB #Memory Used# [2025-06-16 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 16:25:06 [end_date_ymd] => 2025-06-16 19:25:06 [RateCDR] => 1 ) [2025-06-16 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-06-16 16:25:06' and `end` < '2025-06-16 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-06-16 19:25:18] Production.INFO: count ==3481 [2025-06-16 19:25:20] Production.ERROR: pbx CDR StartTime 2025-06-16 16:25:06 - End Time 2025-06-16 19:25:06 [2025-06-16 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15306636', 'tblTempUsageDetail_20' ) start [2025-06-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15306636', 'tblTempUsageDetail_20' ) end [2025-06-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15306636', 'tblTempVendorCDR_20' ) start [2025-06-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15306636', 'tblTempVendorCDR_20' ) end [2025-06-16 19:25:20] Production.INFO: ProcessCDR(1,15306636,1,1,2) [2025-06-16 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15306636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15306636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15306636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15306636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15306636', 'tblTempUsageDetail_20' ) start [2025-06-16 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15306636', 'tblTempUsageDetail_20' ) end [2025-06-16 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-16 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-16 19:25:28] Production.INFO: ==27485== Releasing lock... [2025-06-16 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 19:25:28] Production.INFO: 55 MB #Memory Used# [2025-06-16 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 17:25:06 [end_date_ymd] => 2025-06-16 20:25:06 [RateCDR] => 1 ) [2025-06-16 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-16 17:25:06' and `end` < '2025-06-16 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-16 20:25:18] Production.INFO: count ==2613 [2025-06-16 20:25:19] Production.ERROR: pbx CDR StartTime 2025-06-16 17:25:06 - End Time 2025-06-16 20:25:06 [2025-06-16 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15306883', 'tblTempUsageDetail_20' ) start [2025-06-16 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15306883', 'tblTempUsageDetail_20' ) end [2025-06-16 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15306883', 'tblTempVendorCDR_20' ) start [2025-06-16 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15306883', 'tblTempVendorCDR_20' ) end [2025-06-16 20:25:19] Production.INFO: ProcessCDR(1,15306883,1,1,2) [2025-06-16 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15306883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15306883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15306883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15306883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15306883', 'tblTempUsageDetail_20' ) start [2025-06-16 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15306883', 'tblTempUsageDetail_20' ) end [2025-06-16 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-06-16 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-16 20:25:28] Production.INFO: ==31724== Releasing lock... [2025-06-16 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 20:25:28] Production.INFO: 48.25 MB #Memory Used# [2025-06-16 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 18:25:05 [end_date_ymd] => 2025-06-16 21:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 18:25:05' and `end` < '2025-06-16 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-06-16 21:25:18] Production.INFO: count ==2047 [2025-06-16 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-16 18:25:05 - End Time 2025-06-16 21:25:05 [2025-06-16 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15307130', 'tblTempUsageDetail_20' ) start [2025-06-16 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15307130', 'tblTempUsageDetail_20' ) end [2025-06-16 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15307130', 'tblTempVendorCDR_20' ) start [2025-06-16 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15307130', 'tblTempVendorCDR_20' ) end [2025-06-16 21:25:19] Production.INFO: ProcessCDR(1,15307130,1,1,2) [2025-06-16 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15307130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15307130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15307130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15307130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15307130', 'tblTempUsageDetail_20' ) start [2025-06-16 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15307130', 'tblTempUsageDetail_20' ) end [2025-06-16 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-16 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-16 21:25:25] Production.INFO: ==4067== Releasing lock... [2025-06-16 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 21:25:25] Production.INFO: 43.5 MB #Memory Used# [2025-06-16 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 19:25:05 [end_date_ymd] => 2025-06-16 22:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 19:25:05' and `end` < '2025-06-16 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-06-16 22:25:18] Production.INFO: count ==1446 [2025-06-16 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-16 19:25:05 - End Time 2025-06-16 22:25:05 [2025-06-16 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15307377', 'tblTempUsageDetail_20' ) start [2025-06-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15307377', 'tblTempUsageDetail_20' ) end [2025-06-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15307377', 'tblTempVendorCDR_20' ) start [2025-06-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15307377', 'tblTempVendorCDR_20' ) end [2025-06-16 22:25:18] Production.INFO: ProcessCDR(1,15307377,1,1,2) [2025-06-16 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15307377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15307377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15307377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15307377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15307377', 'tblTempUsageDetail_20' ) start [2025-06-16 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15307377', 'tblTempUsageDetail_20' ) end [2025-06-16 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-16 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-16 22:25:25] Production.INFO: ==8317== Releasing lock... [2025-06-16 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 22:25:25] Production.INFO: 39 MB #Memory Used# [2025-06-16 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-16 20:25:05 [end_date_ymd] => 2025-06-16 23:25:05 [RateCDR] => 1 ) [2025-06-16 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-06-16 20:25:05' and `end` < '2025-06-16 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-06-16 23:25:17] Production.INFO: count ==895 [2025-06-16 23:25:17] Production.ERROR: pbx CDR StartTime 2025-06-16 20:25:05 - End Time 2025-06-16 23:25:05 [2025-06-16 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15307624', 'tblTempUsageDetail_20' ) start [2025-06-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15307624', 'tblTempUsageDetail_20' ) end [2025-06-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15307624', 'tblTempVendorCDR_20' ) start [2025-06-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15307624', 'tblTempVendorCDR_20' ) end [2025-06-16 23:25:17] Production.INFO: ProcessCDR(1,15307624,1,1,2) [2025-06-16 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15307624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15307624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-16 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15307624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15307624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-16 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15307624', 'tblTempUsageDetail_20' ) start [2025-06-16 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15307624', 'tblTempUsageDetail_20' ) end [2025-06-16 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-16 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-16 23:25:24] Production.INFO: ==13093== Releasing lock... [2025-06-16 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-16 23:25:24] Production.INFO: 35 MB #Memory Used#