[2025-12-01 00:00:05] Production.INFO: next invoice date [2025-12-01 00:00:05] Production.INFO: 2025-12-31 [2025-12-01 00:00:05] Production.INFO: getdaysdiff [2025-12-01 00:00:05] Production.INFO: +30 [2025-12-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (208,11,1,30,30,'RMScheduler',2025-12-01 00:00:05,0,0,,,0) [2025-12-01 00:00:05] Production.INFO: next invoice date [2025-12-01 00:00:05] Production.INFO: 2025-12-31 [2025-12-01 00:00:05] Production.INFO: getdaysdiff [2025-12-01 00:00:05] Production.INFO: +30 [2025-12-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (208,13,2,30,30,'RMScheduler',2025-12-01 00:00:05,0,0,,,0) [2025-12-01 00:00:05] Production.INFO: next invoice date [2025-12-01 00:00:05] Production.INFO: 2026-01-01 [2025-12-01 00:00:05] Production.INFO: getdaysdiff [2025-12-01 00:00:05] Production.INFO: +31 [2025-12-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (105,11,1,31,31,'RMScheduler',2025-12-01 00:00:05,1,0,,,0) [2025-12-01 00:00:05] Production.INFO: next invoice date [2025-12-01 00:00:05] Production.INFO: 2026-01-01 [2025-12-01 00:00:05] Production.INFO: getdaysdiff [2025-12-01 00:00:05] Production.INFO: +31 [2025-12-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (3,9,2,31,31,'RMScheduler',2025-12-01 00:00:05,1,0,,,0) [2025-12-01 00:00:05] Production.INFO: next invoice date [2025-12-01 00:00:05] Production.INFO: 2026-01-01 [2025-12-01 00:00:05] Production.INFO: getdaysdiff [2025-12-01 00:00:05] Production.INFO: +31 [2025-12-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (113,11,1,31,31,'RMScheduler',2025-12-01 00:00:05,1,0,,,0) [2025-12-01 00:00:05] Production.INFO: next invoice date [2025-12-01 00:00:05] Production.INFO: 2026-01-01 [2025-12-01 00:00:05] Production.INFO: getdaysdiff [2025-12-01 00:00:05] Production.INFO: +31 [2025-12-01 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (114,11,1,31,31,'RMScheduler',2025-12-01 00:00:05,1,0,,,0) [2025-12-01 00:00:06] Production.INFO: next invoice date [2025-12-01 00:00:06] Production.INFO: 2026-01-01 [2025-12-01 00:00:06] Production.INFO: getdaysdiff [2025-12-01 00:00:06] Production.INFO: +31 [2025-12-01 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (3,16,1,31,31,'RMScheduler',2025-12-01 00:00:05,1,0,,,0) [2025-12-01 00:00:06] Production.INFO: next invoice date [2025-12-01 00:00:06] Production.INFO: 2026-01-01 [2025-12-01 00:00:06] Production.INFO: getdaysdiff [2025-12-01 00:00:06] Production.INFO: +31 [2025-12-01 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (66,11,1,31,31,'RMScheduler',2025-12-01 00:00:05,1,0,,,0) [2025-12-01 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 21:00:07 [end_date_ymd] => 2025-12-01 00:00:07 [RateCDR] => 1 ) [2025-12-01 00:00:07] 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-11-30 21:00:07' and `end` < '2025-12-01 00:00:07' 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-12-01 00:00:20] Production.INFO: count ==1025 [2025-12-01 00:00:21] Production.ERROR: pbx CDR StartTime 2025-11-30 21:00:07 - End Time 2025-12-01 00:00:07 [2025-12-01 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16297911', 'tblTempUsageDetail_20' ) start [2025-12-01 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16297911', 'tblTempUsageDetail_20' ) end [2025-12-01 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16297911', 'tblTempVendorCDR_20' ) start [2025-12-01 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16297911', 'tblTempVendorCDR_20' ) end [2025-12-01 00:00:22] Production.INFO: ProcessCDR(1,16297911,1,1,2) [2025-12-01 00:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16297911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 00:03:10] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16297911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 00:03:10] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16297911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 00:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16297911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 00:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16297911', 'tblTempUsageDetail_20' ) start [2025-12-01 00:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16297911', 'tblTempUsageDetail_20' ) end [2025-12-01 00:06:27] Production.ERROR: pbx prc_insertCDR start [2025-12-01 00:06:27] Production.ERROR: pbx prc_insertCDR end [2025-12-01 00:06:28] Production.INFO: ==3721== Releasing lock... [2025-12-01 00:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 00:06:28] Production.INFO: 39 MB #Memory Used# [2025-12-01 01:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 22:00:07 [end_date_ymd] => 2025-12-01 01:00:07 [RateCDR] => 1 ) [2025-12-01 01:00:07] 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-11-30 22:00:07' and `end` < '2025-12-01 01:00:07' 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-12-01 01:00:21] Production.INFO: count ==517 [2025-12-01 01:00:21] Production.ERROR: pbx CDR StartTime 2025-11-30 22:00:07 - End Time 2025-12-01 01:00:07 [2025-12-01 01:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16298158', 'tblTempUsageDetail_20' ) start [2025-12-01 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16298158', 'tblTempUsageDetail_20' ) end [2025-12-01 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16298158', 'tblTempVendorCDR_20' ) start [2025-12-01 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16298158', 'tblTempVendorCDR_20' ) end [2025-12-01 01:00:21] Production.INFO: ProcessCDR(1,16298158,1,1,2) [2025-12-01 01:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16298158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 01:03:11] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16298158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 01:03:11] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16298158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 01:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16298158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 01:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16298158', 'tblTempUsageDetail_20' ) start [2025-12-01 01:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16298158', 'tblTempUsageDetail_20' ) end [2025-12-01 01:06:29] Production.ERROR: pbx prc_insertCDR start [2025-12-01 01:06:30] Production.ERROR: pbx prc_insertCDR end [2025-12-01 01:06:30] Production.INFO: ==8478== Releasing lock... [2025-12-01 01:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 01:06:30] Production.INFO: 32.75 MB #Memory Used# [2025-12-01 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-30 23:00:06 [end_date_ymd] => 2025-12-01 02:00:06 [RateCDR] => 1 ) [2025-12-01 02:00: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-11-30 23:00:06' and `end` < '2025-12-01 02:00: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-12-01 02:00:18] Production.INFO: count ==534 [2025-12-01 02:00:18] Production.ERROR: pbx CDR StartTime 2025-11-30 23:00:06 - End Time 2025-12-01 02:00:06 [2025-12-01 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16298404', 'tblTempUsageDetail_20' ) start [2025-12-01 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16298404', 'tblTempUsageDetail_20' ) end [2025-12-01 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16298404', 'tblTempVendorCDR_20' ) start [2025-12-01 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16298404', 'tblTempVendorCDR_20' ) end [2025-12-01 02:00:18] Production.INFO: ProcessCDR(1,16298404,1,1,2) [2025-12-01 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16298404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 02:03:02] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16298404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 02:03:02] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16298404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 02:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16298404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16298404', 'tblTempUsageDetail_20' ) start [2025-12-01 02:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16298404', 'tblTempUsageDetail_20' ) end [2025-12-01 02:06:23] Production.ERROR: pbx prc_insertCDR start [2025-12-01 02:06:23] Production.ERROR: pbx prc_insertCDR end [2025-12-01 02:06:23] Production.INFO: ==12965== Releasing lock... [2025-12-01 02:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 02:06:23] Production.INFO: 32.75 MB #Memory Used# [2025-12-01 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 00:00:06 [end_date_ymd] => 2025-12-01 03:00:06 [RateCDR] => 1 ) [2025-12-01 03:00: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-12-01 00:00:06' and `end` < '2025-12-01 03:00: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-12-01 03:00:18] Production.INFO: count ==474 [2025-12-01 03:00:18] Production.ERROR: pbx CDR StartTime 2025-12-01 00:00:06 - End Time 2025-12-01 03:00:06 [2025-12-01 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16298652', 'tblTempUsageDetail_20' ) start [2025-12-01 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16298652', 'tblTempUsageDetail_20' ) end [2025-12-01 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16298652', 'tblTempVendorCDR_20' ) start [2025-12-01 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16298652', 'tblTempVendorCDR_20' ) end [2025-12-01 03:00:18] Production.INFO: ProcessCDR(1,16298652,1,1,2) [2025-12-01 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16298652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 03:02:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16298652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 03:02:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16298652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 03:05:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16298652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 03:05:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16298652', 'tblTempUsageDetail_20' ) start [2025-12-01 03:05:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16298652', 'tblTempUsageDetail_20' ) end [2025-12-01 03:05:55] Production.ERROR: pbx prc_insertCDR start [2025-12-01 03:05:55] Production.ERROR: pbx prc_insertCDR end [2025-12-01 03:05:55] Production.INFO: ==17419== Releasing lock... [2025-12-01 03:05:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 03:05:55] Production.INFO: 32 MB #Memory Used# [2025-12-01 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 01:00:06 [end_date_ymd] => 2025-12-01 04:00:06 [RateCDR] => 1 ) [2025-12-01 04:00:07] 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-12-01 01:00:06' and `end` < '2025-12-01 04:00: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-12-01 04:00:18] Production.INFO: count ==324 [2025-12-01 04:00:18] Production.ERROR: pbx CDR StartTime 2025-12-01 01:00:06 - End Time 2025-12-01 04:00:06 [2025-12-01 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16298900', 'tblTempUsageDetail_20' ) start [2025-12-01 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16298900', 'tblTempUsageDetail_20' ) end [2025-12-01 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16298900', 'tblTempVendorCDR_20' ) start [2025-12-01 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16298900', 'tblTempVendorCDR_20' ) end [2025-12-01 04:00:19] Production.INFO: ProcessCDR(1,16298900,1,1,2) [2025-12-01 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16298900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 04:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16298900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 04:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16298900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 04:05:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16298900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 04:05:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16298900', 'tblTempUsageDetail_20' ) start [2025-12-01 04:05:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16298900', 'tblTempUsageDetail_20' ) end [2025-12-01 04:05:59] Production.ERROR: pbx prc_insertCDR start [2025-12-01 04:05:59] Production.ERROR: pbx prc_insertCDR end [2025-12-01 04:05:59] Production.INFO: ==22109== Releasing lock... [2025-12-01 04:05:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 04:05:59] Production.INFO: 31 MB #Memory Used# [2025-12-01 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 02:00:06 [end_date_ymd] => 2025-12-01 05:00:06 [RateCDR] => 1 ) [2025-12-01 05:00: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-12-01 02:00:06' and `end` < '2025-12-01 05:00: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-12-01 05:00:18] Production.INFO: count ==215 [2025-12-01 05:00:18] Production.ERROR: pbx CDR StartTime 2025-12-01 02:00:06 - End Time 2025-12-01 05:00:06 [2025-12-01 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16299148', 'tblTempUsageDetail_20' ) start [2025-12-01 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16299148', 'tblTempUsageDetail_20' ) end [2025-12-01 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16299148', 'tblTempVendorCDR_20' ) start [2025-12-01 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16299148', 'tblTempVendorCDR_20' ) end [2025-12-01 05:00:18] Production.INFO: ProcessCDR(1,16299148,1,1,2) [2025-12-01 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16299148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 05:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16299148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 05:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16299148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 05:05:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16299148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 05:05:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16299148', 'tblTempUsageDetail_20' ) start [2025-12-01 05:05:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16299148', 'tblTempUsageDetail_20' ) end [2025-12-01 05:05:43] Production.ERROR: pbx prc_insertCDR start [2025-12-01 05:05:43] Production.ERROR: pbx prc_insertCDR end [2025-12-01 05:05:43] Production.INFO: ==28102== Releasing lock... [2025-12-01 05:05:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 05:05:43] Production.INFO: 29.75 MB #Memory Used# [2025-12-01 06:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 03:00:07 [end_date_ymd] => 2025-12-01 06:00:07 [RateCDR] => 1 ) [2025-12-01 06:00:07] 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-12-01 03:00:07' and `end` < '2025-12-01 06:00:07' 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-12-01 06:00:19] Production.INFO: count ==152 [2025-12-01 06:00:19] Production.ERROR: pbx CDR StartTime 2025-12-01 03:00:07 - End Time 2025-12-01 06:00:07 [2025-12-01 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16299394', 'tblTempUsageDetail_20' ) start [2025-12-01 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16299394', 'tblTempUsageDetail_20' ) end [2025-12-01 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16299394', 'tblTempVendorCDR_20' ) start [2025-12-01 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16299394', 'tblTempVendorCDR_20' ) end [2025-12-01 06:00:19] Production.INFO: ProcessCDR(1,16299394,1,1,2) [2025-12-01 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16299394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 06:02:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16299394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 06:02:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16299394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 06:05:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16299394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 06:05:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16299394', 'tblTempUsageDetail_20' ) start [2025-12-01 06:05:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16299394', 'tblTempUsageDetail_20' ) end [2025-12-01 06:05:58] Production.ERROR: pbx prc_insertCDR start [2025-12-01 06:05:58] Production.ERROR: pbx prc_insertCDR end [2025-12-01 06:05:58] Production.INFO: ==301== Releasing lock... [2025-12-01 06:05:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 06:05:58] Production.INFO: 29.25 MB #Memory Used# [2025-12-01 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 04:00:06 [end_date_ymd] => 2025-12-01 07:00:06 [RateCDR] => 1 ) [2025-12-01 07:00: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-12-01 04:00:06' and `end` < '2025-12-01 07:00: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-12-01 07:00:17] Production.INFO: count ==150 [2025-12-01 07:00:17] Production.ERROR: pbx CDR StartTime 2025-12-01 04:00:06 - End Time 2025-12-01 07:00:06 [2025-12-01 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16299642', 'tblTempUsageDetail_20' ) start [2025-12-01 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16299642', 'tblTempUsageDetail_20' ) end [2025-12-01 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16299642', 'tblTempVendorCDR_20' ) start [2025-12-01 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16299642', 'tblTempVendorCDR_20' ) end [2025-12-01 07:00:17] Production.INFO: ProcessCDR(1,16299642,1,1,2) [2025-12-01 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16299642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 07:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16299642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 07:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16299642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 07:05:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16299642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 07:05:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16299642', 'tblTempUsageDetail_20' ) start [2025-12-01 07:05:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16299642', 'tblTempUsageDetail_20' ) end [2025-12-01 07:05:59] Production.ERROR: pbx prc_insertCDR start [2025-12-01 07:05:59] Production.ERROR: pbx prc_insertCDR end [2025-12-01 07:05:59] Production.INFO: ==5051== Releasing lock... [2025-12-01 07:05:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 07:05:59] Production.INFO: 29.5 MB #Memory Used# [2025-12-01 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 05:00:06 [end_date_ymd] => 2025-12-01 08:00:06 [RateCDR] => 1 ) [2025-12-01 08:00: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-12-01 05:00:06' and `end` < '2025-12-01 08:00: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-12-01 08:00:18] Production.INFO: count ==265 [2025-12-01 08:00:18] Production.ERROR: pbx CDR StartTime 2025-12-01 05:00:06 - End Time 2025-12-01 08:00:06 [2025-12-01 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16299889', 'tblTempUsageDetail_20' ) start [2025-12-01 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16299889', 'tblTempUsageDetail_20' ) end [2025-12-01 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16299889', 'tblTempVendorCDR_20' ) start [2025-12-01 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16299889', 'tblTempVendorCDR_20' ) end [2025-12-01 08:00:18] Production.INFO: ProcessCDR(1,16299889,1,1,2) [2025-12-01 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16299889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 08:02:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16299889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 08:02:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16299889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 08:06:02] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16299889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 08:06:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16299889', 'tblTempUsageDetail_20' ) start [2025-12-01 08:06:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16299889', 'tblTempUsageDetail_20' ) end [2025-12-01 08:06:02] Production.ERROR: pbx prc_insertCDR start [2025-12-01 08:06:03] Production.ERROR: pbx prc_insertCDR end [2025-12-01 08:06:03] Production.INFO: ==9685== Releasing lock... [2025-12-01 08:06:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 08:06:03] Production.INFO: 30.5 MB #Memory Used# [2025-12-01 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 06:00:06 [end_date_ymd] => 2025-12-01 09:00:06 [RateCDR] => 1 ) [2025-12-01 09:00: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-12-01 06:00:06' and `end` < '2025-12-01 09:00: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-12-01 09:00:18] Production.INFO: count ==1034 [2025-12-01 09:00:18] Production.ERROR: pbx CDR StartTime 2025-12-01 06:00:06 - End Time 2025-12-01 09:00:06 [2025-12-01 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16300136', 'tblTempUsageDetail_20' ) start [2025-12-01 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16300136', 'tblTempUsageDetail_20' ) end [2025-12-01 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16300136', 'tblTempVendorCDR_20' ) start [2025-12-01 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16300136', 'tblTempVendorCDR_20' ) end [2025-12-01 09:00:18] Production.INFO: ProcessCDR(1,16300136,1,1,2) [2025-12-01 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16300136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 09:02:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16300136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 09:02:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16300136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 09:06:02] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16300136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 09:06:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16300136', 'tblTempUsageDetail_20' ) start [2025-12-01 09:06:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16300136', 'tblTempUsageDetail_20' ) end [2025-12-01 09:06:02] Production.ERROR: pbx prc_insertCDR start [2025-12-01 09:06:02] Production.ERROR: pbx prc_insertCDR end [2025-12-01 09:06:02] Production.INFO: ==14223== Releasing lock... [2025-12-01 09:06:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 09:06:02] Production.INFO: 36.25 MB #Memory Used# [2025-12-01 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 07:00:06 [end_date_ymd] => 2025-12-01 10:00:06 [RateCDR] => 1 ) [2025-12-01 10:00: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-12-01 07:00:06' and `end` < '2025-12-01 10:00: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-12-01 10:00:22] Production.INFO: count ==2773 [2025-12-01 10:00:23] Production.ERROR: pbx CDR StartTime 2025-12-01 07:00:06 - End Time 2025-12-01 10:00:06 [2025-12-01 10:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16300383', 'tblTempUsageDetail_20' ) start [2025-12-01 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16300383', 'tblTempUsageDetail_20' ) end [2025-12-01 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16300383', 'tblTempVendorCDR_20' ) start [2025-12-01 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16300383', 'tblTempVendorCDR_20' ) end [2025-12-01 10:00:23] Production.INFO: ProcessCDR(1,16300383,1,1,2) [2025-12-01 10:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16300383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 10:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16300383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 10:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16300383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 10:06:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16300383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 10:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16300383', 'tblTempUsageDetail_20' ) start [2025-12-01 10:06:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16300383', 'tblTempUsageDetail_20' ) end [2025-12-01 10:06:10] Production.ERROR: pbx prc_insertCDR start [2025-12-01 10:06:13] Production.ERROR: pbx prc_insertCDR end [2025-12-01 10:06:13] Production.INFO: ==19063== Releasing lock... [2025-12-01 10:06:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 10:06:13] Production.INFO: 49.25 MB #Memory Used# [2025-12-01 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 08:00:07 [end_date_ymd] => 2025-12-01 11:00:07 [RateCDR] => 1 ) [2025-12-01 11:00:07] 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-12-01 08:00:07' and `end` < '2025-12-01 11:00:07' 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-12-01 11:00:21] Production.INFO: count ==4893 [2025-12-01 11:00:23] Production.ERROR: pbx CDR StartTime 2025-12-01 08:00:07 - End Time 2025-12-01 11:00:07 [2025-12-01 11:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16300630', 'tblTempUsageDetail_20' ) start [2025-12-01 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16300630', 'tblTempUsageDetail_20' ) end [2025-12-01 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16300630', 'tblTempVendorCDR_20' ) start [2025-12-01 11:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16300630', 'tblTempVendorCDR_20' ) end [2025-12-01 11:00:24] Production.INFO: ProcessCDR(1,16300630,1,1,2) [2025-12-01 11:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16300630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 11:03:04] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16300630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 11:03:04] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16300630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 11:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16300630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 11:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16300630', 'tblTempUsageDetail_20' ) start [2025-12-01 11:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16300630', 'tblTempUsageDetail_20' ) end [2025-12-01 11:06:24] Production.ERROR: pbx prc_insertCDR start [2025-12-01 11:06:27] Production.ERROR: pbx prc_insertCDR end [2025-12-01 11:06:27] Production.INFO: ==23805== Releasing lock... [2025-12-01 11:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 11:06:27] Production.INFO: 64.75 MB #Memory Used# [2025-12-01 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 09:00:06 [end_date_ymd] => 2025-12-01 12:00:06 [RateCDR] => 1 ) [2025-12-01 12:00: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-12-01 09:00:06' and `end` < '2025-12-01 12:00: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-12-01 12:00:22] Production.INFO: count ==6205 [2025-12-01 12:00:25] Production.ERROR: pbx CDR StartTime 2025-12-01 09:00:06 - End Time 2025-12-01 12:00:06 [2025-12-01 12:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16300877', 'tblTempUsageDetail_20' ) start [2025-12-01 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16300877', 'tblTempUsageDetail_20' ) end [2025-12-01 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16300877', 'tblTempVendorCDR_20' ) start [2025-12-01 12:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16300877', 'tblTempVendorCDR_20' ) end [2025-12-01 12:00:26] Production.INFO: ProcessCDR(1,16300877,1,1,2) [2025-12-01 12:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16300877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 12:03:12] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16300877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 12:03:12] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16300877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 12:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16300877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16300877', 'tblTempUsageDetail_20' ) start [2025-12-01 12:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16300877', 'tblTempUsageDetail_20' ) end [2025-12-01 12:06:28] Production.ERROR: pbx prc_insertCDR start [2025-12-01 12:06:31] Production.ERROR: pbx prc_insertCDR end [2025-12-01 12:06:31] Production.INFO: ==28390== Releasing lock... [2025-12-01 12:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 12:06:31] Production.INFO: 74.75 MB #Memory Used# [2025-12-01 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 10:00:07 [end_date_ymd] => 2025-12-01 13:00:07 [RateCDR] => 1 ) [2025-12-01 13:00:07] 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-12-01 10:00:07' and `end` < '2025-12-01 13:00:07' 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-12-01 13:00:20] Production.INFO: count ==6297 [2025-12-01 13:00:24] Production.ERROR: pbx CDR StartTime 2025-12-01 10:00:07 - End Time 2025-12-01 13:00:07 [2025-12-01 13:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16301124', 'tblTempUsageDetail_20' ) start [2025-12-01 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16301124', 'tblTempUsageDetail_20' ) end [2025-12-01 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16301124', 'tblTempVendorCDR_20' ) start [2025-12-01 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16301124', 'tblTempVendorCDR_20' ) end [2025-12-01 13:00:25] Production.INFO: ProcessCDR(1,16301124,1,1,2) [2025-12-01 13:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16301124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 13:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16301124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 13:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16301124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 13:06:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16301124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 13:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16301124', 'tblTempUsageDetail_20' ) start [2025-12-01 13:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16301124', 'tblTempUsageDetail_20' ) end [2025-12-01 13:06:50] Production.ERROR: pbx prc_insertCDR start [2025-12-01 13:06:53] Production.ERROR: pbx prc_insertCDR end [2025-12-01 13:06:53] Production.INFO: ==542== Releasing lock... [2025-12-01 13:06:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 13:06:53] Production.INFO: 75.5 MB #Memory Used# [2025-12-01 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 11:00:07 [end_date_ymd] => 2025-12-01 14:00:07 [RateCDR] => 1 ) [2025-12-01 14:00:07] 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-12-01 11:00:07' and `end` < '2025-12-01 14:00:07' 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-12-01 14:00:22] Production.INFO: count ==6054 [2025-12-01 14:00:25] Production.ERROR: pbx CDR StartTime 2025-12-01 11:00:07 - End Time 2025-12-01 14:00:07 [2025-12-01 14:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16301370', 'tblTempUsageDetail_20' ) start [2025-12-01 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16301370', 'tblTempUsageDetail_20' ) end [2025-12-01 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16301370', 'tblTempVendorCDR_20' ) start [2025-12-01 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16301370', 'tblTempVendorCDR_20' ) end [2025-12-01 14:00:25] Production.INFO: ProcessCDR(1,16301370,1,1,2) [2025-12-01 14:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16301370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 14:03:11] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16301370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 14:03:11] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16301370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 14:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16301370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 14:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16301370', 'tblTempUsageDetail_20' ) start [2025-12-01 14:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16301370', 'tblTempUsageDetail_20' ) end [2025-12-01 14:06:30] Production.ERROR: pbx prc_insertCDR start [2025-12-01 14:06:32] Production.ERROR: pbx prc_insertCDR end [2025-12-01 14:06:32] Production.INFO: ==5454== Releasing lock... [2025-12-01 14:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 14:06:32] Production.INFO: 73.5 MB #Memory Used# [2025-12-01 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 12:00:05 [end_date_ymd] => 2025-12-01 15:00:05 [RateCDR] => 1 ) [2025-12-01 15:00: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-12-01 12:00:05' and `end` < '2025-12-01 15:00: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-12-01 15:00:19] Production.INFO: count ==6204 [2025-12-01 15:00:22] Production.ERROR: pbx CDR StartTime 2025-12-01 12:00:05 - End Time 2025-12-01 15:00:05 [2025-12-01 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16301618', 'tblTempUsageDetail_20' ) start [2025-12-01 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16301618', 'tblTempUsageDetail_20' ) end [2025-12-01 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16301618', 'tblTempVendorCDR_20' ) start [2025-12-01 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16301618', 'tblTempVendorCDR_20' ) end [2025-12-01 15:00:23] Production.INFO: ProcessCDR(1,16301618,1,1,2) [2025-12-01 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16301618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 15:03:05] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16301618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 15:03:05] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16301618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 15:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16301618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 15:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16301618', 'tblTempUsageDetail_20' ) start [2025-12-01 15:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16301618', 'tblTempUsageDetail_20' ) end [2025-12-01 15:06:22] Production.ERROR: pbx prc_insertCDR start [2025-12-01 15:06:25] Production.ERROR: pbx prc_insertCDR end [2025-12-01 15:06:25] Production.INFO: ==10346== Releasing lock... [2025-12-01 15:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 15:06:25] Production.INFO: 74.75 MB #Memory Used# [2025-12-01 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 13:00:06 [end_date_ymd] => 2025-12-01 16:00:06 [RateCDR] => 1 ) [2025-12-01 16:00: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-12-01 13:00:06' and `end` < '2025-12-01 16:00: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-12-01 16:00:22] Production.INFO: count ==6537 [2025-12-01 16:00:25] Production.ERROR: pbx CDR StartTime 2025-12-01 13:00:06 - End Time 2025-12-01 16:00:06 [2025-12-01 16:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16301865', 'tblTempUsageDetail_20' ) start [2025-12-01 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16301865', 'tblTempUsageDetail_20' ) end [2025-12-01 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16301865', 'tblTempVendorCDR_20' ) start [2025-12-01 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16301865', 'tblTempVendorCDR_20' ) end [2025-12-01 16:00:26] Production.INFO: ProcessCDR(1,16301865,1,1,2) [2025-12-01 16:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16301865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 16:03:11] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16301865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 16:03:11] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16301865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 16:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16301865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16301865', 'tblTempUsageDetail_20' ) start [2025-12-01 16:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16301865', 'tblTempUsageDetail_20' ) end [2025-12-01 16:06:29] Production.ERROR: pbx prc_insertCDR start [2025-12-01 16:06:32] Production.ERROR: pbx prc_insertCDR end [2025-12-01 16:06:32] Production.INFO: ==15268== Releasing lock... [2025-12-01 16:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 16:06:32] Production.INFO: 77.25 MB #Memory Used# [2025-12-01 17:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 14:00:07 [end_date_ymd] => 2025-12-01 17:00:07 [RateCDR] => 1 ) [2025-12-01 17:00:07] 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-12-01 14:00:07' and `end` < '2025-12-01 17:00:07' 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-12-01 17:00:21] Production.INFO: count ==6594 [2025-12-01 17:00:25] Production.ERROR: pbx CDR StartTime 2025-12-01 14:00:07 - End Time 2025-12-01 17:00:07 [2025-12-01 17:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16302112', 'tblTempUsageDetail_20' ) start [2025-12-01 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16302112', 'tblTempUsageDetail_20' ) end [2025-12-01 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16302112', 'tblTempVendorCDR_20' ) start [2025-12-01 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16302112', 'tblTempVendorCDR_20' ) end [2025-12-01 17:00:25] Production.INFO: ProcessCDR(1,16302112,1,1,2) [2025-12-01 17:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16302112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16302112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16302112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 17:06:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16302112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 17:06:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16302112', 'tblTempUsageDetail_20' ) start [2025-12-01 17:06:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16302112', 'tblTempUsageDetail_20' ) end [2025-12-01 17:06:47] Production.ERROR: pbx prc_insertCDR start [2025-12-01 17:06:50] Production.ERROR: pbx prc_insertCDR end [2025-12-01 17:06:50] Production.INFO: ==21051== Releasing lock... [2025-12-01 17:06:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 17:06:50] Production.INFO: 77.75 MB #Memory Used# [2025-12-01 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 15:00:07 [end_date_ymd] => 2025-12-01 18:00:07 [RateCDR] => 1 ) [2025-12-01 18:00:07] 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-12-01 15:00:07' and `end` < '2025-12-01 18:00:07' 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-12-01 18:00:20] Production.INFO: count ==5523 [2025-12-01 18:00:23] Production.ERROR: pbx CDR StartTime 2025-12-01 15:00:07 - End Time 2025-12-01 18:00:07 [2025-12-01 18:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16302356', 'tblTempUsageDetail_20' ) start [2025-12-01 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16302356', 'tblTempUsageDetail_20' ) end [2025-12-01 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16302356', 'tblTempVendorCDR_20' ) start [2025-12-01 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16302356', 'tblTempVendorCDR_20' ) end [2025-12-01 18:00:23] Production.INFO: ProcessCDR(1,16302356,1,1,2) [2025-12-01 18:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16302356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 18:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16302356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 18:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16302356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 18:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16302356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 18:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16302356', 'tblTempUsageDetail_20' ) start [2025-12-01 18:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16302356', 'tblTempUsageDetail_20' ) end [2025-12-01 18:06:30] Production.ERROR: pbx prc_insertCDR start [2025-12-01 18:06:32] Production.ERROR: pbx prc_insertCDR end [2025-12-01 18:06:32] Production.INFO: ==25426== Releasing lock... [2025-12-01 18:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 18:06:32] Production.INFO: 69.5 MB #Memory Used# [2025-12-01 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 16:00:06 [end_date_ymd] => 2025-12-01 19:00:06 [RateCDR] => 1 ) [2025-12-01 19:00: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-12-01 16:00:06' and `end` < '2025-12-01 19:00: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-12-01 19:00:20] Production.INFO: count ==4182 [2025-12-01 19:00:22] Production.ERROR: pbx CDR StartTime 2025-12-01 16:00:06 - End Time 2025-12-01 19:00:06 [2025-12-01 19:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16302602', 'tblTempUsageDetail_20' ) start [2025-12-01 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16302602', 'tblTempUsageDetail_20' ) end [2025-12-01 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16302602', 'tblTempVendorCDR_20' ) start [2025-12-01 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16302602', 'tblTempVendorCDR_20' ) end [2025-12-01 19:00:22] Production.INFO: ProcessCDR(1,16302602,1,1,2) [2025-12-01 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16302602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 19:03:07] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16302602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 19:03:07] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16302602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 19:03:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16302602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 19:03:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16302602', 'tblTempUsageDetail_20' ) start [2025-12-01 19:03:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16302602', 'tblTempUsageDetail_20' ) end [2025-12-01 19:03:19] Production.ERROR: pbx prc_insertCDR start [2025-12-01 19:03:20] Production.ERROR: pbx prc_insertCDR end [2025-12-01 19:03:20] Production.INFO: ==29936== Releasing lock... [2025-12-01 19:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 19:03:20] Production.INFO: 59.5 MB #Memory Used# [2025-12-01 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 17:00:06 [end_date_ymd] => 2025-12-01 20:00:06 [RateCDR] => 1 ) [2025-12-01 20:00: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-12-01 17:00:06' and `end` < '2025-12-01 20:00: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-12-01 20:00:18] Production.INFO: count ==3118 [2025-12-01 20:00:20] Production.ERROR: pbx CDR StartTime 2025-12-01 17:00:06 - End Time 2025-12-01 20:00:06 [2025-12-01 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16302849', 'tblTempUsageDetail_20' ) start [2025-12-01 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16302849', 'tblTempUsageDetail_20' ) end [2025-12-01 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16302849', 'tblTempVendorCDR_20' ) start [2025-12-01 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16302849', 'tblTempVendorCDR_20' ) end [2025-12-01 20:00:20] Production.INFO: ProcessCDR(1,16302849,1,1,2) [2025-12-01 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16302849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 20:03:03] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16302849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 20:03:03] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16302849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16302849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16302849', 'tblTempUsageDetail_20' ) start [2025-12-01 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16302849', 'tblTempUsageDetail_20' ) end [2025-12-01 20:06:21] Production.ERROR: pbx prc_insertCDR start [2025-12-01 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-12-01 20:06:23] Production.INFO: ==2303== Releasing lock... [2025-12-01 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 20:06:23] Production.INFO: 51.5 MB #Memory Used# [2025-12-01 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 18:00:06 [end_date_ymd] => 2025-12-01 21:00:06 [RateCDR] => 1 ) [2025-12-01 21:00: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-12-01 18:00:06' and `end` < '2025-12-01 21:00: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-12-01 21:00:19] Production.INFO: count ==2422 [2025-12-01 21:00:19] Production.ERROR: pbx CDR StartTime 2025-12-01 18:00:06 - End Time 2025-12-01 21:00:06 [2025-12-01 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16303097', 'tblTempUsageDetail_20' ) start [2025-12-01 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16303097', 'tblTempUsageDetail_20' ) end [2025-12-01 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16303097', 'tblTempVendorCDR_20' ) start [2025-12-01 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16303097', 'tblTempVendorCDR_20' ) end [2025-12-01 21:00:20] Production.INFO: ProcessCDR(1,16303097,1,1,2) [2025-12-01 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16303097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 21:02:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16303097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 21:02:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16303097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 21:06:05] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16303097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 21:06:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16303097', 'tblTempUsageDetail_20' ) start [2025-12-01 21:06:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16303097', 'tblTempUsageDetail_20' ) end [2025-12-01 21:06:06] Production.ERROR: pbx prc_insertCDR start [2025-12-01 21:06:07] Production.ERROR: pbx prc_insertCDR end [2025-12-01 21:06:07] Production.INFO: ==7157== Releasing lock... [2025-12-01 21:06:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 21:06:07] Production.INFO: 46.25 MB #Memory Used# [2025-12-01 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 19:00:07 [end_date_ymd] => 2025-12-01 22:00:07 [RateCDR] => 1 ) [2025-12-01 22:00:07] 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-12-01 19:00:07' and `end` < '2025-12-01 22:00:07' 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-12-01 22:00:19] Production.INFO: count ==1868 [2025-12-01 22:00:20] Production.ERROR: pbx CDR StartTime 2025-12-01 19:00:07 - End Time 2025-12-01 22:00:07 [2025-12-01 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16303344', 'tblTempUsageDetail_20' ) start [2025-12-01 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16303344', 'tblTempUsageDetail_20' ) end [2025-12-01 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16303344', 'tblTempVendorCDR_20' ) start [2025-12-01 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16303344', 'tblTempVendorCDR_20' ) end [2025-12-01 22:00:20] Production.INFO: ProcessCDR(1,16303344,1,1,2) [2025-12-01 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16303344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 22:03:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16303344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 22:03:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16303344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 22:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16303344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 22:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16303344', 'tblTempUsageDetail_20' ) start [2025-12-01 22:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16303344', 'tblTempUsageDetail_20' ) end [2025-12-01 22:06:25] Production.ERROR: pbx prc_insertCDR start [2025-12-01 22:06:26] Production.ERROR: pbx prc_insertCDR end [2025-12-01 22:06:26] Production.INFO: ==12102== Releasing lock... [2025-12-01 22:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 22:06:26] Production.INFO: 42.5 MB #Memory Used# [2025-12-01 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-01 20:00:06 [end_date_ymd] => 2025-12-01 23:00:06 [RateCDR] => 1 ) [2025-12-01 23:00: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-12-01 20:00:06' and `end` < '2025-12-01 23:00: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-12-01 23:00:18] Production.INFO: count ==1146 [2025-12-01 23:00:18] Production.ERROR: pbx CDR StartTime 2025-12-01 20:00:06 - End Time 2025-12-01 23:00:06 [2025-12-01 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-01 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16303591', 'tblTempUsageDetail_20' ) start [2025-12-01 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16303591', 'tblTempUsageDetail_20' ) end [2025-12-01 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16303591', 'tblTempVendorCDR_20' ) start [2025-12-01 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16303591', 'tblTempVendorCDR_20' ) end [2025-12-01 23:00:18] Production.INFO: ProcessCDR(1,16303591,1,1,2) [2025-12-01 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16303591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 23:03:06] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16303591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-01 23:03:06] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16303591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 23:03:15] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16303591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-01 23:03:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16303591', 'tblTempUsageDetail_20' ) start [2025-12-01 23:03:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16303591', 'tblTempUsageDetail_20' ) end [2025-12-01 23:03:15] Production.ERROR: pbx prc_insertCDR start [2025-12-01 23:03:16] Production.ERROR: pbx prc_insertCDR end [2025-12-01 23:03:16] Production.INFO: ==16733== Releasing lock... [2025-12-01 23:03:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-01 23:03:16] Production.INFO: 37 MB #Memory Used#