[2025-09-15 00:25:04] Production.INFO: next invoice date [2025-09-15 00:25:04] Production.INFO: 2025-10-15 [2025-09-15 00:25:04] Production.INFO: getdaysdiff [2025-09-15 00:25:04] Production.INFO: +30 [2025-09-15 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (230,16,1,30,30,'RMScheduler',2025-09-15 00:25:03,1,0,,,0) [2025-09-15 00:25:04] Production.INFO: next invoice date [2025-09-15 00:25:04] Production.INFO: 2025-10-15 [2025-09-15 00:25:04] Production.INFO: getdaysdiff [2025-09-15 00:25:04] Production.INFO: +30 [2025-09-15 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (230,13,2,30,30,'RMScheduler',2025-09-15 00:25:03,1,0,,,0) [2025-09-15 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 21:25:05 [end_date_ymd] => 2025-09-15 00:25:05 [RateCDR] => 1 ) [2025-09-15 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-14 21:25:05' and `end` < '2025-09-15 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-15 00:25:20] Production.INFO: count ==524 [2025-09-15 00:25:20] Production.ERROR: pbx CDR StartTime 2025-09-14 21:25:05 - End Time 2025-09-15 00:25:05 [2025-09-15 00:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15841314', 'tblTempUsageDetail_20' ) start [2025-09-15 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15841314', 'tblTempUsageDetail_20' ) end [2025-09-15 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15841314', 'tblTempVendorCDR_20' ) start [2025-09-15 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15841314', 'tblTempVendorCDR_20' ) end [2025-09-15 00:25:20] Production.INFO: ProcessCDR(1,15841314,1,1,2) [2025-09-15 00:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15841314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 00:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15841314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 00:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15841314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 00:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15841314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15841314', 'tblTempUsageDetail_20' ) start [2025-09-15 00:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15841314', 'tblTempUsageDetail_20' ) end [2025-09-15 00:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-15 00:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-15 00:25:32] Production.INFO: ==25758== Releasing lock... [2025-09-15 00:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 00:25:32] Production.INFO: 35.5 MB #Memory Used# [2025-09-15 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 22:25:06 [end_date_ymd] => 2025-09-15 01:25:06 [RateCDR] => 1 ) [2025-09-15 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-09-14 22:25:06' and `end` < '2025-09-15 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-09-15 01:25:18] Production.INFO: count ==501 [2025-09-15 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-14 22:25:06 - End Time 2025-09-15 01:25:06 [2025-09-15 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15841561', 'tblTempUsageDetail_20' ) start [2025-09-15 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15841561', 'tblTempUsageDetail_20' ) end [2025-09-15 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15841561', 'tblTempVendorCDR_20' ) start [2025-09-15 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15841561', 'tblTempVendorCDR_20' ) end [2025-09-15 01:25:18] Production.INFO: ProcessCDR(1,15841561,1,1,2) [2025-09-15 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15841561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15841561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15841561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15841561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15841561', 'tblTempUsageDetail_20' ) start [2025-09-15 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15841561', 'tblTempUsageDetail_20' ) end [2025-09-15 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-15 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-15 01:25:26] Production.INFO: ==30131== Releasing lock... [2025-09-15 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 01:25:26] Production.INFO: 32.75 MB #Memory Used# [2025-09-15 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-14 23:25:05 [end_date_ymd] => 2025-09-15 02:25:05 [RateCDR] => 1 ) [2025-09-15 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-14 23:25:05' and `end` < '2025-09-15 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-15 02:25:18] Production.INFO: count ==453 [2025-09-15 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-14 23:25:05 - End Time 2025-09-15 02:25:05 [2025-09-15 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15841808', 'tblTempUsageDetail_20' ) start [2025-09-15 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15841808', 'tblTempUsageDetail_20' ) end [2025-09-15 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15841808', 'tblTempVendorCDR_20' ) start [2025-09-15 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15841808', 'tblTempVendorCDR_20' ) end [2025-09-15 02:25:18] Production.INFO: ProcessCDR(1,15841808,1,1,2) [2025-09-15 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15841808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15841808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15841808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15841808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15841808', 'tblTempUsageDetail_20' ) start [2025-09-15 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15841808', 'tblTempUsageDetail_20' ) end [2025-09-15 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-15 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-15 02:25:26] Production.INFO: ==2429== Releasing lock... [2025-09-15 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 02:25:26] Production.INFO: 32 MB #Memory Used# [2025-09-15 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 00:25:05 [end_date_ymd] => 2025-09-15 03:25:05 [RateCDR] => 1 ) [2025-09-15 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-09-15 00:25:05' and `end` < '2025-09-15 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-09-15 03:25:17] Production.INFO: count ==550 [2025-09-15 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-15 00:25:05 - End Time 2025-09-15 03:25:05 [2025-09-15 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15842055', 'tblTempUsageDetail_20' ) start [2025-09-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15842055', 'tblTempUsageDetail_20' ) end [2025-09-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15842055', 'tblTempVendorCDR_20' ) start [2025-09-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15842055', 'tblTempVendorCDR_20' ) end [2025-09-15 03:25:17] Production.INFO: ProcessCDR(1,15842055,1,1,2) [2025-09-15 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15842055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15842055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15842055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 03:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15842055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15842055', 'tblTempUsageDetail_20' ) start [2025-09-15 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15842055', 'tblTempUsageDetail_20' ) end [2025-09-15 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-15 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-15 03:25:26] Production.INFO: ==6965== Releasing lock... [2025-09-15 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 03:25:26] Production.INFO: 32.75 MB #Memory Used# [2025-09-15 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 01:25:05 [end_date_ymd] => 2025-09-15 04:25:05 [RateCDR] => 1 ) [2025-09-15 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-09-15 01:25:05' and `end` < '2025-09-15 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-09-15 04:25:17] Production.INFO: count ==405 [2025-09-15 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-15 01:25:05 - End Time 2025-09-15 04:25:05 [2025-09-15 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15842303', 'tblTempUsageDetail_20' ) start [2025-09-15 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15842303', 'tblTempUsageDetail_20' ) end [2025-09-15 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15842303', 'tblTempVendorCDR_20' ) start [2025-09-15 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15842303', 'tblTempVendorCDR_20' ) end [2025-09-15 04:25:17] Production.INFO: ProcessCDR(1,15842303,1,1,2) [2025-09-15 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15842303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15842303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15842303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15842303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15842303', 'tblTempUsageDetail_20' ) start [2025-09-15 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15842303', 'tblTempUsageDetail_20' ) end [2025-09-15 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-15 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-15 04:25:25] Production.INFO: ==11246== Releasing lock... [2025-09-15 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 04:25:25] Production.INFO: 31.75 MB #Memory Used# [2025-09-15 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 02:25:05 [end_date_ymd] => 2025-09-15 05:25:05 [RateCDR] => 1 ) [2025-09-15 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-09-15 02:25:05' and `end` < '2025-09-15 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-09-15 05:25:17] Production.INFO: count ==372 [2025-09-15 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-15 02:25:05 - End Time 2025-09-15 05:25:05 [2025-09-15 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15842551', 'tblTempUsageDetail_20' ) start [2025-09-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15842551', 'tblTempUsageDetail_20' ) end [2025-09-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15842551', 'tblTempVendorCDR_20' ) start [2025-09-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15842551', 'tblTempVendorCDR_20' ) end [2025-09-15 05:25:17] Production.INFO: ProcessCDR(1,15842551,1,1,2) [2025-09-15 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15842551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15842551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15842551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15842551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15842551', 'tblTempUsageDetail_20' ) start [2025-09-15 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15842551', 'tblTempUsageDetail_20' ) end [2025-09-15 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-15 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-15 05:25:25] Production.INFO: ==15929== Releasing lock... [2025-09-15 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 05:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-09-15 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 03:25:05 [end_date_ymd] => 2025-09-15 06:25:05 [RateCDR] => 1 ) [2025-09-15 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-09-15 03:25:05' and `end` < '2025-09-15 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-09-15 06:25:17] Production.INFO: count ==129 [2025-09-15 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-15 03:25:05 - End Time 2025-09-15 06:25:05 [2025-09-15 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15842798', 'tblTempUsageDetail_20' ) start [2025-09-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15842798', 'tblTempUsageDetail_20' ) end [2025-09-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15842798', 'tblTempVendorCDR_20' ) start [2025-09-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15842798', 'tblTempVendorCDR_20' ) end [2025-09-15 06:25:17] Production.INFO: ProcessCDR(1,15842798,1,1,2) [2025-09-15 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15842798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15842798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15842798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15842798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15842798', 'tblTempUsageDetail_20' ) start [2025-09-15 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15842798', 'tblTempUsageDetail_20' ) end [2025-09-15 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-15 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-15 06:25:24] Production.INFO: ==20350== Releasing lock... [2025-09-15 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 06:25:24] Production.INFO: 29 MB #Memory Used# [2025-09-15 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 04:25:06 [end_date_ymd] => 2025-09-15 07:25:06 [RateCDR] => 1 ) [2025-09-15 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-09-15 04:25:06' and `end` < '2025-09-15 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-09-15 07:25:18] Production.INFO: count ==151 [2025-09-15 07:25:18] Production.ERROR: pbx CDR StartTime 2025-09-15 04:25:06 - End Time 2025-09-15 07:25:06 [2025-09-15 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15843045', 'tblTempUsageDetail_20' ) start [2025-09-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15843045', 'tblTempUsageDetail_20' ) end [2025-09-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15843045', 'tblTempVendorCDR_20' ) start [2025-09-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15843045', 'tblTempVendorCDR_20' ) end [2025-09-15 07:25:18] Production.INFO: ProcessCDR(1,15843045,1,1,2) [2025-09-15 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15843045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15843045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15843045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15843045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15843045', 'tblTempUsageDetail_20' ) start [2025-09-15 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15843045', 'tblTempUsageDetail_20' ) end [2025-09-15 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-15 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-15 07:25:26] Production.INFO: ==25026== Releasing lock... [2025-09-15 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 07:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-09-15 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 05:25:05 [end_date_ymd] => 2025-09-15 08:25:05 [RateCDR] => 1 ) [2025-09-15 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-09-15 05:25:05' and `end` < '2025-09-15 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-09-15 08:25:17] Production.INFO: count ==481 [2025-09-15 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-15 05:25:05 - End Time 2025-09-15 08:25:05 [2025-09-15 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15843292', 'tblTempUsageDetail_20' ) start [2025-09-15 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15843292', 'tblTempUsageDetail_20' ) end [2025-09-15 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15843292', 'tblTempVendorCDR_20' ) start [2025-09-15 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15843292', 'tblTempVendorCDR_20' ) end [2025-09-15 08:25:17] Production.INFO: ProcessCDR(1,15843292,1,1,2) [2025-09-15 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15843292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15843292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15843292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15843292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15843292', 'tblTempUsageDetail_20' ) start [2025-09-15 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15843292', 'tblTempUsageDetail_20' ) end [2025-09-15 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-15 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-15 08:25:26] Production.INFO: ==29275== Releasing lock... [2025-09-15 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 08:25:26] Production.INFO: 32 MB #Memory Used# [2025-09-15 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 06:25:05 [end_date_ymd] => 2025-09-15 09:25:05 [RateCDR] => 1 ) [2025-09-15 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-15 06:25:05' and `end` < '2025-09-15 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-15 09:25:18] Production.INFO: count ==1710 [2025-09-15 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-15 06:25:05 - End Time 2025-09-15 09:25:05 [2025-09-15 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15843539', 'tblTempUsageDetail_20' ) start [2025-09-15 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15843539', 'tblTempUsageDetail_20' ) end [2025-09-15 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15843539', 'tblTempVendorCDR_20' ) start [2025-09-15 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15843539', 'tblTempVendorCDR_20' ) end [2025-09-15 09:25:18] Production.INFO: ProcessCDR(1,15843539,1,1,2) [2025-09-15 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15843539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15843539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15843539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15843539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15843539', 'tblTempUsageDetail_20' ) start [2025-09-15 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15843539', 'tblTempUsageDetail_20' ) end [2025-09-15 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-15 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-15 09:25:28] Production.INFO: ==1719== Releasing lock... [2025-09-15 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 09:25:28] Production.INFO: 41.25 MB #Memory Used# [2025-09-15 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 07:25:05 [end_date_ymd] => 2025-09-15 10:25:05 [RateCDR] => 1 ) [2025-09-15 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-09-15 07:25:05' and `end` < '2025-09-15 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-09-15 10:25:19] Production.INFO: count ==3587 [2025-09-15 10:25:20] Production.ERROR: pbx CDR StartTime 2025-09-15 07:25:05 - End Time 2025-09-15 10:25:05 [2025-09-15 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15843786', 'tblTempUsageDetail_20' ) start [2025-09-15 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15843786', 'tblTempUsageDetail_20' ) end [2025-09-15 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15843786', 'tblTempVendorCDR_20' ) start [2025-09-15 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15843786', 'tblTempVendorCDR_20' ) end [2025-09-15 10:25:21] Production.INFO: ProcessCDR(1,15843786,1,1,2) [2025-09-15 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15843786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15843786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15843786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15843786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15843786', 'tblTempUsageDetail_20' ) start [2025-09-15 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15843786', 'tblTempUsageDetail_20' ) end [2025-09-15 10:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-15 10:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-15 10:25:31] Production.INFO: ==6399== Releasing lock... [2025-09-15 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 10:25:31] Production.INFO: 55 MB #Memory Used# [2025-09-15 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 08:25:06 [end_date_ymd] => 2025-09-15 11:25:06 [RateCDR] => 1 ) [2025-09-15 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-15 08:25:06' and `end` < '2025-09-15 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-15 11:25:20] Production.INFO: count ==5263 [2025-09-15 11:25:22] Production.ERROR: pbx CDR StartTime 2025-09-15 08:25:06 - End Time 2025-09-15 11:25:06 [2025-09-15 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15844033', 'tblTempUsageDetail_20' ) start [2025-09-15 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15844033', 'tblTempUsageDetail_20' ) end [2025-09-15 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15844033', 'tblTempVendorCDR_20' ) start [2025-09-15 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15844033', 'tblTempVendorCDR_20' ) end [2025-09-15 11:25:23] Production.INFO: ProcessCDR(1,15844033,1,1,2) [2025-09-15 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15844033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15844033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15844033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15844033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15844033', 'tblTempUsageDetail_20' ) start [2025-09-15 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15844033', 'tblTempUsageDetail_20' ) end [2025-09-15 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-15 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-15 11:25:35] Production.INFO: ==10800== Releasing lock... [2025-09-15 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 11:25:35] Production.INFO: 67.5 MB #Memory Used# [2025-09-15 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 09:25:05 [end_date_ymd] => 2025-09-15 12:25:05 [RateCDR] => 1 ) [2025-09-15 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-15 09:25:05' and `end` < '2025-09-15 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-15 12:25:23] Production.INFO: count ==6068 [2025-09-15 12:25:26] Production.ERROR: pbx CDR StartTime 2025-09-15 09:25:05 - End Time 2025-09-15 12:25:05 [2025-09-15 12:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15844280', 'tblTempUsageDetail_20' ) start [2025-09-15 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15844280', 'tblTempUsageDetail_20' ) end [2025-09-15 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15844280', 'tblTempVendorCDR_20' ) start [2025-09-15 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15844280', 'tblTempVendorCDR_20' ) end [2025-09-15 12:25:26] Production.INFO: ProcessCDR(1,15844280,1,1,2) [2025-09-15 12:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15844280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 12:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15844280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 12:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15844280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 12:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15844280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15844280', 'tblTempUsageDetail_20' ) start [2025-09-15 12:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15844280', 'tblTempUsageDetail_20' ) end [2025-09-15 12:25:36] Production.ERROR: pbx prc_insertCDR start [2025-09-15 12:25:38] Production.ERROR: pbx prc_insertCDR end [2025-09-15 12:25:38] Production.INFO: ==15239== Releasing lock... [2025-09-15 12:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 12:25:38] Production.INFO: 73.75 MB #Memory Used# [2025-09-15 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 10:25:05 [end_date_ymd] => 2025-09-15 13:25:05 [RateCDR] => 1 ) [2025-09-15 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-09-15 10:25:05' and `end` < '2025-09-15 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-09-15 13:25:19] Production.INFO: count ==6100 [2025-09-15 13:25:22] Production.ERROR: pbx CDR StartTime 2025-09-15 10:25:05 - End Time 2025-09-15 13:25:05 [2025-09-15 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15844527', 'tblTempUsageDetail_20' ) start [2025-09-15 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15844527', 'tblTempUsageDetail_20' ) end [2025-09-15 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15844527', 'tblTempVendorCDR_20' ) start [2025-09-15 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15844527', 'tblTempVendorCDR_20' ) end [2025-09-15 13:25:23] Production.INFO: ProcessCDR(1,15844527,1,1,2) [2025-09-15 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15844527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15844527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15844527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15844527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15844527', 'tblTempUsageDetail_20' ) start [2025-09-15 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15844527', 'tblTempUsageDetail_20' ) end [2025-09-15 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-15 13:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-15 13:25:36] Production.INFO: ==19471== Releasing lock... [2025-09-15 13:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 13:25:36] Production.INFO: 74 MB #Memory Used# [2025-09-15 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 11:25:05 [end_date_ymd] => 2025-09-15 14:25:05 [RateCDR] => 1 ) [2025-09-15 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-09-15 11:25:05' and `end` < '2025-09-15 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-09-15 14:25:19] Production.INFO: count ==6222 [2025-09-15 14:25:22] Production.ERROR: pbx CDR StartTime 2025-09-15 11:25:05 - End Time 2025-09-15 14:25:05 [2025-09-15 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15844774', 'tblTempUsageDetail_20' ) start [2025-09-15 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15844774', 'tblTempUsageDetail_20' ) end [2025-09-15 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15844774', 'tblTempVendorCDR_20' ) start [2025-09-15 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15844774', 'tblTempVendorCDR_20' ) end [2025-09-15 14:25:22] Production.INFO: ProcessCDR(1,15844774,1,1,2) [2025-09-15 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15844774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15844774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15844774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15844774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15844774', 'tblTempUsageDetail_20' ) start [2025-09-15 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15844774', 'tblTempUsageDetail_20' ) end [2025-09-15 14:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-15 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-15 14:25:34] Production.INFO: ==24236== Releasing lock... [2025-09-15 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 14:25:34] Production.INFO: 74.75 MB #Memory Used# [2025-09-15 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 12:25:05 [end_date_ymd] => 2025-09-15 15:25:05 [RateCDR] => 1 ) [2025-09-15 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-09-15 12:25:05' and `end` < '2025-09-15 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-09-15 15:25:19] Production.INFO: count ==6134 [2025-09-15 15:25:22] Production.ERROR: pbx CDR StartTime 2025-09-15 12:25:05 - End Time 2025-09-15 15:25:05 [2025-09-15 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15845021', 'tblTempUsageDetail_20' ) start [2025-09-15 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15845021', 'tblTempUsageDetail_20' ) end [2025-09-15 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15845021', 'tblTempVendorCDR_20' ) start [2025-09-15 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15845021', 'tblTempVendorCDR_20' ) end [2025-09-15 15:25:23] Production.INFO: ProcessCDR(1,15845021,1,1,2) [2025-09-15 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15845021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15845021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15845021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15845021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15845021', 'tblTempUsageDetail_20' ) start [2025-09-15 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15845021', 'tblTempUsageDetail_20' ) end [2025-09-15 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-15 15:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-15 15:25:35] Production.INFO: ==29004== Releasing lock... [2025-09-15 15:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 15:25:35] Production.INFO: 74.25 MB #Memory Used# [2025-09-15 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 13:25:05 [end_date_ymd] => 2025-09-15 16:25:05 [RateCDR] => 1 ) [2025-09-15 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-15 13:25:05' and `end` < '2025-09-15 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-15 16:25:21] Production.INFO: count ==6083 [2025-09-15 16:25:24] Production.ERROR: pbx CDR StartTime 2025-09-15 13:25:05 - End Time 2025-09-15 16:25:05 [2025-09-15 16:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15845268', 'tblTempUsageDetail_20' ) start [2025-09-15 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15845268', 'tblTempUsageDetail_20' ) end [2025-09-15 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15845268', 'tblTempVendorCDR_20' ) start [2025-09-15 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15845268', 'tblTempVendorCDR_20' ) end [2025-09-15 16:25:24] Production.INFO: ProcessCDR(1,15845268,1,1,2) [2025-09-15 16:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15845268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15845268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15845268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 16:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15845268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15845268', 'tblTempUsageDetail_20' ) start [2025-09-15 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15845268', 'tblTempUsageDetail_20' ) end [2025-09-15 16:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-15 16:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-15 16:25:36] Production.INFO: ==842== Releasing lock... [2025-09-15 16:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 16:25:36] Production.INFO: 73.75 MB #Memory Used# [2025-09-15 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 14:25:05 [end_date_ymd] => 2025-09-15 17:25:05 [RateCDR] => 1 ) [2025-09-15 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-09-15 14:25:05' and `end` < '2025-09-15 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-09-15 17:25:18] Production.INFO: count ==5528 [2025-09-15 17:25:21] Production.ERROR: pbx CDR StartTime 2025-09-15 14:25:05 - End Time 2025-09-15 17:25:05 [2025-09-15 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15845515', 'tblTempUsageDetail_20' ) start [2025-09-15 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15845515', 'tblTempUsageDetail_20' ) end [2025-09-15 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15845515', 'tblTempVendorCDR_20' ) start [2025-09-15 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15845515', 'tblTempVendorCDR_20' ) end [2025-09-15 17:25:21] Production.INFO: ProcessCDR(1,15845515,1,1,2) [2025-09-15 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15845515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15845515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15845515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15845515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15845515', 'tblTempUsageDetail_20' ) start [2025-09-15 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15845515', 'tblTempUsageDetail_20' ) end [2025-09-15 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-15 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-15 17:25:34] Production.INFO: ==5651== Releasing lock... [2025-09-15 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 17:25:34] Production.INFO: 69.75 MB #Memory Used# [2025-09-15 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 15:25:05 [end_date_ymd] => 2025-09-15 18:25:05 [RateCDR] => 1 ) [2025-09-15 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-15 15:25:05' and `end` < '2025-09-15 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-15 18:25:18] Production.INFO: count ==4649 [2025-09-15 18:25:20] Production.ERROR: pbx CDR StartTime 2025-09-15 15:25:05 - End Time 2025-09-15 18:25:05 [2025-09-15 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15845762', 'tblTempUsageDetail_20' ) start [2025-09-15 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15845762', 'tblTempUsageDetail_20' ) end [2025-09-15 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15845762', 'tblTempVendorCDR_20' ) start [2025-09-15 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15845762', 'tblTempVendorCDR_20' ) end [2025-09-15 18:25:21] Production.INFO: ProcessCDR(1,15845762,1,1,2) [2025-09-15 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15845762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15845762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15845762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15845762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15845762', 'tblTempUsageDetail_20' ) start [2025-09-15 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15845762', 'tblTempUsageDetail_20' ) end [2025-09-15 18:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-15 18:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-15 18:25:31] Production.INFO: ==9917== Releasing lock... [2025-09-15 18:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 18:25:31] Production.INFO: 63 MB #Memory Used# [2025-09-15 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 16:25:05 [end_date_ymd] => 2025-09-15 19:25:05 [RateCDR] => 1 ) [2025-09-15 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-15 16:25:05' and `end` < '2025-09-15 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-15 19:25:18] Production.INFO: count ==3559 [2025-09-15 19:25:19] Production.ERROR: pbx CDR StartTime 2025-09-15 16:25:05 - End Time 2025-09-15 19:25:05 [2025-09-15 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15846007', 'tblTempUsageDetail_20' ) start [2025-09-15 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15846007', 'tblTempUsageDetail_20' ) end [2025-09-15 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15846007', 'tblTempVendorCDR_20' ) start [2025-09-15 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15846007', 'tblTempVendorCDR_20' ) end [2025-09-15 19:25:20] Production.INFO: ProcessCDR(1,15846007,1,1,2) [2025-09-15 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15846007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15846007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15846007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15846007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15846007', 'tblTempUsageDetail_20' ) start [2025-09-15 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15846007', 'tblTempUsageDetail_20' ) end [2025-09-15 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-15 19:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-15 19:25:30] Production.INFO: ==14105== Releasing lock... [2025-09-15 19:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 19:25:30] Production.INFO: 55 MB #Memory Used# [2025-09-15 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 17:25:05 [end_date_ymd] => 2025-09-15 20:25:05 [RateCDR] => 1 ) [2025-09-15 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-15 17:25:05' and `end` < '2025-09-15 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-15 20:25:17] Production.INFO: count ==2527 [2025-09-15 20:25:18] Production.ERROR: pbx CDR StartTime 2025-09-15 17:25:05 - End Time 2025-09-15 20:25:05 [2025-09-15 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15846254', 'tblTempUsageDetail_20' ) start [2025-09-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15846254', 'tblTempUsageDetail_20' ) end [2025-09-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15846254', 'tblTempVendorCDR_20' ) start [2025-09-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15846254', 'tblTempVendorCDR_20' ) end [2025-09-15 20:25:18] Production.INFO: ProcessCDR(1,15846254,1,1,2) [2025-09-15 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15846254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15846254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15846254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15846254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15846254', 'tblTempUsageDetail_20' ) start [2025-09-15 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15846254', 'tblTempUsageDetail_20' ) end [2025-09-15 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-15 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-15 20:25:27] Production.INFO: ==18822== Releasing lock... [2025-09-15 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 20:25:27] Production.INFO: 47.25 MB #Memory Used# [2025-09-15 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 18:25:05 [end_date_ymd] => 2025-09-15 21:25:05 [RateCDR] => 1 ) [2025-09-15 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-09-15 18:25:05' and `end` < '2025-09-15 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-09-15 21:25:18] Production.INFO: count ==1759 [2025-09-15 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-15 18:25:05 - End Time 2025-09-15 21:25:05 [2025-09-15 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15846501', 'tblTempUsageDetail_20' ) start [2025-09-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15846501', 'tblTempUsageDetail_20' ) end [2025-09-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15846501', 'tblTempVendorCDR_20' ) start [2025-09-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15846501', 'tblTempVendorCDR_20' ) end [2025-09-15 21:25:18] Production.INFO: ProcessCDR(1,15846501,1,1,2) [2025-09-15 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15846501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15846501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15846501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15846501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15846501', 'tblTempUsageDetail_20' ) start [2025-09-15 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15846501', 'tblTempUsageDetail_20' ) end [2025-09-15 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-15 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-15 21:25:27] Production.INFO: ==23427== Releasing lock... [2025-09-15 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 21:25:27] Production.INFO: 41.25 MB #Memory Used# [2025-09-15 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 19:25:05 [end_date_ymd] => 2025-09-15 22:25:05 [RateCDR] => 1 ) [2025-09-15 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-09-15 19:25:05' and `end` < '2025-09-15 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-09-15 22:25:17] Production.INFO: count ==1164 [2025-09-15 22:25:17] Production.ERROR: pbx CDR StartTime 2025-09-15 19:25:05 - End Time 2025-09-15 22:25:05 [2025-09-15 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15846748', 'tblTempUsageDetail_20' ) start [2025-09-15 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15846748', 'tblTempUsageDetail_20' ) end [2025-09-15 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15846748', 'tblTempVendorCDR_20' ) start [2025-09-15 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15846748', 'tblTempVendorCDR_20' ) end [2025-09-15 22:25:17] Production.INFO: ProcessCDR(1,15846748,1,1,2) [2025-09-15 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15846748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15846748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15846748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15846748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15846748', 'tblTempUsageDetail_20' ) start [2025-09-15 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15846748', 'tblTempUsageDetail_20' ) end [2025-09-15 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-15 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-15 22:25:25] Production.INFO: ==28542== Releasing lock... [2025-09-15 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 22:25:25] Production.INFO: 36.75 MB #Memory Used# [2025-09-15 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 20:25:05 [end_date_ymd] => 2025-09-15 23:25:05 [RateCDR] => 1 ) [2025-09-15 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-09-15 20:25:05' and `end` < '2025-09-15 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-09-15 23:25:18] Production.INFO: count ==759 [2025-09-15 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-15 20:25:05 - End Time 2025-09-15 23:25:05 [2025-09-15 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15846995', 'tblTempUsageDetail_20' ) start [2025-09-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15846995', 'tblTempUsageDetail_20' ) end [2025-09-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15846995', 'tblTempVendorCDR_20' ) start [2025-09-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15846995', 'tblTempVendorCDR_20' ) end [2025-09-15 23:25:18] Production.INFO: ProcessCDR(1,15846995,1,1,2) [2025-09-15 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15846995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15846995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-15 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15846995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15846995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-15 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15846995', 'tblTempUsageDetail_20' ) start [2025-09-15 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15846995', 'tblTempUsageDetail_20' ) end [2025-09-15 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-15 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-15 23:25:27] Production.INFO: ==521== Releasing lock... [2025-09-15 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-15 23:25:27] Production.INFO: 33.75 MB #Memory Used#