[2025-06-25 00:25:04] Production.INFO: next invoice date [2025-06-25 00:25:04] Production.INFO: 2025-07-25 [2025-06-25 00:25:04] Production.INFO: getdaysdiff [2025-06-25 00:25:04] Production.INFO: +30 [2025-06-25 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (111,11,1,30,30,'RMScheduler',2025-06-25 00:25:04,1,0,,,0) [2025-06-25 00:25:05] Production.INFO: next invoice date [2025-06-25 00:25:05] Production.INFO: 2025-07-25 [2025-06-25 00:25:05] Production.INFO: getdaysdiff [2025-06-25 00:25:05] Production.INFO: +30 [2025-06-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (110,11,1,30,30,'RMScheduler',2025-06-25 00:25:04,1,0,,,0) [2025-06-25 00:25:05] Production.INFO: next invoice date [2025-06-25 00:25:05] Production.INFO: 2025-07-08 [2025-06-25 00:25:05] Production.INFO: getdaysdiff [2025-06-25 00:25:05] Production.INFO: +13 [2025-06-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,30,13,'RMScheduler',2025-06-25 00:25:04,1,0,,,0) [2025-06-25 00:25:05] Production.INFO: next invoice date [2025-06-25 00:25:05] Production.INFO: 2025-07-08 [2025-06-25 00:25:05] Production.INFO: getdaysdiff [2025-06-25 00:25:05] Production.INFO: +13 [2025-06-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,30,13,'RMScheduler',2025-06-25 00:25:04,1,0,,,0) [2025-06-25 00:25:05] Production.INFO: next invoice date [2025-06-25 00:25:05] Production.INFO: 2025-07-08 [2025-06-25 00:25:05] Production.INFO: getdaysdiff [2025-06-25 00:25:05] Production.INFO: +13 [2025-06-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,30,13,'RMScheduler',2025-06-25 00:25:04,0,0,,,0) [2025-06-25 00:25:05] Production.INFO: next invoice date [2025-06-25 00:25:05] Production.INFO: 2025-07-08 [2025-06-25 00:25:05] Production.INFO: getdaysdiff [2025-06-25 00:25:05] Production.INFO: +13 [2025-06-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,30,13,'RMScheduler',2025-06-25 00:25:04,0,0,,,0) [2025-06-25 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 21:25:06 [end_date_ymd] => 2025-06-25 00:25:06 [RateCDR] => 1 ) [2025-06-25 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-24 21:25:06' and `end` < '2025-06-25 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-25 00:25:18] Production.INFO: count ==538 [2025-06-25 00:25:18] Production.ERROR: pbx CDR StartTime 2025-06-24 21:25:06 - End Time 2025-06-25 00:25:06 [2025-06-25 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15355286', 'tblTempUsageDetail_20' ) start [2025-06-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15355286', 'tblTempUsageDetail_20' ) end [2025-06-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15355286', 'tblTempVendorCDR_20' ) start [2025-06-25 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15355286', 'tblTempVendorCDR_20' ) end [2025-06-25 00:25:18] Production.INFO: ProcessCDR(1,15355286,1,1,2) [2025-06-25 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15355286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15355286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15355286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15355286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15355286', 'tblTempUsageDetail_20' ) start [2025-06-25 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15355286', 'tblTempUsageDetail_20' ) end [2025-06-25 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-25 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-25 00:25:29] Production.INFO: ==32455== Releasing lock... [2025-06-25 00:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 00:25:29] Production.INFO: 36.5 MB #Memory Used# [2025-06-25 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 22:25:05 [end_date_ymd] => 2025-06-25 01:25:05 [RateCDR] => 1 ) [2025-06-25 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-24 22:25:05' and `end` < '2025-06-25 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-25 01:25:17] Production.INFO: count ==476 [2025-06-25 01:25:17] Production.ERROR: pbx CDR StartTime 2025-06-24 22:25:05 - End Time 2025-06-25 01:25:05 [2025-06-25 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15355533', 'tblTempUsageDetail_20' ) start [2025-06-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15355533', 'tblTempUsageDetail_20' ) end [2025-06-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15355533', 'tblTempVendorCDR_20' ) start [2025-06-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15355533', 'tblTempVendorCDR_20' ) end [2025-06-25 01:25:17] Production.INFO: ProcessCDR(1,15355533,1,1,2) [2025-06-25 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15355533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15355533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15355533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15355533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15355533', 'tblTempUsageDetail_20' ) start [2025-06-25 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15355533', 'tblTempUsageDetail_20' ) end [2025-06-25 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-25 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-25 01:25:23] Production.INFO: ==5120== Releasing lock... [2025-06-25 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 01:25:23] Production.INFO: 32.25 MB #Memory Used# [2025-06-25 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-24 23:25:05 [end_date_ymd] => 2025-06-25 02:25:05 [RateCDR] => 1 ) [2025-06-25 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-24 23:25:05' and `end` < '2025-06-25 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-25 02:25:17] Production.INFO: count ==432 [2025-06-25 02:25:17] Production.ERROR: pbx CDR StartTime 2025-06-24 23:25:05 - End Time 2025-06-25 02:25:05 [2025-06-25 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15355780', 'tblTempUsageDetail_20' ) start [2025-06-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15355780', 'tblTempUsageDetail_20' ) end [2025-06-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15355780', 'tblTempVendorCDR_20' ) start [2025-06-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15355780', 'tblTempVendorCDR_20' ) end [2025-06-25 02:25:17] Production.INFO: ProcessCDR(1,15355780,1,1,2) [2025-06-25 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15355780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15355780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15355780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 02:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15355780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15355780', 'tblTempUsageDetail_20' ) start [2025-06-25 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15355780', 'tblTempUsageDetail_20' ) end [2025-06-25 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-25 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-25 02:25:24] Production.INFO: ==9547== Releasing lock... [2025-06-25 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 02:25:24] Production.INFO: 32 MB #Memory Used# [2025-06-25 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 00:25:05 [end_date_ymd] => 2025-06-25 03:25:05 [RateCDR] => 1 ) [2025-06-25 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-25 00:25:05' and `end` < '2025-06-25 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-25 03:25:17] Production.INFO: count ==284 [2025-06-25 03:25:18] Production.ERROR: pbx CDR StartTime 2025-06-25 00:25:05 - End Time 2025-06-25 03:25:05 [2025-06-25 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15356027', 'tblTempUsageDetail_20' ) start [2025-06-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15356027', 'tblTempUsageDetail_20' ) end [2025-06-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15356027', 'tblTempVendorCDR_20' ) start [2025-06-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15356027', 'tblTempVendorCDR_20' ) end [2025-06-25 03:25:18] Production.INFO: ProcessCDR(1,15356027,1,1,2) [2025-06-25 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15356027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15356027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15356027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15356027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15356027', 'tblTempUsageDetail_20' ) start [2025-06-25 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15356027', 'tblTempUsageDetail_20' ) end [2025-06-25 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-25 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-25 03:25:24] Production.INFO: ==13839== Releasing lock... [2025-06-25 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 03:25:24] Production.INFO: 30.25 MB #Memory Used# [2025-06-25 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 01:25:05 [end_date_ymd] => 2025-06-25 04:25:05 [RateCDR] => 1 ) [2025-06-25 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-25 01:25:05' and `end` < '2025-06-25 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-25 04:25:17] Production.INFO: count ==211 [2025-06-25 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-25 01:25:05 - End Time 2025-06-25 04:25:05 [2025-06-25 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15356275', 'tblTempUsageDetail_20' ) start [2025-06-25 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15356275', 'tblTempUsageDetail_20' ) end [2025-06-25 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15356275', 'tblTempVendorCDR_20' ) start [2025-06-25 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15356275', 'tblTempVendorCDR_20' ) end [2025-06-25 04:25:17] Production.INFO: ProcessCDR(1,15356275,1,1,2) [2025-06-25 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15356275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15356275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15356275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15356275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15356275', 'tblTempUsageDetail_20' ) start [2025-06-25 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15356275', 'tblTempUsageDetail_20' ) end [2025-06-25 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-06-25 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-06-25 04:25:21] Production.INFO: ==18130== Releasing lock... [2025-06-25 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 04:25:21] Production.INFO: 30 MB #Memory Used# [2025-06-25 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 02:25:05 [end_date_ymd] => 2025-06-25 05:25:05 [RateCDR] => 1 ) [2025-06-25 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-25 02:25:05' and `end` < '2025-06-25 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-25 05:25:17] Production.INFO: count ==135 [2025-06-25 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-25 02:25:05 - End Time 2025-06-25 05:25:05 [2025-06-25 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15356523', 'tblTempUsageDetail_20' ) start [2025-06-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15356523', 'tblTempUsageDetail_20' ) end [2025-06-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15356523', 'tblTempVendorCDR_20' ) start [2025-06-25 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15356523', 'tblTempVendorCDR_20' ) end [2025-06-25 05:25:17] Production.INFO: ProcessCDR(1,15356523,1,1,2) [2025-06-25 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15356523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15356523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15356523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15356523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15356523', 'tblTempUsageDetail_20' ) start [2025-06-25 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15356523', 'tblTempUsageDetail_20' ) end [2025-06-25 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-06-25 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-06-25 05:25:21] Production.INFO: ==22473== Releasing lock... [2025-06-25 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 05:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-06-25 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 03:25:05 [end_date_ymd] => 2025-06-25 06:25:05 [RateCDR] => 1 ) [2025-06-25 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-25 03:25:05' and `end` < '2025-06-25 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-25 06:25:17] Production.INFO: count ==82 [2025-06-25 06:25:17] Production.ERROR: pbx CDR StartTime 2025-06-25 03:25:05 - End Time 2025-06-25 06:25:05 [2025-06-25 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15356770', 'tblTempUsageDetail_20' ) start [2025-06-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15356770', 'tblTempUsageDetail_20' ) end [2025-06-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15356770', 'tblTempVendorCDR_20' ) start [2025-06-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15356770', 'tblTempVendorCDR_20' ) end [2025-06-25 06:25:17] Production.INFO: ProcessCDR(1,15356770,1,1,2) [2025-06-25 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15356770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15356770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15356770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15356770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15356770', 'tblTempUsageDetail_20' ) start [2025-06-25 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15356770', 'tblTempUsageDetail_20' ) end [2025-06-25 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-25 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-25 06:25:24] Production.INFO: ==27420== Releasing lock... [2025-06-25 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 06:25:24] Production.INFO: 28.25 MB #Memory Used# [2025-06-25 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 04:25:06 [end_date_ymd] => 2025-06-25 07:25:06 [RateCDR] => 1 ) [2025-06-25 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-06-25 04:25:06' and `end` < '2025-06-25 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-06-25 07:25:18] Production.INFO: count ==103 [2025-06-25 07:25:18] Production.ERROR: pbx CDR StartTime 2025-06-25 04:25:06 - End Time 2025-06-25 07:25:06 [2025-06-25 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15357017', 'tblTempUsageDetail_20' ) start [2025-06-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15357017', 'tblTempUsageDetail_20' ) end [2025-06-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15357017', 'tblTempVendorCDR_20' ) start [2025-06-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15357017', 'tblTempVendorCDR_20' ) end [2025-06-25 07:25:18] Production.INFO: ProcessCDR(1,15357017,1,1,2) [2025-06-25 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15357017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15357017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15357017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15357017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15357017', 'tblTempUsageDetail_20' ) start [2025-06-25 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15357017', 'tblTempUsageDetail_20' ) end [2025-06-25 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-25 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-25 07:25:24] Production.INFO: ==32268== Releasing lock... [2025-06-25 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 07:25:24] Production.INFO: 28.5 MB #Memory Used# [2025-06-25 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 05:25:05 [end_date_ymd] => 2025-06-25 08:25:05 [RateCDR] => 1 ) [2025-06-25 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-25 05:25:05' and `end` < '2025-06-25 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-25 08:25:18] Production.INFO: count ==332 [2025-06-25 08:25:18] Production.ERROR: pbx CDR StartTime 2025-06-25 05:25:05 - End Time 2025-06-25 08:25:05 [2025-06-25 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15357264', 'tblTempUsageDetail_20' ) start [2025-06-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15357264', 'tblTempUsageDetail_20' ) end [2025-06-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15357264', 'tblTempVendorCDR_20' ) start [2025-06-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15357264', 'tblTempVendorCDR_20' ) end [2025-06-25 08:25:18] Production.INFO: ProcessCDR(1,15357264,1,1,2) [2025-06-25 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15357264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15357264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15357264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15357264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15357264', 'tblTempUsageDetail_20' ) start [2025-06-25 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15357264', 'tblTempUsageDetail_20' ) end [2025-06-25 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-25 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-25 08:25:25] Production.INFO: ==4673== Releasing lock... [2025-06-25 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 08:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-06-25 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 06:25:05 [end_date_ymd] => 2025-06-25 09:25:05 [RateCDR] => 1 ) [2025-06-25 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-25 06:25:05' and `end` < '2025-06-25 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-25 09:25:18] Production.INFO: count ==1235 [2025-06-25 09:25:18] Production.ERROR: pbx CDR StartTime 2025-06-25 06:25:05 - End Time 2025-06-25 09:25:05 [2025-06-25 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15357511', 'tblTempUsageDetail_20' ) start [2025-06-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15357511', 'tblTempUsageDetail_20' ) end [2025-06-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15357511', 'tblTempVendorCDR_20' ) start [2025-06-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15357511', 'tblTempVendorCDR_20' ) end [2025-06-25 09:25:18] Production.INFO: ProcessCDR(1,15357511,1,1,2) [2025-06-25 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15357511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15357511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15357511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15357511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15357511', 'tblTempUsageDetail_20' ) start [2025-06-25 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15357511', 'tblTempUsageDetail_20' ) end [2025-06-25 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-25 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-25 09:25:25] Production.INFO: ==9576== Releasing lock... [2025-06-25 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 09:25:25] Production.INFO: 38 MB #Memory Used# [2025-06-25 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 07:25:06 [end_date_ymd] => 2025-06-25 10:25:06 [RateCDR] => 1 ) [2025-06-25 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-06-25 07:25:06' and `end` < '2025-06-25 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-06-25 10:25:18] Production.INFO: count ==2810 [2025-06-25 10:25:20] Production.ERROR: pbx CDR StartTime 2025-06-25 07:25:06 - End Time 2025-06-25 10:25:06 [2025-06-25 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15357758', 'tblTempUsageDetail_20' ) start [2025-06-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15357758', 'tblTempUsageDetail_20' ) end [2025-06-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15357758', 'tblTempVendorCDR_20' ) start [2025-06-25 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15357758', 'tblTempVendorCDR_20' ) end [2025-06-25 10:25:20] Production.INFO: ProcessCDR(1,15357758,1,1,2) [2025-06-25 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15357758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15357758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15357758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15357758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15357758', 'tblTempUsageDetail_20' ) start [2025-06-25 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15357758', 'tblTempUsageDetail_20' ) end [2025-06-25 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-25 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-25 10:25:30] Production.INFO: ==14371== Releasing lock... [2025-06-25 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 10:25:30] Production.INFO: 49.75 MB #Memory Used# [2025-06-25 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 08:25:05 [end_date_ymd] => 2025-06-25 11:25:05 [RateCDR] => 1 ) [2025-06-25 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-25 08:25:05' and `end` < '2025-06-25 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-25 11:25:22] Production.INFO: count ==4400 [2025-06-25 11:25:24] Production.ERROR: pbx CDR StartTime 2025-06-25 08:25:05 - End Time 2025-06-25 11:25:05 [2025-06-25 11:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15358005', 'tblTempUsageDetail_20' ) start [2025-06-25 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15358005', 'tblTempUsageDetail_20' ) end [2025-06-25 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15358005', 'tblTempVendorCDR_20' ) start [2025-06-25 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15358005', 'tblTempVendorCDR_20' ) end [2025-06-25 11:25:24] Production.INFO: ProcessCDR(1,15358005,1,1,2) [2025-06-25 11:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15358005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15358005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15358005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15358005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15358005', 'tblTempUsageDetail_20' ) start [2025-06-25 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15358005', 'tblTempUsageDetail_20' ) end [2025-06-25 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-06-25 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-06-25 11:25:34] Production.INFO: ==18714== Releasing lock... [2025-06-25 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 11:25:34] Production.INFO: 61 MB #Memory Used# [2025-06-25 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 09:25:06 [end_date_ymd] => 2025-06-25 12:25:06 [RateCDR] => 1 ) [2025-06-25 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-25 09:25:06' and `end` < '2025-06-25 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-25 12:25:19] Production.INFO: count ==5322 [2025-06-25 12:25:21] Production.ERROR: pbx CDR StartTime 2025-06-25 09:25:06 - End Time 2025-06-25 12:25:06 [2025-06-25 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15358252', 'tblTempUsageDetail_20' ) start [2025-06-25 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15358252', 'tblTempUsageDetail_20' ) end [2025-06-25 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15358252', 'tblTempVendorCDR_20' ) start [2025-06-25 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15358252', 'tblTempVendorCDR_20' ) end [2025-06-25 12:25:22] Production.INFO: ProcessCDR(1,15358252,1,1,2) [2025-06-25 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15358252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15358252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15358252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15358252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15358252', 'tblTempUsageDetail_20' ) start [2025-06-25 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15358252', 'tblTempUsageDetail_20' ) end [2025-06-25 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-25 12:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-25 12:25:32] Production.INFO: ==23540== Releasing lock... [2025-06-25 12:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 12:25:32] Production.INFO: 68 MB #Memory Used# [2025-06-25 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 10:25:05 [end_date_ymd] => 2025-06-25 13:25:05 [RateCDR] => 1 ) [2025-06-25 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-25 10:25:05' and `end` < '2025-06-25 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-25 13:25:19] Production.INFO: count ==5686 [2025-06-25 13:25:21] Production.ERROR: pbx CDR StartTime 2025-06-25 10:25:05 - End Time 2025-06-25 13:25:05 [2025-06-25 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15358499', 'tblTempUsageDetail_20' ) start [2025-06-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15358499', 'tblTempUsageDetail_20' ) end [2025-06-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15358499', 'tblTempVendorCDR_20' ) start [2025-06-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15358499', 'tblTempVendorCDR_20' ) end [2025-06-25 13:25:22] Production.INFO: ProcessCDR(1,15358499,1,1,2) [2025-06-25 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15358499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15358499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15358499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 13:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15358499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15358499', 'tblTempUsageDetail_20' ) start [2025-06-25 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15358499', 'tblTempUsageDetail_20' ) end [2025-06-25 13:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-25 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-25 13:25:32] Production.INFO: ==28071== Releasing lock... [2025-06-25 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 13:25:32] Production.INFO: 70.75 MB #Memory Used# [2025-06-25 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 11:25:05 [end_date_ymd] => 2025-06-25 14:25:05 [RateCDR] => 1 ) [2025-06-25 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-25 11:25:05' and `end` < '2025-06-25 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-25 14:25:18] Production.INFO: count ==5704 [2025-06-25 14:25:21] Production.ERROR: pbx CDR StartTime 2025-06-25 11:25:05 - End Time 2025-06-25 14:25:05 [2025-06-25 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15358746', 'tblTempUsageDetail_20' ) start [2025-06-25 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15358746', 'tblTempUsageDetail_20' ) end [2025-06-25 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15358746', 'tblTempVendorCDR_20' ) start [2025-06-25 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15358746', 'tblTempVendorCDR_20' ) end [2025-06-25 14:25:22] Production.INFO: ProcessCDR(1,15358746,1,1,2) [2025-06-25 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15358746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15358746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15358746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15358746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15358746', 'tblTempUsageDetail_20' ) start [2025-06-25 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15358746', 'tblTempUsageDetail_20' ) end [2025-06-25 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-25 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-25 14:25:32] Production.INFO: ==32338== Releasing lock... [2025-06-25 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 14:25:32] Production.INFO: 71 MB #Memory Used# [2025-06-25 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 12:25:04 [end_date_ymd] => 2025-06-25 15:25:04 [RateCDR] => 1 ) [2025-06-25 15:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-25 12:25:04' and `end` < '2025-06-25 15:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-25 15:25:24] Production.INFO: count ==5735 [2025-06-25 15:25:27] Production.ERROR: pbx CDR StartTime 2025-06-25 12:25:04 - End Time 2025-06-25 15:25:04 [2025-06-25 15:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15358993', 'tblTempUsageDetail_20' ) start [2025-06-25 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15358993', 'tblTempUsageDetail_20' ) end [2025-06-25 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15358993', 'tblTempVendorCDR_20' ) start [2025-06-25 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15358993', 'tblTempVendorCDR_20' ) end [2025-06-25 15:25:27] Production.INFO: ProcessCDR(1,15358993,1,1,2) [2025-06-25 15:25:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15358993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 15:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15358993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 15:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15358993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 15:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15358993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15358993', 'tblTempUsageDetail_20' ) start [2025-06-25 15:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15358993', 'tblTempUsageDetail_20' ) end [2025-06-25 15:25:36] Production.ERROR: pbx prc_insertCDR start [2025-06-25 15:25:38] Production.ERROR: pbx prc_insertCDR end [2025-06-25 15:25:38] Production.INFO: ==4795== Releasing lock... [2025-06-25 15:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 15:25:38] Production.INFO: 71.25 MB #Memory Used# [2025-06-25 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 13:25:05 [end_date_ymd] => 2025-06-25 16:25:05 [RateCDR] => 1 ) [2025-06-25 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-25 13:25:05' and `end` < '2025-06-25 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-25 16:25:19] Production.INFO: count ==5750 [2025-06-25 16:25:21] Production.ERROR: pbx CDR StartTime 2025-06-25 13:25:05 - End Time 2025-06-25 16:25:05 [2025-06-25 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15359240', 'tblTempUsageDetail_20' ) start [2025-06-25 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15359240', 'tblTempUsageDetail_20' ) end [2025-06-25 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15359240', 'tblTempVendorCDR_20' ) start [2025-06-25 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15359240', 'tblTempVendorCDR_20' ) end [2025-06-25 16:25:21] Production.INFO: ProcessCDR(1,15359240,1,1,2) [2025-06-25 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15359240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15359240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15359240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 16:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15359240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 16:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15359240', 'tblTempUsageDetail_20' ) start [2025-06-25 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15359240', 'tblTempUsageDetail_20' ) end [2025-06-25 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-25 16:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-25 16:25:32] Production.INFO: ==9429== Releasing lock... [2025-06-25 16:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 16:25:32] Production.INFO: 71.25 MB #Memory Used# [2025-06-25 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 14:25:06 [end_date_ymd] => 2025-06-25 17:25:06 [RateCDR] => 1 ) [2025-06-25 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-06-25 14:25:06' and `end` < '2025-06-25 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-06-25 17:25:19] Production.INFO: count ==5527 [2025-06-25 17:25:22] Production.ERROR: pbx CDR StartTime 2025-06-25 14:25:06 - End Time 2025-06-25 17:25:06 [2025-06-25 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15359487', 'tblTempUsageDetail_20' ) start [2025-06-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15359487', 'tblTempUsageDetail_20' ) end [2025-06-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15359487', 'tblTempVendorCDR_20' ) start [2025-06-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15359487', 'tblTempVendorCDR_20' ) end [2025-06-25 17:25:22] Production.INFO: ProcessCDR(1,15359487,1,1,2) [2025-06-25 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15359487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15359487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15359487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15359487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15359487', 'tblTempUsageDetail_20' ) start [2025-06-25 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15359487', 'tblTempUsageDetail_20' ) end [2025-06-25 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-25 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-25 17:25:32] Production.INFO: ==14481== Releasing lock... [2025-06-25 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 17:25:32] Production.INFO: 69.5 MB #Memory Used# [2025-06-25 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 15:25:05 [end_date_ymd] => 2025-06-25 18:25:05 [RateCDR] => 1 ) [2025-06-25 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-06-25 15:25:05' and `end` < '2025-06-25 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-06-25 18:25:19] Production.INFO: count ==4513 [2025-06-25 18:25:21] Production.ERROR: pbx CDR StartTime 2025-06-25 15:25:05 - End Time 2025-06-25 18:25:05 [2025-06-25 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15359734', 'tblTempUsageDetail_20' ) start [2025-06-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15359734', 'tblTempUsageDetail_20' ) end [2025-06-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15359734', 'tblTempVendorCDR_20' ) start [2025-06-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15359734', 'tblTempVendorCDR_20' ) end [2025-06-25 18:25:21] Production.INFO: ProcessCDR(1,15359734,1,1,2) [2025-06-25 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15359734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15359734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15359734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15359734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15359734', 'tblTempUsageDetail_20' ) start [2025-06-25 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15359734', 'tblTempUsageDetail_20' ) end [2025-06-25 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-25 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-25 18:25:30] Production.INFO: ==19083== Releasing lock... [2025-06-25 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 18:25:30] Production.INFO: 62 MB #Memory Used# [2025-06-25 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 16:25:05 [end_date_ymd] => 2025-06-25 19:25:05 [RateCDR] => 1 ) [2025-06-25 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-25 16:25:05' and `end` < '2025-06-25 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-25 19:25:18] Production.INFO: count ==3235 [2025-06-25 19:25:19] Production.ERROR: pbx CDR StartTime 2025-06-25 16:25:05 - End Time 2025-06-25 19:25:05 [2025-06-25 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15359978', 'tblTempUsageDetail_20' ) start [2025-06-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15359978', 'tblTempUsageDetail_20' ) end [2025-06-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15359978', 'tblTempVendorCDR_20' ) start [2025-06-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15359978', 'tblTempVendorCDR_20' ) end [2025-06-25 19:25:19] Production.INFO: ProcessCDR(1,15359978,1,1,2) [2025-06-25 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15359978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15359978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15359978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15359978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15359978', 'tblTempUsageDetail_20' ) start [2025-06-25 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15359978', 'tblTempUsageDetail_20' ) end [2025-06-25 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-25 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-06-25 19:25:27] Production.INFO: ==23827== Releasing lock... [2025-06-25 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 19:25:27] Production.INFO: 52.25 MB #Memory Used# [2025-06-25 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 17:25:05 [end_date_ymd] => 2025-06-25 20:25:05 [RateCDR] => 1 ) [2025-06-25 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-06-25 17:25:05' and `end` < '2025-06-25 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-06-25 20:25:18] Production.INFO: count ==2252 [2025-06-25 20:25:19] Production.ERROR: pbx CDR StartTime 2025-06-25 17:25:05 - End Time 2025-06-25 20:25:05 [2025-06-25 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15360225', 'tblTempUsageDetail_20' ) start [2025-06-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15360225', 'tblTempUsageDetail_20' ) end [2025-06-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15360225', 'tblTempVendorCDR_20' ) start [2025-06-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15360225', 'tblTempVendorCDR_20' ) end [2025-06-25 20:25:19] Production.INFO: ProcessCDR(1,15360225,1,1,2) [2025-06-25 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15360225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15360225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15360225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15360225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15360225', 'tblTempUsageDetail_20' ) start [2025-06-25 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15360225', 'tblTempUsageDetail_20' ) end [2025-06-25 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-25 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-25 20:25:26] Production.INFO: ==28178== Releasing lock... [2025-06-25 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 20:25:26] Production.INFO: 45 MB #Memory Used# [2025-06-25 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 18:25:05 [end_date_ymd] => 2025-06-25 21:25:05 [RateCDR] => 1 ) [2025-06-25 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-25 18:25:05' and `end` < '2025-06-25 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-25 21:25:17] Production.INFO: count ==1784 [2025-06-25 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-25 18:25:05 - End Time 2025-06-25 21:25:05 [2025-06-25 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15360472', 'tblTempUsageDetail_20' ) start [2025-06-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15360472', 'tblTempUsageDetail_20' ) end [2025-06-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15360472', 'tblTempVendorCDR_20' ) start [2025-06-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15360472', 'tblTempVendorCDR_20' ) end [2025-06-25 21:25:18] Production.INFO: ProcessCDR(1,15360472,1,1,2) [2025-06-25 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15360472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15360472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15360472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15360472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15360472', 'tblTempUsageDetail_20' ) start [2025-06-25 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15360472', 'tblTempUsageDetail_20' ) end [2025-06-25 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-25 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-25 21:25:25] Production.INFO: ==32535== Releasing lock... [2025-06-25 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 21:25:25] Production.INFO: 41.5 MB #Memory Used# [2025-06-25 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 19:25:05 [end_date_ymd] => 2025-06-25 22:25:05 [RateCDR] => 1 ) [2025-06-25 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-25 19:25:05' and `end` < '2025-06-25 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-25 22:25:18] Production.INFO: count ==1527 [2025-06-25 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-25 19:25:05 - End Time 2025-06-25 22:25:05 [2025-06-25 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15360719', 'tblTempUsageDetail_20' ) start [2025-06-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15360719', 'tblTempUsageDetail_20' ) end [2025-06-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15360719', 'tblTempVendorCDR_20' ) start [2025-06-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15360719', 'tblTempVendorCDR_20' ) end [2025-06-25 22:25:18] Production.INFO: ProcessCDR(1,15360719,1,1,2) [2025-06-25 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15360719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15360719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15360719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15360719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15360719', 'tblTempUsageDetail_20' ) start [2025-06-25 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15360719', 'tblTempUsageDetail_20' ) end [2025-06-25 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-25 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-25 22:25:25] Production.INFO: ==4464== Releasing lock... [2025-06-25 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 22:25:25] Production.INFO: 39.5 MB #Memory Used# [2025-06-25 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-25 20:25:05 [end_date_ymd] => 2025-06-25 23:25:05 [RateCDR] => 1 ) [2025-06-25 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-25 20:25:05' and `end` < '2025-06-25 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-25 23:25:17] Production.INFO: count ==1220 [2025-06-25 23:25:18] Production.ERROR: pbx CDR StartTime 2025-06-25 20:25:05 - End Time 2025-06-25 23:25:05 [2025-06-25 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15360966', 'tblTempUsageDetail_20' ) start [2025-06-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15360966', 'tblTempUsageDetail_20' ) end [2025-06-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15360966', 'tblTempVendorCDR_20' ) start [2025-06-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15360966', 'tblTempVendorCDR_20' ) end [2025-06-25 23:25:18] Production.INFO: ProcessCDR(1,15360966,1,1,2) [2025-06-25 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15360966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15360966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-25 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15360966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15360966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-25 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15360966', 'tblTempUsageDetail_20' ) start [2025-06-25 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15360966', 'tblTempUsageDetail_20' ) end [2025-06-25 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-25 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-25 23:25:25] Production.INFO: ==8804== Releasing lock... [2025-06-25 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-25 23:25:25] Production.INFO: 37.75 MB #Memory Used#