[2025-10-04 00:25:05] Production.INFO: next invoice date [2025-10-04 00:25:05] Production.INFO: 2025-11-04 [2025-10-04 00:25:05] Production.INFO: getdaysdiff [2025-10-04 00:25:05] Production.INFO: +31 [2025-10-04 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (209,16,1,31,31,'RMScheduler',2025-10-04 00:25:05,0,0,,,0) [2025-10-04 00:25:05] Production.INFO: next invoice date [2025-10-04 00:25:05] Production.INFO: 2025-11-04 [2025-10-04 00:25:05] Production.INFO: getdaysdiff [2025-10-04 00:25:05] Production.INFO: +31 [2025-10-04 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (209,13,2,31,31,'RMScheduler',2025-10-04 00:25:05,0,0,,,0) [2025-10-04 00:25:05] Production.INFO: next invoice date [2025-10-04 00:25:05] Production.INFO: 2025-11-04 [2025-10-04 00:25:05] Production.INFO: getdaysdiff [2025-10-04 00:25:05] Production.INFO: +31 [2025-10-04 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (213,11,1,31,31,'RMScheduler',2025-10-04 00:25:05,0,0,,,0) [2025-10-04 00:25:05] Production.INFO: next invoice date [2025-10-04 00:25:05] Production.INFO: 2025-11-04 [2025-10-04 00:25:05] Production.INFO: getdaysdiff [2025-10-04 00:25:05] Production.INFO: +31 [2025-10-04 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (213,13,2,31,31,'RMScheduler',2025-10-04 00:25:05,0,0,,,0) [2025-10-04 00:25:05] Production.INFO: next invoice date [2025-10-04 00:25:05] Production.INFO: 2025-11-04 [2025-10-04 00:25:05] Production.INFO: getdaysdiff [2025-10-04 00:25:05] Production.INFO: +31 [2025-10-04 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (213,16,1,31,31,'RMScheduler',2025-10-04 00:25:05,1,0,,,0) [2025-10-04 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 21:25:06 [end_date_ymd] => 2025-10-04 00:25:06 [RateCDR] => 1 ) [2025-10-04 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-10-03 21:25:06' and `end` < '2025-10-04 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-10-04 00:25:19] Production.INFO: count ==788 [2025-10-04 00:25:19] Production.ERROR: pbx CDR StartTime 2025-10-03 21:25:06 - End Time 2025-10-04 00:25:06 [2025-10-04 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15953932', 'tblTempUsageDetail_20' ) start [2025-10-04 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15953932', 'tblTempUsageDetail_20' ) end [2025-10-04 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15953932', 'tblTempVendorCDR_20' ) start [2025-10-04 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15953932', 'tblTempVendorCDR_20' ) end [2025-10-04 00:25:19] Production.INFO: ProcessCDR(1,15953932,1,1,2) [2025-10-04 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15953932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 00:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15953932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 00:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15953932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 00:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15953932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15953932', 'tblTempUsageDetail_20' ) start [2025-10-04 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15953932', 'tblTempUsageDetail_20' ) end [2025-10-04 00:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-04 00:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-04 00:25:29] Production.INFO: ==22617== Releasing lock... [2025-10-04 00:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 00:25:29] Production.INFO: 38.5 MB #Memory Used# [2025-10-04 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 22:25:06 [end_date_ymd] => 2025-10-04 01:25:06 [RateCDR] => 1 ) [2025-10-04 01:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 22:25:06' and `end` < '2025-10-04 01:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 01:25:18] Production.INFO: count ==706 [2025-10-04 01:25:18] Production.ERROR: pbx CDR StartTime 2025-10-03 22:25:06 - End Time 2025-10-04 01:25:06 [2025-10-04 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15954179', 'tblTempUsageDetail_20' ) start [2025-10-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15954179', 'tblTempUsageDetail_20' ) end [2025-10-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15954179', 'tblTempVendorCDR_20' ) start [2025-10-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15954179', 'tblTempVendorCDR_20' ) end [2025-10-04 01:25:18] Production.INFO: ProcessCDR(1,15954179,1,1,2) [2025-10-04 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15954179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 01:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15954179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 01:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15954179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 01:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15954179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15954179', 'tblTempUsageDetail_20' ) start [2025-10-04 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15954179', 'tblTempUsageDetail_20' ) end [2025-10-04 01:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-04 01:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-04 01:25:28] Production.INFO: ==27543== Releasing lock... [2025-10-04 01:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 01:25:28] Production.INFO: 33.75 MB #Memory Used# [2025-10-04 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-03 23:25:06 [end_date_ymd] => 2025-10-04 02:25:06 [RateCDR] => 1 ) [2025-10-04 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-03 23:25:06' and `end` < '2025-10-04 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 02:25:18] Production.INFO: count ==681 [2025-10-04 02:25:18] Production.ERROR: pbx CDR StartTime 2025-10-03 23:25:06 - End Time 2025-10-04 02:25:06 [2025-10-04 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15954426', 'tblTempUsageDetail_20' ) start [2025-10-04 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15954426', 'tblTempUsageDetail_20' ) end [2025-10-04 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15954426', 'tblTempVendorCDR_20' ) start [2025-10-04 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15954426', 'tblTempVendorCDR_20' ) end [2025-10-04 02:25:18] Production.INFO: ProcessCDR(1,15954426,1,1,2) [2025-10-04 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15954426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15954426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15954426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 02:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15954426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15954426', 'tblTempUsageDetail_20' ) start [2025-10-04 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15954426', 'tblTempUsageDetail_20' ) end [2025-10-04 02:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-04 02:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-04 02:25:27] Production.INFO: ==32465== Releasing lock... [2025-10-04 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 02:25:27] Production.INFO: 33.5 MB #Memory Used# [2025-10-04 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 00:25:05 [end_date_ymd] => 2025-10-04 03:25:05 [RateCDR] => 1 ) [2025-10-04 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 00:25:05' and `end` < '2025-10-04 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 03:25:17] Production.INFO: count ==550 [2025-10-04 03:25:18] Production.ERROR: pbx CDR StartTime 2025-10-04 00:25:05 - End Time 2025-10-04 03:25:05 [2025-10-04 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15954673', 'tblTempUsageDetail_20' ) start [2025-10-04 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15954673', 'tblTempUsageDetail_20' ) end [2025-10-04 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15954673', 'tblTempVendorCDR_20' ) start [2025-10-04 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15954673', 'tblTempVendorCDR_20' ) end [2025-10-04 03:25:18] Production.INFO: ProcessCDR(1,15954673,1,1,2) [2025-10-04 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15954673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15954673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15954673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 03:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15954673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15954673', 'tblTempUsageDetail_20' ) start [2025-10-04 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15954673', 'tblTempUsageDetail_20' ) end [2025-10-04 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-04 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-04 03:25:26] Production.INFO: ==4571== Releasing lock... [2025-10-04 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 03:25:26] Production.INFO: 32.5 MB #Memory Used# [2025-10-04 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 01:25:05 [end_date_ymd] => 2025-10-04 04:25:05 [RateCDR] => 1 ) [2025-10-04 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 01:25:05' and `end` < '2025-10-04 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 04:25:17] Production.INFO: count ==386 [2025-10-04 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-04 01:25:05 - End Time 2025-10-04 04:25:05 [2025-10-04 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15954921', 'tblTempUsageDetail_20' ) start [2025-10-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15954921', 'tblTempUsageDetail_20' ) end [2025-10-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15954921', 'tblTempVendorCDR_20' ) start [2025-10-04 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15954921', 'tblTempVendorCDR_20' ) end [2025-10-04 04:25:17] Production.INFO: ProcessCDR(1,15954921,1,1,2) [2025-10-04 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15954921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15954921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15954921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15954921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15954921', 'tblTempUsageDetail_20' ) start [2025-10-04 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15954921', 'tblTempUsageDetail_20' ) end [2025-10-04 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-04 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-04 04:25:25] Production.INFO: ==9069== Releasing lock... [2025-10-04 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 04:25:25] Production.INFO: 31.75 MB #Memory Used# [2025-10-04 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 02:25:05 [end_date_ymd] => 2025-10-04 05:25:05 [RateCDR] => 1 ) [2025-10-04 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 02:25:05' and `end` < '2025-10-04 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 05:25:17] Production.INFO: count ==237 [2025-10-04 05:25:17] Production.ERROR: pbx CDR StartTime 2025-10-04 02:25:05 - End Time 2025-10-04 05:25:05 [2025-10-04 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15955169', 'tblTempUsageDetail_20' ) start [2025-10-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15955169', 'tblTempUsageDetail_20' ) end [2025-10-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15955169', 'tblTempVendorCDR_20' ) start [2025-10-04 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15955169', 'tblTempVendorCDR_20' ) end [2025-10-04 05:25:17] Production.INFO: ProcessCDR(1,15955169,1,1,2) [2025-10-04 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15955169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15955169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15955169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15955169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15955169', 'tblTempUsageDetail_20' ) start [2025-10-04 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15955169', 'tblTempUsageDetail_20' ) end [2025-10-04 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-10-04 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-10-04 05:25:23] Production.INFO: ==13579== Releasing lock... [2025-10-04 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 05:25:23] Production.INFO: 30.25 MB #Memory Used# [2025-10-04 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 03:25:05 [end_date_ymd] => 2025-10-04 06:25:05 [RateCDR] => 1 ) [2025-10-04 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-10-04 03:25:05' and `end` < '2025-10-04 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-10-04 06:25:17] Production.INFO: count ==150 [2025-10-04 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-04 03:25:05 - End Time 2025-10-04 06:25:05 [2025-10-04 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15955416', 'tblTempUsageDetail_20' ) start [2025-10-04 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15955416', 'tblTempUsageDetail_20' ) end [2025-10-04 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15955416', 'tblTempVendorCDR_20' ) start [2025-10-04 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15955416', 'tblTempVendorCDR_20' ) end [2025-10-04 06:25:17] Production.INFO: ProcessCDR(1,15955416,1,1,2) [2025-10-04 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15955416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15955416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15955416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15955416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15955416', 'tblTempUsageDetail_20' ) start [2025-10-04 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15955416', 'tblTempUsageDetail_20' ) end [2025-10-04 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-04 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-04 06:25:26] Production.INFO: ==17995== Releasing lock... [2025-10-04 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 06:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-10-04 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 04:25:06 [end_date_ymd] => 2025-10-04 07:25:06 [RateCDR] => 1 ) [2025-10-04 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 04:25:06' and `end` < '2025-10-04 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 07:25:18] Production.INFO: count ==182 [2025-10-04 07:25:18] Production.ERROR: pbx CDR StartTime 2025-10-04 04:25:06 - End Time 2025-10-04 07:25:06 [2025-10-04 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15955663', 'tblTempUsageDetail_20' ) start [2025-10-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15955663', 'tblTempUsageDetail_20' ) end [2025-10-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15955663', 'tblTempVendorCDR_20' ) start [2025-10-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15955663', 'tblTempVendorCDR_20' ) end [2025-10-04 07:25:18] Production.INFO: ProcessCDR(1,15955663,1,1,2) [2025-10-04 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15955663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15955663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15955663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15955663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15955663', 'tblTempUsageDetail_20' ) start [2025-10-04 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15955663', 'tblTempUsageDetail_20' ) end [2025-10-04 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-04 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-04 07:25:27] Production.INFO: ==22607== Releasing lock... [2025-10-04 07:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 07:25:27] Production.INFO: 30 MB #Memory Used# [2025-10-04 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 05:25:05 [end_date_ymd] => 2025-10-04 08:25:05 [RateCDR] => 1 ) [2025-10-04 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 05:25:05' and `end` < '2025-10-04 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 08:25:17] Production.INFO: count ==270 [2025-10-04 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-04 05:25:05 - End Time 2025-10-04 08:25:05 [2025-10-04 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15955910', 'tblTempUsageDetail_20' ) start [2025-10-04 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15955910', 'tblTempUsageDetail_20' ) end [2025-10-04 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15955910', 'tblTempVendorCDR_20' ) start [2025-10-04 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15955910', 'tblTempVendorCDR_20' ) end [2025-10-04 08:25:17] Production.INFO: ProcessCDR(1,15955910,1,1,2) [2025-10-04 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15955910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15955910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15955910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15955910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15955910', 'tblTempUsageDetail_20' ) start [2025-10-04 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15955910', 'tblTempUsageDetail_20' ) end [2025-10-04 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-04 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-04 08:25:25] Production.INFO: ==27104== Releasing lock... [2025-10-04 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 08:25:25] Production.INFO: 31 MB #Memory Used# [2025-10-04 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 06:25:06 [end_date_ymd] => 2025-10-04 09:25:06 [RateCDR] => 1 ) [2025-10-04 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 06:25:06' and `end` < '2025-10-04 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 09:25:18] Production.INFO: count ==623 [2025-10-04 09:25:19] Production.ERROR: pbx CDR StartTime 2025-10-04 06:25:06 - End Time 2025-10-04 09:25:06 [2025-10-04 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15956157', 'tblTempUsageDetail_20' ) start [2025-10-04 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15956157', 'tblTempUsageDetail_20' ) end [2025-10-04 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15956157', 'tblTempVendorCDR_20' ) start [2025-10-04 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15956157', 'tblTempVendorCDR_20' ) end [2025-10-04 09:25:19] Production.INFO: ProcessCDR(1,15956157,1,1,2) [2025-10-04 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15956157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15956157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15956157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15956157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15956157', 'tblTempUsageDetail_20' ) start [2025-10-04 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15956157', 'tblTempUsageDetail_20' ) end [2025-10-04 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-04 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-04 09:25:28] Production.INFO: ==31850== Releasing lock... [2025-10-04 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 09:25:28] Production.INFO: 33.5 MB #Memory Used# [2025-10-04 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 07:25:05 [end_date_ymd] => 2025-10-04 10:25:05 [RateCDR] => 1 ) [2025-10-04 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 07:25:05' and `end` < '2025-10-04 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 10:25:17] Production.INFO: count ==949 [2025-10-04 10:25:17] Production.ERROR: pbx CDR StartTime 2025-10-04 07:25:05 - End Time 2025-10-04 10:25:05 [2025-10-04 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15956404', 'tblTempUsageDetail_20' ) start [2025-10-04 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15956404', 'tblTempUsageDetail_20' ) end [2025-10-04 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15956404', 'tblTempVendorCDR_20' ) start [2025-10-04 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15956404', 'tblTempVendorCDR_20' ) end [2025-10-04 10:25:17] Production.INFO: ProcessCDR(1,15956404,1,1,2) [2025-10-04 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15956404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15956404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15956404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15956404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15956404', 'tblTempUsageDetail_20' ) start [2025-10-04 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15956404', 'tblTempUsageDetail_20' ) end [2025-10-04 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-04 10:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-04 10:25:27] Production.INFO: ==3909== Releasing lock... [2025-10-04 10:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 10:25:27] Production.INFO: 36.25 MB #Memory Used# [2025-10-04 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 08:25:05 [end_date_ymd] => 2025-10-04 11:25:05 [RateCDR] => 1 ) [2025-10-04 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-10-04 08:25:05' and `end` < '2025-10-04 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-10-04 11:25:18] Production.INFO: count ==1605 [2025-10-04 11:25:18] Production.ERROR: pbx CDR StartTime 2025-10-04 08:25:05 - End Time 2025-10-04 11:25:05 [2025-10-04 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15956651', 'tblTempUsageDetail_20' ) start [2025-10-04 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15956651', 'tblTempUsageDetail_20' ) end [2025-10-04 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15956651', 'tblTempVendorCDR_20' ) start [2025-10-04 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15956651', 'tblTempVendorCDR_20' ) end [2025-10-04 11:25:18] Production.INFO: ProcessCDR(1,15956651,1,1,2) [2025-10-04 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15956651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15956651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15956651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15956651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15956651', 'tblTempUsageDetail_20' ) start [2025-10-04 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15956651', 'tblTempUsageDetail_20' ) end [2025-10-04 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-04 11:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-04 11:25:28] Production.INFO: ==8348== Releasing lock... [2025-10-04 11:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 11:25:28] Production.INFO: 40.25 MB #Memory Used# [2025-10-04 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 09:25:06 [end_date_ymd] => 2025-10-04 12:25:06 [RateCDR] => 1 ) [2025-10-04 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-10-04 09:25:06' and `end` < '2025-10-04 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-10-04 12:25:18] Production.INFO: count ==1981 [2025-10-04 12:25:19] Production.ERROR: pbx CDR StartTime 2025-10-04 09:25:06 - End Time 2025-10-04 12:25:06 [2025-10-04 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15956898', 'tblTempUsageDetail_20' ) start [2025-10-04 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15956898', 'tblTempUsageDetail_20' ) end [2025-10-04 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15956898', 'tblTempVendorCDR_20' ) start [2025-10-04 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15956898', 'tblTempVendorCDR_20' ) end [2025-10-04 12:25:19] Production.INFO: ProcessCDR(1,15956898,1,1,2) [2025-10-04 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15956898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15956898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15956898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15956898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15956898', 'tblTempUsageDetail_20' ) start [2025-10-04 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15956898', 'tblTempUsageDetail_20' ) end [2025-10-04 12:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-04 12:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-04 12:25:30] Production.INFO: ==12797== Releasing lock... [2025-10-04 12:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 12:25:30] Production.INFO: 43 MB #Memory Used# [2025-10-04 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 10:25:05 [end_date_ymd] => 2025-10-04 13:25:05 [RateCDR] => 1 ) [2025-10-04 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 10:25:05' and `end` < '2025-10-04 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 13:25:18] Production.INFO: count ==2178 [2025-10-04 13:25:19] Production.ERROR: pbx CDR StartTime 2025-10-04 10:25:05 - End Time 2025-10-04 13:25:05 [2025-10-04 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15957145', 'tblTempUsageDetail_20' ) start [2025-10-04 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15957145', 'tblTempUsageDetail_20' ) end [2025-10-04 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15957145', 'tblTempVendorCDR_20' ) start [2025-10-04 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15957145', 'tblTempVendorCDR_20' ) end [2025-10-04 13:25:19] Production.INFO: ProcessCDR(1,15957145,1,1,2) [2025-10-04 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15957145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15957145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15957145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 13:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15957145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15957145', 'tblTempUsageDetail_20' ) start [2025-10-04 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15957145', 'tblTempUsageDetail_20' ) end [2025-10-04 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-04 13:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-04 13:25:29] Production.INFO: ==18336== Releasing lock... [2025-10-04 13:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 13:25:29] Production.INFO: 44.5 MB #Memory Used# [2025-10-04 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 11:25:05 [end_date_ymd] => 2025-10-04 14:25:05 [RateCDR] => 1 ) [2025-10-04 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 11:25:05' and `end` < '2025-10-04 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 14:25:17] Production.INFO: count ==2020 [2025-10-04 14:25:18] Production.ERROR: pbx CDR StartTime 2025-10-04 11:25:05 - End Time 2025-10-04 14:25:05 [2025-10-04 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15957392', 'tblTempUsageDetail_20' ) start [2025-10-04 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15957392', 'tblTempUsageDetail_20' ) end [2025-10-04 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15957392', 'tblTempVendorCDR_20' ) start [2025-10-04 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15957392', 'tblTempVendorCDR_20' ) end [2025-10-04 14:25:18] Production.INFO: ProcessCDR(1,15957392,1,1,2) [2025-10-04 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15957392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15957392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15957392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15957392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15957392', 'tblTempUsageDetail_20' ) start [2025-10-04 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15957392', 'tblTempUsageDetail_20' ) end [2025-10-04 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-04 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-04 14:25:28] Production.INFO: ==22785== Releasing lock... [2025-10-04 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 14:25:28] Production.INFO: 43.25 MB #Memory Used# [2025-10-04 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 12:25:05 [end_date_ymd] => 2025-10-04 15:25:05 [RateCDR] => 1 ) [2025-10-04 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 12:25:05' and `end` < '2025-10-04 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 15:25:18] Production.INFO: count ==1818 [2025-10-04 15:25:18] Production.ERROR: pbx CDR StartTime 2025-10-04 12:25:05 - End Time 2025-10-04 15:25:05 [2025-10-04 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15957639', 'tblTempUsageDetail_20' ) start [2025-10-04 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15957639', 'tblTempUsageDetail_20' ) end [2025-10-04 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15957639', 'tblTempVendorCDR_20' ) start [2025-10-04 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15957639', 'tblTempVendorCDR_20' ) end [2025-10-04 15:25:19] Production.INFO: ProcessCDR(1,15957639,1,1,2) [2025-10-04 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15957639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15957639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15957639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15957639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15957639', 'tblTempUsageDetail_20' ) start [2025-10-04 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15957639', 'tblTempUsageDetail_20' ) end [2025-10-04 15:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-04 15:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-04 15:25:28] Production.INFO: ==27293== Releasing lock... [2025-10-04 15:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 15:25:28] Production.INFO: 41.75 MB #Memory Used# [2025-10-04 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 13:25:06 [end_date_ymd] => 2025-10-04 16:25:06 [RateCDR] => 1 ) [2025-10-04 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 13:25:06' and `end` < '2025-10-04 16:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 16:25:18] Production.INFO: count ==1774 [2025-10-04 16:25:19] Production.ERROR: pbx CDR StartTime 2025-10-04 13:25:06 - End Time 2025-10-04 16:25:06 [2025-10-04 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15957886', 'tblTempUsageDetail_20' ) start [2025-10-04 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15957886', 'tblTempUsageDetail_20' ) end [2025-10-04 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15957886', 'tblTempVendorCDR_20' ) start [2025-10-04 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15957886', 'tblTempVendorCDR_20' ) end [2025-10-04 16:25:19] Production.INFO: ProcessCDR(1,15957886,1,1,2) [2025-10-04 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15957886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15957886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15957886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 16:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15957886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15957886', 'tblTempUsageDetail_20' ) start [2025-10-04 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15957886', 'tblTempUsageDetail_20' ) end [2025-10-04 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-04 16:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-04 16:25:29] Production.INFO: ==31785== Releasing lock... [2025-10-04 16:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 16:25:29] Production.INFO: 41.5 MB #Memory Used# [2025-10-04 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 14:25:05 [end_date_ymd] => 2025-10-04 17:25:05 [RateCDR] => 1 ) [2025-10-04 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 14:25:05' and `end` < '2025-10-04 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 17:25:19] Production.INFO: count ==1899 [2025-10-04 17:25:20] Production.ERROR: pbx CDR StartTime 2025-10-04 14:25:05 - End Time 2025-10-04 17:25:05 [2025-10-04 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15958133', 'tblTempUsageDetail_20' ) start [2025-10-04 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15958133', 'tblTempUsageDetail_20' ) end [2025-10-04 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15958133', 'tblTempVendorCDR_20' ) start [2025-10-04 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15958133', 'tblTempVendorCDR_20' ) end [2025-10-04 17:25:20] Production.INFO: ProcessCDR(1,15958133,1,1,2) [2025-10-04 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15958133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15958133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15958133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15958133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15958133', 'tblTempUsageDetail_20' ) start [2025-10-04 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15958133', 'tblTempUsageDetail_20' ) end [2025-10-04 17:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-04 17:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-04 17:25:30] Production.INFO: ==4312== Releasing lock... [2025-10-04 17:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 17:25:30] Production.INFO: 42.5 MB #Memory Used# [2025-10-04 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 15:25:06 [end_date_ymd] => 2025-10-04 18:25:06 [RateCDR] => 1 ) [2025-10-04 18:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 15:25:06' and `end` < '2025-10-04 18:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 18:25:19] Production.INFO: count ==2101 [2025-10-04 18:25:20] Production.ERROR: pbx CDR StartTime 2025-10-04 15:25:06 - End Time 2025-10-04 18:25:06 [2025-10-04 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15958380', 'tblTempUsageDetail_20' ) start [2025-10-04 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15958380', 'tblTempUsageDetail_20' ) end [2025-10-04 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15958380', 'tblTempVendorCDR_20' ) start [2025-10-04 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15958380', 'tblTempVendorCDR_20' ) end [2025-10-04 18:25:20] Production.INFO: ProcessCDR(1,15958380,1,1,2) [2025-10-04 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15958380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15958380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15958380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 18:25:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15958380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 18:25:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15958380', 'tblTempUsageDetail_20' ) start [2025-10-04 18:26:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15958380', 'tblTempUsageDetail_20' ) end [2025-10-04 18:26:00] Production.ERROR: pbx prc_insertCDR start [2025-10-04 18:26:04] Production.ERROR: pbx prc_insertCDR end [2025-10-04 18:26:07] Production.INFO: ==9580== Releasing lock... [2025-10-04 18:26:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 18:26:07] Production.INFO: 44.25 MB #Memory Used# [2025-10-04 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 16:25:06 [end_date_ymd] => 2025-10-04 19:25:06 [RateCDR] => 1 ) [2025-10-04 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 16:25:06' and `end` < '2025-10-04 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 19:25:18] Production.INFO: count ==2074 [2025-10-04 19:25:19] Production.ERROR: pbx CDR StartTime 2025-10-04 16:25:06 - End Time 2025-10-04 19:25:06 [2025-10-04 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15958625', 'tblTempUsageDetail_20' ) start [2025-10-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15958625', 'tblTempUsageDetail_20' ) end [2025-10-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15958625', 'tblTempVendorCDR_20' ) start [2025-10-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15958625', 'tblTempVendorCDR_20' ) end [2025-10-04 19:25:19] Production.INFO: ProcessCDR(1,15958625,1,1,2) [2025-10-04 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15958625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15958625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15958625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15958625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15958625', 'tblTempUsageDetail_20' ) start [2025-10-04 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15958625', 'tblTempUsageDetail_20' ) end [2025-10-04 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-04 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-04 19:25:28] Production.INFO: ==14383== Releasing lock... [2025-10-04 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 19:25:28] Production.INFO: 43.75 MB #Memory Used# [2025-10-04 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 17:25:06 [end_date_ymd] => 2025-10-04 20:25:06 [RateCDR] => 1 ) [2025-10-04 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 17:25:06' and `end` < '2025-10-04 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 20:25:18] Production.INFO: count ==1963 [2025-10-04 20:25:19] Production.ERROR: pbx CDR StartTime 2025-10-04 17:25:06 - End Time 2025-10-04 20:25:06 [2025-10-04 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15958872', 'tblTempUsageDetail_20' ) start [2025-10-04 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15958872', 'tblTempUsageDetail_20' ) end [2025-10-04 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15958872', 'tblTempVendorCDR_20' ) start [2025-10-04 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15958872', 'tblTempVendorCDR_20' ) end [2025-10-04 20:25:19] Production.INFO: ProcessCDR(1,15958872,1,1,2) [2025-10-04 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15958872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15958872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15958872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15958872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15958872', 'tblTempUsageDetail_20' ) start [2025-10-04 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15958872', 'tblTempUsageDetail_20' ) end [2025-10-04 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-04 20:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-04 20:25:29] Production.INFO: ==19131== Releasing lock... [2025-10-04 20:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 20:25:29] Production.INFO: 43 MB #Memory Used# [2025-10-04 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 18:25:05 [end_date_ymd] => 2025-10-04 21:25:05 [RateCDR] => 1 ) [2025-10-04 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 18:25:05' and `end` < '2025-10-04 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 21:25:18] Production.INFO: count ==1672 [2025-10-04 21:25:18] Production.ERROR: pbx CDR StartTime 2025-10-04 18:25:05 - End Time 2025-10-04 21:25:05 [2025-10-04 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15959119', 'tblTempUsageDetail_20' ) start [2025-10-04 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15959119', 'tblTempUsageDetail_20' ) end [2025-10-04 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15959119', 'tblTempVendorCDR_20' ) start [2025-10-04 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15959119', 'tblTempVendorCDR_20' ) end [2025-10-04 21:25:18] Production.INFO: ProcessCDR(1,15959119,1,1,2) [2025-10-04 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15959119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15959119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15959119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15959119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15959119', 'tblTempUsageDetail_20' ) start [2025-10-04 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15959119', 'tblTempUsageDetail_20' ) end [2025-10-04 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-04 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-04 21:25:28] Production.INFO: ==24143== Releasing lock... [2025-10-04 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 21:25:28] Production.INFO: 40.75 MB #Memory Used# [2025-10-04 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 19:25:05 [end_date_ymd] => 2025-10-04 22:25:05 [RateCDR] => 1 ) [2025-10-04 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-04 19:25:05' and `end` < '2025-10-04 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-04 22:25:17] Production.INFO: count ==1452 [2025-10-04 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-04 19:25:05 - End Time 2025-10-04 22:25:05 [2025-10-04 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15959366', 'tblTempUsageDetail_20' ) start [2025-10-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15959366', 'tblTempUsageDetail_20' ) end [2025-10-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15959366', 'tblTempVendorCDR_20' ) start [2025-10-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15959366', 'tblTempVendorCDR_20' ) end [2025-10-04 22:25:18] Production.INFO: ProcessCDR(1,15959366,1,1,2) [2025-10-04 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15959366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15959366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15959366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15959366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15959366', 'tblTempUsageDetail_20' ) start [2025-10-04 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15959366', 'tblTempUsageDetail_20' ) end [2025-10-04 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-04 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-04 22:25:27] Production.INFO: ==28629== Releasing lock... [2025-10-04 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 22:25:27] Production.INFO: 39 MB #Memory Used# [2025-10-04 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-04 20:25:05 [end_date_ymd] => 2025-10-04 23:25:05 [RateCDR] => 1 ) [2025-10-04 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-10-04 20:25:05' and `end` < '2025-10-04 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-10-04 23:25:18] Production.INFO: count ==1170 [2025-10-04 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-04 20:25:05 - End Time 2025-10-04 23:25:05 [2025-10-04 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15959613', 'tblTempUsageDetail_20' ) start [2025-10-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15959613', 'tblTempUsageDetail_20' ) end [2025-10-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15959613', 'tblTempVendorCDR_20' ) start [2025-10-04 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15959613', 'tblTempVendorCDR_20' ) end [2025-10-04 23:25:18] Production.INFO: ProcessCDR(1,15959613,1,1,2) [2025-10-04 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15959613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 23:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15959613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-04 23:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15959613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 23:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15959613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-04 23:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15959613', 'tblTempUsageDetail_20' ) start [2025-10-04 23:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15959613', 'tblTempUsageDetail_20' ) end [2025-10-04 23:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-04 23:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-04 23:25:28] Production.INFO: ==1686== Releasing lock... [2025-10-04 23:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-04 23:25:28] Production.INFO: 37 MB #Memory Used#