[2025-10-14 00:25:04] Production.INFO: next invoice date [2025-10-14 00:25:04] Production.INFO: 2025-11-14 [2025-10-14 00:25:04] Production.INFO: getdaysdiff [2025-10-14 00:25:04] Production.INFO: +31 [2025-10-14 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (43,10,2,31,31,'RMScheduler',2025-10-14 00:25:04,1,0,,,0) [2025-10-14 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 21:25:05 [end_date_ymd] => 2025-10-14 00:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-13 21:25:05' and `end` < '2025-10-14 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-10-14 00:25:30] Production.INFO: count ==490 [2025-10-14 00:25:30] Production.ERROR: pbx CDR StartTime 2025-10-13 21:25:05 - End Time 2025-10-14 00:25:05 [2025-10-14 00:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 00:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16013205', 'tblTempUsageDetail_20' ) start [2025-10-14 00:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16013205', 'tblTempUsageDetail_20' ) end [2025-10-14 00:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16013205', 'tblTempVendorCDR_20' ) start [2025-10-14 00:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16013205', 'tblTempVendorCDR_20' ) end [2025-10-14 00:25:30] Production.INFO: ProcessCDR(1,16013205,1,1,2) [2025-10-14 00:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16013205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 00:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16013205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 00:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16013205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 00:25:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16013205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 00:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16013205', 'tblTempUsageDetail_20' ) start [2025-10-14 00:25:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16013205', 'tblTempUsageDetail_20' ) end [2025-10-14 00:25:38] Production.ERROR: pbx prc_insertCDR start [2025-10-14 00:25:39] Production.ERROR: pbx prc_insertCDR end [2025-10-14 00:25:45] Production.INFO: ==29159== Releasing lock... [2025-10-14 00:25:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 00:25:45] Production.INFO: 35.25 MB #Memory Used# [2025-10-14 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 22:25:05 [end_date_ymd] => 2025-10-14 01:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-13 22:25:05' and `end` < '2025-10-14 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-10-14 01:25:18] Production.INFO: count ==466 [2025-10-14 01:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 22:25:05 - End Time 2025-10-14 01:25:05 [2025-10-14 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16013452', 'tblTempUsageDetail_20' ) start [2025-10-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16013452', 'tblTempUsageDetail_20' ) end [2025-10-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16013452', 'tblTempVendorCDR_20' ) start [2025-10-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16013452', 'tblTempVendorCDR_20' ) end [2025-10-14 01:25:18] Production.INFO: ProcessCDR(1,16013452,1,1,2) [2025-10-14 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16013452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16013452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16013452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16013452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16013452', 'tblTempUsageDetail_20' ) start [2025-10-14 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16013452', 'tblTempUsageDetail_20' ) end [2025-10-14 01:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-14 01:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-14 01:25:27] Production.INFO: ==2297== Releasing lock... [2025-10-14 01:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 01:25:27] Production.INFO: 32.25 MB #Memory Used# [2025-10-14 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-13 23:25:06 [end_date_ymd] => 2025-10-14 02:25:06 [RateCDR] => 1 ) [2025-10-14 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-10-13 23:25:06' and `end` < '2025-10-14 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-10-14 02:25:18] Production.INFO: count ==462 [2025-10-14 02:25:18] Production.ERROR: pbx CDR StartTime 2025-10-13 23:25:06 - End Time 2025-10-14 02:25:06 [2025-10-14 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16013699', 'tblTempUsageDetail_20' ) start [2025-10-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16013699', 'tblTempUsageDetail_20' ) end [2025-10-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16013699', 'tblTempVendorCDR_20' ) start [2025-10-14 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16013699', 'tblTempVendorCDR_20' ) end [2025-10-14 02:25:18] Production.INFO: ProcessCDR(1,16013699,1,1,2) [2025-10-14 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16013699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16013699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16013699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 02:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16013699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16013699', 'tblTempUsageDetail_20' ) start [2025-10-14 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16013699', 'tblTempUsageDetail_20' ) end [2025-10-14 02:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-14 02:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-14 02:25:27] Production.INFO: ==7259== Releasing lock... [2025-10-14 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 02:25:27] Production.INFO: 32.25 MB #Memory Used# [2025-10-14 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 00:25:05 [end_date_ymd] => 2025-10-14 03:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-14 00:25:05' and `end` < '2025-10-14 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-10-14 03:25:17] Production.INFO: count ==251 [2025-10-14 03:25:17] Production.ERROR: pbx CDR StartTime 2025-10-14 00:25:05 - End Time 2025-10-14 03:25:05 [2025-10-14 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16013946', 'tblTempUsageDetail_20' ) start [2025-10-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16013946', 'tblTempUsageDetail_20' ) end [2025-10-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16013946', 'tblTempVendorCDR_20' ) start [2025-10-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16013946', 'tblTempVendorCDR_20' ) end [2025-10-14 03:25:17] Production.INFO: ProcessCDR(1,16013946,1,1,2) [2025-10-14 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16013946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16013946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16013946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16013946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16013946', 'tblTempUsageDetail_20' ) start [2025-10-14 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16013946', 'tblTempUsageDetail_20' ) end [2025-10-14 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-14 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-14 03:25:25] Production.INFO: ==11714== Releasing lock... [2025-10-14 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 03:25:25] Production.INFO: 30 MB #Memory Used# [2025-10-14 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 01:25:05 [end_date_ymd] => 2025-10-14 04:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-14 01:25:05' and `end` < '2025-10-14 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-10-14 04:25:17] Production.INFO: count ==169 [2025-10-14 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-14 01:25:05 - End Time 2025-10-14 04:25:05 [2025-10-14 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16014194', 'tblTempUsageDetail_20' ) start [2025-10-14 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16014194', 'tblTempUsageDetail_20' ) end [2025-10-14 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16014194', 'tblTempVendorCDR_20' ) start [2025-10-14 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16014194', 'tblTempVendorCDR_20' ) end [2025-10-14 04:25:18] Production.INFO: ProcessCDR(1,16014194,1,1,2) [2025-10-14 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16014194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16014194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16014194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 04:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16014194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 04:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16014194', 'tblTempUsageDetail_20' ) start [2025-10-14 04:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16014194', 'tblTempUsageDetail_20' ) end [2025-10-14 04:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-14 04:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-14 04:25:27] Production.INFO: ==16139== Releasing lock... [2025-10-14 04:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 04:25:27] Production.INFO: 29.5 MB #Memory Used# [2025-10-14 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 02:25:05 [end_date_ymd] => 2025-10-14 05:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-14 02:25:05' and `end` < '2025-10-14 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-10-14 05:25:18] Production.INFO: count ==124 [2025-10-14 05:25:18] Production.ERROR: pbx CDR StartTime 2025-10-14 02:25:05 - End Time 2025-10-14 05:25:05 [2025-10-14 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16014442', 'tblTempUsageDetail_20' ) start [2025-10-14 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16014442', 'tblTempUsageDetail_20' ) end [2025-10-14 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16014442', 'tblTempVendorCDR_20' ) start [2025-10-14 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16014442', 'tblTempVendorCDR_20' ) end [2025-10-14 05:25:18] Production.INFO: ProcessCDR(1,16014442,1,1,2) [2025-10-14 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16014442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16014442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16014442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16014442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16014442', 'tblTempUsageDetail_20' ) start [2025-10-14 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16014442', 'tblTempUsageDetail_20' ) end [2025-10-14 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-10-14 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-10-14 05:25:24] Production.INFO: ==20791== Releasing lock... [2025-10-14 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 05:25:24] Production.INFO: 28.75 MB #Memory Used# [2025-10-14 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 03:25:06 [end_date_ymd] => 2025-10-14 06:25:06 [RateCDR] => 1 ) [2025-10-14 06:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-14 03:25:06' and `end` < '2025-10-14 06:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-14 06:25:18] Production.INFO: count ==98 [2025-10-14 06:25:18] Production.ERROR: pbx CDR StartTime 2025-10-14 03:25:06 - End Time 2025-10-14 06:25:06 [2025-10-14 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16014689', 'tblTempUsageDetail_20' ) start [2025-10-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16014689', 'tblTempUsageDetail_20' ) end [2025-10-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16014689', 'tblTempVendorCDR_20' ) start [2025-10-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16014689', 'tblTempVendorCDR_20' ) end [2025-10-14 06:25:18] Production.INFO: ProcessCDR(1,16014689,1,1,2) [2025-10-14 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16014689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 06:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16014689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 06:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16014689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 06:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16014689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 06:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16014689', 'tblTempUsageDetail_20' ) start [2025-10-14 06:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16014689', 'tblTempUsageDetail_20' ) end [2025-10-14 06:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-14 06:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-14 06:25:27] Production.INFO: ==26096== Releasing lock... [2025-10-14 06:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 06:25:27] Production.INFO: 28.5 MB #Memory Used# [2025-10-14 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 04:25:06 [end_date_ymd] => 2025-10-14 07:25:06 [RateCDR] => 1 ) [2025-10-14 07: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-10-14 04:25:06' and `end` < '2025-10-14 07: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-10-14 07:25:18] Production.INFO: count ==85 [2025-10-14 07:25:18] Production.ERROR: pbx CDR StartTime 2025-10-14 04:25:06 - End Time 2025-10-14 07:25:06 [2025-10-14 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16014936', 'tblTempUsageDetail_20' ) start [2025-10-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16014936', 'tblTempUsageDetail_20' ) end [2025-10-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16014936', 'tblTempVendorCDR_20' ) start [2025-10-14 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16014936', 'tblTempVendorCDR_20' ) end [2025-10-14 07:25:18] Production.INFO: ProcessCDR(1,16014936,1,1,2) [2025-10-14 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16014936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 07:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16014936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 07:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16014936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 07:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16014936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 07:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16014936', 'tblTempUsageDetail_20' ) start [2025-10-14 07:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16014936', 'tblTempUsageDetail_20' ) end [2025-10-14 07:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-14 07:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-14 07:25:27] Production.INFO: ==30854== Releasing lock... [2025-10-14 07:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 07:25:27] Production.INFO: 28.25 MB #Memory Used# [2025-10-14 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 05:25:05 [end_date_ymd] => 2025-10-14 08:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-14 05:25:05' and `end` < '2025-10-14 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-10-14 08:25:17] Production.INFO: count ==455 [2025-10-14 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-14 05:25:05 - End Time 2025-10-14 08:25:05 [2025-10-14 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16015183', 'tblTempUsageDetail_20' ) start [2025-10-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16015183', 'tblTempUsageDetail_20' ) end [2025-10-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16015183', 'tblTempVendorCDR_20' ) start [2025-10-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16015183', 'tblTempVendorCDR_20' ) end [2025-10-14 08:25:17] Production.INFO: ProcessCDR(1,16015183,1,1,2) [2025-10-14 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16015183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16015183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16015183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16015183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16015183', 'tblTempUsageDetail_20' ) start [2025-10-14 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16015183', 'tblTempUsageDetail_20' ) end [2025-10-14 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-14 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-14 08:25:26] Production.INFO: ==3755== Releasing lock... [2025-10-14 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 08:25:26] Production.INFO: 32 MB #Memory Used# [2025-10-14 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 06:25:05 [end_date_ymd] => 2025-10-14 09:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-14 06:25:05' and `end` < '2025-10-14 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-10-14 09:25:19] Production.INFO: count ==2327 [2025-10-14 09:25:20] Production.ERROR: pbx CDR StartTime 2025-10-14 06:25:05 - End Time 2025-10-14 09:25:05 [2025-10-14 09:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16015430', 'tblTempUsageDetail_20' ) start [2025-10-14 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16015430', 'tblTempUsageDetail_20' ) end [2025-10-14 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16015430', 'tblTempVendorCDR_20' ) start [2025-10-14 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16015430', 'tblTempVendorCDR_20' ) end [2025-10-14 09:25:20] Production.INFO: ProcessCDR(1,16015430,1,1,2) [2025-10-14 09:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16015430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 09:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16015430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 09:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16015430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 09:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16015430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 09:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16015430', 'tblTempUsageDetail_20' ) start [2025-10-14 09:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16015430', 'tblTempUsageDetail_20' ) end [2025-10-14 09:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-14 09:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-14 09:25:31] Production.INFO: ==8738== Releasing lock... [2025-10-14 09:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 09:25:31] Production.INFO: 46 MB #Memory Used# [2025-10-14 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 07:25:06 [end_date_ymd] => 2025-10-14 10:25:06 [RateCDR] => 1 ) [2025-10-14 10: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-10-14 07:25:06' and `end` < '2025-10-14 10: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-10-14 10:25:21] Production.INFO: count ==4490 [2025-10-14 10:25:23] Production.ERROR: pbx CDR StartTime 2025-10-14 07:25:06 - End Time 2025-10-14 10:25:06 [2025-10-14 10:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16015677', 'tblTempUsageDetail_20' ) start [2025-10-14 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16015677', 'tblTempUsageDetail_20' ) end [2025-10-14 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16015677', 'tblTempVendorCDR_20' ) start [2025-10-14 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16015677', 'tblTempVendorCDR_20' ) end [2025-10-14 10:25:23] Production.INFO: ProcessCDR(1,16015677,1,1,2) [2025-10-14 10:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16015677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 10:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16015677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 10:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16015677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 10:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16015677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 10:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16015677', 'tblTempUsageDetail_20' ) start [2025-10-14 10:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16015677', 'tblTempUsageDetail_20' ) end [2025-10-14 10:25:35] Production.ERROR: pbx prc_insertCDR start [2025-10-14 10:25:37] Production.ERROR: pbx prc_insertCDR end [2025-10-14 10:25:37] Production.INFO: ==13382== Releasing lock... [2025-10-14 10:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 10:25:37] Production.INFO: 61.75 MB #Memory Used# [2025-10-14 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 08:25:06 [end_date_ymd] => 2025-10-14 11:25:06 [RateCDR] => 1 ) [2025-10-14 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-10-14 08:25:06' and `end` < '2025-10-14 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-10-14 11:25:21] Production.INFO: count ==6630 [2025-10-14 11:25:25] Production.ERROR: pbx CDR StartTime 2025-10-14 08:25:06 - End Time 2025-10-14 11:25:06 [2025-10-14 11:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16015924', 'tblTempUsageDetail_20' ) start [2025-10-14 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16015924', 'tblTempUsageDetail_20' ) end [2025-10-14 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16015924', 'tblTempVendorCDR_20' ) start [2025-10-14 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16015924', 'tblTempVendorCDR_20' ) end [2025-10-14 11:25:26] Production.INFO: ProcessCDR(1,16015924,1,1,2) [2025-10-14 11:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16015924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 11:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16015924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 11:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16015924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 11:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16015924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16015924', 'tblTempUsageDetail_20' ) start [2025-10-14 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16015924', 'tblTempUsageDetail_20' ) end [2025-10-14 11:25:37] Production.ERROR: pbx prc_insertCDR start [2025-10-14 11:25:40] Production.ERROR: pbx prc_insertCDR end [2025-10-14 11:25:40] Production.INFO: ==17730== Releasing lock... [2025-10-14 11:25:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 11:25:40] Production.INFO: 78 MB #Memory Used# [2025-10-14 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 09:25:05 [end_date_ymd] => 2025-10-14 12:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-14 09:25:05' and `end` < '2025-10-14 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-10-14 12:25:19] Production.INFO: count ==6762 [2025-10-14 12:25:22] Production.ERROR: pbx CDR StartTime 2025-10-14 09:25:05 - End Time 2025-10-14 12:25:05 [2025-10-14 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16016171', 'tblTempUsageDetail_20' ) start [2025-10-14 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16016171', 'tblTempUsageDetail_20' ) end [2025-10-14 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16016171', 'tblTempVendorCDR_20' ) start [2025-10-14 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16016171', 'tblTempVendorCDR_20' ) end [2025-10-14 12:25:23] Production.INFO: ProcessCDR(1,16016171,1,1,2) [2025-10-14 12:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16016171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16016171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16016171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 12:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16016171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16016171', 'tblTempUsageDetail_20' ) start [2025-10-14 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16016171', 'tblTempUsageDetail_20' ) end [2025-10-14 12:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-14 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-14 12:25:36] Production.INFO: ==22085== Releasing lock... [2025-10-14 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 12:25:36] Production.INFO: 79 MB #Memory Used# [2025-10-14 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 10:25:05 [end_date_ymd] => 2025-10-14 13:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-14 10:25:05' and `end` < '2025-10-14 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-10-14 13:25:20] Production.INFO: count ==6801 [2025-10-14 13:25:24] Production.ERROR: pbx CDR StartTime 2025-10-14 10:25:05 - End Time 2025-10-14 13:25:05 [2025-10-14 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16016418', 'tblTempUsageDetail_20' ) start [2025-10-14 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16016418', 'tblTempUsageDetail_20' ) end [2025-10-14 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16016418', 'tblTempVendorCDR_20' ) start [2025-10-14 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16016418', 'tblTempVendorCDR_20' ) end [2025-10-14 13:25:24] Production.INFO: ProcessCDR(1,16016418,1,1,2) [2025-10-14 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16016418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 13:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16016418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 13:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16016418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 13:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16016418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16016418', 'tblTempUsageDetail_20' ) start [2025-10-14 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16016418', 'tblTempUsageDetail_20' ) end [2025-10-14 13:25:36] Production.ERROR: pbx prc_insertCDR start [2025-10-14 13:25:38] Production.ERROR: pbx prc_insertCDR end [2025-10-14 13:25:38] Production.INFO: ==26917== Releasing lock... [2025-10-14 13:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 13:25:38] Production.INFO: 79.25 MB #Memory Used# [2025-10-14 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 11:25:05 [end_date_ymd] => 2025-10-14 14:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-14 11:25:05' and `end` < '2025-10-14 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-10-14 14:25:31] Production.INFO: count ==5398 [2025-10-14 14:25:34] Production.ERROR: pbx CDR StartTime 2025-10-14 11:25:05 - End Time 2025-10-14 14:25:05 [2025-10-14 14:25:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 14:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16016665', 'tblTempUsageDetail_20' ) start [2025-10-14 14:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16016665', 'tblTempUsageDetail_20' ) end [2025-10-14 14:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16016665', 'tblTempVendorCDR_20' ) start [2025-10-14 14:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16016665', 'tblTempVendorCDR_20' ) end [2025-10-14 14:25:34] Production.INFO: ProcessCDR(1,16016665,1,1,2) [2025-10-14 14:25:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16016665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 14:25:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16016665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 14:25:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16016665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 14:25:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16016665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 14:25:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16016665', 'tblTempUsageDetail_20' ) start [2025-10-14 14:25:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16016665', 'tblTempUsageDetail_20' ) end [2025-10-14 14:25:45] Production.ERROR: pbx prc_insertCDR start [2025-10-14 14:25:48] Production.ERROR: pbx prc_insertCDR end [2025-10-14 14:25:48] Production.INFO: ==32306== Releasing lock... [2025-10-14 14:25:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 14:25:48] Production.INFO: 68.75 MB #Memory Used# [2025-10-14 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 12:25:06 [end_date_ymd] => 2025-10-14 15:25:06 [RateCDR] => 1 ) [2025-10-14 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-14 12:25:06' and `end` < '2025-10-14 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-14 15:25:21] Production.INFO: count ==5829 [2025-10-14 15:25:24] Production.ERROR: pbx CDR StartTime 2025-10-14 12:25:06 - End Time 2025-10-14 15:25:06 [2025-10-14 15:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16016912', 'tblTempUsageDetail_20' ) start [2025-10-14 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16016912', 'tblTempUsageDetail_20' ) end [2025-10-14 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16016912', 'tblTempVendorCDR_20' ) start [2025-10-14 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16016912', 'tblTempVendorCDR_20' ) end [2025-10-14 15:25:25] Production.INFO: ProcessCDR(1,16016912,1,1,2) [2025-10-14 15:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16016912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 15:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16016912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 15:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16016912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 15:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16016912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16016912', 'tblTempUsageDetail_20' ) start [2025-10-14 15:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16016912', 'tblTempUsageDetail_20' ) end [2025-10-14 15:25:36] Production.ERROR: pbx prc_insertCDR start [2025-10-14 15:25:39] Production.ERROR: pbx prc_insertCDR end [2025-10-14 15:25:39] Production.INFO: ==5491== Releasing lock... [2025-10-14 15:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 15:25:39] Production.INFO: 72 MB #Memory Used# [2025-10-14 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 13:25:05 [end_date_ymd] => 2025-10-14 16:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-14 13:25:05' and `end` < '2025-10-14 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-10-14 16:25:18] Production.INFO: count ==6233 [2025-10-14 16:25:21] Production.ERROR: pbx CDR StartTime 2025-10-14 13:25:05 - End Time 2025-10-14 16:25:05 [2025-10-14 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16017159', 'tblTempUsageDetail_20' ) start [2025-10-14 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16017159', 'tblTempUsageDetail_20' ) end [2025-10-14 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16017159', 'tblTempVendorCDR_20' ) start [2025-10-14 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16017159', 'tblTempVendorCDR_20' ) end [2025-10-14 16:25:22] Production.INFO: ProcessCDR(1,16017159,1,1,2) [2025-10-14 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16017159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16017159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16017159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 16:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16017159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16017159', 'tblTempUsageDetail_20' ) start [2025-10-14 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16017159', 'tblTempUsageDetail_20' ) end [2025-10-14 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-14 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-14 16:25:35] Production.INFO: ==9948== Releasing lock... [2025-10-14 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 16:25:35] Production.INFO: 75 MB #Memory Used# [2025-10-14 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 14:25:06 [end_date_ymd] => 2025-10-14 17:25:06 [RateCDR] => 1 ) [2025-10-14 17: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-10-14 14:25:06' and `end` < '2025-10-14 17: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-10-14 17:25:19] Production.INFO: count ==5983 [2025-10-14 17:25:22] Production.ERROR: pbx CDR StartTime 2025-10-14 14:25:06 - End Time 2025-10-14 17:25:06 [2025-10-14 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16017406', 'tblTempUsageDetail_20' ) start [2025-10-14 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16017406', 'tblTempUsageDetail_20' ) end [2025-10-14 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16017406', 'tblTempVendorCDR_20' ) start [2025-10-14 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16017406', 'tblTempVendorCDR_20' ) end [2025-10-14 17:25:23] Production.INFO: ProcessCDR(1,16017406,1,1,2) [2025-10-14 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16017406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 17:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16017406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 17:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16017406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 17:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16017406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 17:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16017406', 'tblTempUsageDetail_20' ) start [2025-10-14 17:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16017406', 'tblTempUsageDetail_20' ) end [2025-10-14 17:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-14 17:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-14 17:25:35] Production.INFO: ==14291== Releasing lock... [2025-10-14 17:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 17:25:35] Production.INFO: 73 MB #Memory Used# [2025-10-14 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 15:25:05 [end_date_ymd] => 2025-10-14 18:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-14 15:25:05' and `end` < '2025-10-14 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-10-14 18:25:18] Production.INFO: count ==4870 [2025-10-14 18:25:20] Production.ERROR: pbx CDR StartTime 2025-10-14 15:25:05 - End Time 2025-10-14 18:25:05 [2025-10-14 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16017653', 'tblTempUsageDetail_20' ) start [2025-10-14 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16017653', 'tblTempUsageDetail_20' ) end [2025-10-14 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16017653', 'tblTempVendorCDR_20' ) start [2025-10-14 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16017653', 'tblTempVendorCDR_20' ) end [2025-10-14 18:25:21] Production.INFO: ProcessCDR(1,16017653,1,1,2) [2025-10-14 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16017653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16017653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16017653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 18:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16017653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16017653', 'tblTempUsageDetail_20' ) start [2025-10-14 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16017653', 'tblTempUsageDetail_20' ) end [2025-10-14 18:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-14 18:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-14 18:25:32] Production.INFO: ==18588== Releasing lock... [2025-10-14 18:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 18:25:32] Production.INFO: 64.75 MB #Memory Used# [2025-10-14 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 16:25:06 [end_date_ymd] => 2025-10-14 19:25:06 [RateCDR] => 1 ) [2025-10-14 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-10-14 16:25:06' and `end` < '2025-10-14 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-10-14 19:25:19] Production.INFO: count ==3324 [2025-10-14 19:25:20] Production.ERROR: pbx CDR StartTime 2025-10-14 16:25:06 - End Time 2025-10-14 19:25:06 [2025-10-14 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16017897', 'tblTempUsageDetail_20' ) start [2025-10-14 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16017897', 'tblTempUsageDetail_20' ) end [2025-10-14 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16017897', 'tblTempVendorCDR_20' ) start [2025-10-14 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16017897', 'tblTempVendorCDR_20' ) end [2025-10-14 19:25:20] Production.INFO: ProcessCDR(1,16017897,1,1,2) [2025-10-14 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16017897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 19:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16017897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 19:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16017897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 19:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16017897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 19:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16017897', 'tblTempUsageDetail_20' ) start [2025-10-14 19:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16017897', 'tblTempUsageDetail_20' ) end [2025-10-14 19:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-14 19:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-14 19:25:31] Production.INFO: ==22908== Releasing lock... [2025-10-14 19:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 19:25:31] Production.INFO: 53.25 MB #Memory Used# [2025-10-14 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 17:25:05 [end_date_ymd] => 2025-10-14 20:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-14 17:25:05' and `end` < '2025-10-14 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-10-14 20:25:17] Production.INFO: count ==2176 [2025-10-14 20:25:18] Production.ERROR: pbx CDR StartTime 2025-10-14 17:25:05 - End Time 2025-10-14 20:25:05 [2025-10-14 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16018144', 'tblTempUsageDetail_20' ) start [2025-10-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16018144', 'tblTempUsageDetail_20' ) end [2025-10-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16018144', 'tblTempVendorCDR_20' ) start [2025-10-14 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16018144', 'tblTempVendorCDR_20' ) end [2025-10-14 20:25:18] Production.INFO: ProcessCDR(1,16018144,1,1,2) [2025-10-14 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16018144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16018144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16018144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16018144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16018144', 'tblTempUsageDetail_20' ) start [2025-10-14 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16018144', 'tblTempUsageDetail_20' ) end [2025-10-14 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-14 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-14 20:25:28] Production.INFO: ==27467== Releasing lock... [2025-10-14 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 20:25:28] Production.INFO: 44.5 MB #Memory Used# [2025-10-14 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 18:25:05 [end_date_ymd] => 2025-10-14 21:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-14 18:25:05' and `end` < '2025-10-14 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-10-14 21:25:18] Production.INFO: count ==1465 [2025-10-14 21:25:18] Production.ERROR: pbx CDR StartTime 2025-10-14 18:25:05 - End Time 2025-10-14 21:25:05 [2025-10-14 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16018391', 'tblTempUsageDetail_20' ) start [2025-10-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16018391', 'tblTempUsageDetail_20' ) end [2025-10-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16018391', 'tblTempVendorCDR_20' ) start [2025-10-14 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16018391', 'tblTempVendorCDR_20' ) end [2025-10-14 21:25:18] Production.INFO: ProcessCDR(1,16018391,1,1,2) [2025-10-14 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16018391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16018391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16018391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16018391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16018391', 'tblTempUsageDetail_20' ) start [2025-10-14 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16018391', 'tblTempUsageDetail_20' ) end [2025-10-14 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-14 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-14 21:25:28] Production.INFO: ==31941== Releasing lock... [2025-10-14 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 21:25:28] Production.INFO: 39.25 MB #Memory Used# [2025-10-14 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 19:25:05 [end_date_ymd] => 2025-10-14 22:25:05 [RateCDR] => 1 ) [2025-10-14 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-10-14 19:25:05' and `end` < '2025-10-14 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-10-14 22:25:17] Production.INFO: count ==1055 [2025-10-14 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-14 19:25:05 - End Time 2025-10-14 22:25:05 [2025-10-14 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16018638', 'tblTempUsageDetail_20' ) start [2025-10-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16018638', 'tblTempUsageDetail_20' ) end [2025-10-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16018638', 'tblTempVendorCDR_20' ) start [2025-10-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16018638', 'tblTempVendorCDR_20' ) end [2025-10-14 22:25:18] Production.INFO: ProcessCDR(1,16018638,1,1,2) [2025-10-14 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16018638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16018638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16018638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16018638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16018638', 'tblTempUsageDetail_20' ) start [2025-10-14 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16018638', 'tblTempUsageDetail_20' ) end [2025-10-14 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-14 22:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-14 22:25:28] Production.INFO: ==4254== Releasing lock... [2025-10-14 22:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 22:25:28] Production.INFO: 36.5 MB #Memory Used# [2025-10-14 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 20:25:06 [end_date_ymd] => 2025-10-14 23:25:06 [RateCDR] => 1 ) [2025-10-14 23: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-10-14 20:25:06' and `end` < '2025-10-14 23: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-10-14 23:25:18] Production.INFO: count ==763 [2025-10-14 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-14 20:25:06 - End Time 2025-10-14 23:25:06 [2025-10-14 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16018885', 'tblTempUsageDetail_20' ) start [2025-10-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16018885', 'tblTempUsageDetail_20' ) end [2025-10-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16018885', 'tblTempVendorCDR_20' ) start [2025-10-14 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16018885', 'tblTempVendorCDR_20' ) end [2025-10-14 23:25:18] Production.INFO: ProcessCDR(1,16018885,1,1,2) [2025-10-14 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16018885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 23:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16018885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-14 23:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16018885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 23:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16018885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-14 23:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16018885', 'tblTempUsageDetail_20' ) start [2025-10-14 23:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16018885', 'tblTempUsageDetail_20' ) end [2025-10-14 23:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-14 23:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-14 23:25:28] Production.INFO: ==9623== Releasing lock... [2025-10-14 23:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-14 23:25:28] Production.INFO: 34.25 MB #Memory Used#