[2025-11-15 00:00:05] Production.INFO: next invoice date [2025-11-15 00:00:05] Production.INFO: 2025-12-15 [2025-11-15 00:00:05] Production.INFO: getdaysdiff [2025-11-15 00:00:05] Production.INFO: +30 [2025-11-15 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (230,16,1,30,30,'RMScheduler',2025-11-15 00:00:05,1,0,,,0) [2025-11-15 00:00:05] Production.INFO: next invoice date [2025-11-15 00:00:05] Production.INFO: 2025-12-15 [2025-11-15 00:00:05] Production.INFO: getdaysdiff [2025-11-15 00:00:05] Production.INFO: +30 [2025-11-15 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (230,13,2,30,30,'RMScheduler',2025-11-15 00:00:05,1,0,,,0) [2025-11-15 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 21:00:07 [end_date_ymd] => 2025-11-15 00:00:07 [RateCDR] => 1 ) [2025-11-15 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-14 21:00:07' and `end` < '2025-11-15 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 00:00:20] Production.INFO: count ==1509 [2025-11-15 00:00:22] Production.ERROR: pbx CDR StartTime 2025-11-14 21:00:07 - End Time 2025-11-15 00:00:07 [2025-11-15 00:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16203067', 'tblTempUsageDetail_20' ) start [2025-11-15 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16203067', 'tblTempUsageDetail_20' ) end [2025-11-15 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16203067', 'tblTempVendorCDR_20' ) start [2025-11-15 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16203067', 'tblTempVendorCDR_20' ) end [2025-11-15 00:00:22] Production.INFO: ProcessCDR(1,16203067,1,1,2) [2025-11-15 00:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16203067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 00:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16203067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 00:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16203067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 00:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16203067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16203067', 'tblTempUsageDetail_20' ) start [2025-11-15 00:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16203067', 'tblTempUsageDetail_20' ) end [2025-11-15 00:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-15 00:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-15 00:00:38] Production.INFO: ==9622== Releasing lock... [2025-11-15 00:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 00:00:38] Production.INFO: 41.5 MB #Memory Used# [2025-11-15 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 22:00:05 [end_date_ymd] => 2025-11-15 01:00:05 [RateCDR] => 1 ) [2025-11-15 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-14 22:00:05' and `end` < '2025-11-15 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 01:00:19] Production.INFO: count ==1282 [2025-11-15 01:00:19] Production.ERROR: pbx CDR StartTime 2025-11-14 22:00:05 - End Time 2025-11-15 01:00:05 [2025-11-15 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16203314', 'tblTempUsageDetail_20' ) start [2025-11-15 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16203314', 'tblTempUsageDetail_20' ) end [2025-11-15 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16203314', 'tblTempVendorCDR_20' ) start [2025-11-15 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16203314', 'tblTempVendorCDR_20' ) end [2025-11-15 01:00:19] Production.INFO: ProcessCDR(1,16203314,1,1,2) [2025-11-15 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16203314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 01:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16203314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 01:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16203314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 01:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16203314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 01:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16203314', 'tblTempUsageDetail_20' ) start [2025-11-15 01:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16203314', 'tblTempUsageDetail_20' ) end [2025-11-15 01:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-15 01:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-15 01:00:30] Production.INFO: ==13938== Releasing lock... [2025-11-15 01:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 01:00:30] Production.INFO: 37.75 MB #Memory Used# [2025-11-15 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 23:00:06 [end_date_ymd] => 2025-11-15 02:00:06 [RateCDR] => 1 ) [2025-11-15 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-14 23:00:06' and `end` < '2025-11-15 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 02:00:18] Production.INFO: count ==1139 [2025-11-15 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-14 23:00:06 - End Time 2025-11-15 02:00:06 [2025-11-15 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16203562', 'tblTempUsageDetail_20' ) start [2025-11-15 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16203562', 'tblTempUsageDetail_20' ) end [2025-11-15 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16203562', 'tblTempVendorCDR_20' ) start [2025-11-15 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16203562', 'tblTempVendorCDR_20' ) end [2025-11-15 02:00:19] Production.INFO: ProcessCDR(1,16203562,1,1,2) [2025-11-15 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16203562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 02:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16203562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 02:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16203562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 02:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16203562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 02:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16203562', 'tblTempUsageDetail_20' ) start [2025-11-15 02:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16203562', 'tblTempUsageDetail_20' ) end [2025-11-15 02:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-15 02:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-15 02:00:29] Production.INFO: ==18652== Releasing lock... [2025-11-15 02:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 02:00:29] Production.INFO: 37 MB #Memory Used# [2025-11-15 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 00:00:06 [end_date_ymd] => 2025-11-15 03:00:06 [RateCDR] => 1 ) [2025-11-15 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 00:00:06' and `end` < '2025-11-15 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 03:00:18] Production.INFO: count ==1101 [2025-11-15 03:00:18] Production.ERROR: pbx CDR StartTime 2025-11-15 00:00:06 - End Time 2025-11-15 03:00:06 [2025-11-15 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16203809', 'tblTempUsageDetail_20' ) start [2025-11-15 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16203809', 'tblTempUsageDetail_20' ) end [2025-11-15 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16203809', 'tblTempVendorCDR_20' ) start [2025-11-15 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16203809', 'tblTempVendorCDR_20' ) end [2025-11-15 03:00:19] Production.INFO: ProcessCDR(1,16203809,1,1,2) [2025-11-15 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16203809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 03:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16203809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 03:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16203809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 03:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16203809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16203809', 'tblTempUsageDetail_20' ) start [2025-11-15 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16203809', 'tblTempUsageDetail_20' ) end [2025-11-15 03:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-15 03:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-15 03:00:29] Production.INFO: ==23359== Releasing lock... [2025-11-15 03:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 03:00:29] Production.INFO: 36 MB #Memory Used# [2025-11-15 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 01:00:07 [end_date_ymd] => 2025-11-15 04:00:07 [RateCDR] => 1 ) [2025-11-15 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 01:00:07' and `end` < '2025-11-15 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 04:00:20] Production.INFO: count ==698 [2025-11-15 04:00:20] Production.ERROR: pbx CDR StartTime 2025-11-15 01:00:07 - End Time 2025-11-15 04:00:07 [2025-11-15 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16204057', 'tblTempUsageDetail_20' ) start [2025-11-15 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16204057', 'tblTempUsageDetail_20' ) end [2025-11-15 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16204057', 'tblTempVendorCDR_20' ) start [2025-11-15 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16204057', 'tblTempVendorCDR_20' ) end [2025-11-15 04:00:20] Production.INFO: ProcessCDR(1,16204057,1,1,2) [2025-11-15 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16204057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 04:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16204057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 04:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16204057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 04:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16204057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 04:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16204057', 'tblTempUsageDetail_20' ) start [2025-11-15 04:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16204057', 'tblTempUsageDetail_20' ) end [2025-11-15 04:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-15 04:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-15 04:00:30] Production.INFO: ==27812== Releasing lock... [2025-11-15 04:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 04:00:30] Production.INFO: 33.75 MB #Memory Used# [2025-11-15 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 02:00:06 [end_date_ymd] => 2025-11-15 05:00:06 [RateCDR] => 1 ) [2025-11-15 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 02:00:06' and `end` < '2025-11-15 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 05:00:19] Production.INFO: count ==661 [2025-11-15 05:00:19] Production.ERROR: pbx CDR StartTime 2025-11-15 02:00:06 - End Time 2025-11-15 05:00:06 [2025-11-15 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16204305', 'tblTempUsageDetail_20' ) start [2025-11-15 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16204305', 'tblTempUsageDetail_20' ) end [2025-11-15 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16204305', 'tblTempVendorCDR_20' ) start [2025-11-15 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16204305', 'tblTempVendorCDR_20' ) end [2025-11-15 05:00:19] Production.INFO: ProcessCDR(1,16204305,1,1,2) [2025-11-15 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16204305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 05:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16204305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 05:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16204305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 05:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16204305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16204305', 'tblTempUsageDetail_20' ) start [2025-11-15 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16204305', 'tblTempUsageDetail_20' ) end [2025-11-15 05:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-15 05:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-15 05:00:29] Production.INFO: ==372== Releasing lock... [2025-11-15 05:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 05:00:29] Production.INFO: 34 MB #Memory Used# [2025-11-15 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 03:00:06 [end_date_ymd] => 2025-11-15 06:00:06 [RateCDR] => 1 ) [2025-11-15 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 03:00:06' and `end` < '2025-11-15 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 06:00:18] Production.INFO: count ==422 [2025-11-15 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-15 03:00:06 - End Time 2025-11-15 06:00:06 [2025-11-15 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16204551', 'tblTempUsageDetail_20' ) start [2025-11-15 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16204551', 'tblTempUsageDetail_20' ) end [2025-11-15 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16204551', 'tblTempVendorCDR_20' ) start [2025-11-15 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16204551', 'tblTempVendorCDR_20' ) end [2025-11-15 06:00:18] Production.INFO: ProcessCDR(1,16204551,1,1,2) [2025-11-15 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16204551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 06:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16204551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 06:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16204551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 06:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16204551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 06:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16204551', 'tblTempUsageDetail_20' ) start [2025-11-15 06:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16204551', 'tblTempUsageDetail_20' ) end [2025-11-15 06:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-15 06:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-15 06:00:28] Production.INFO: ==4784== Releasing lock... [2025-11-15 06:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 06:00:28] Production.INFO: 32 MB #Memory Used# [2025-11-15 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 04:00:06 [end_date_ymd] => 2025-11-15 07:00:06 [RateCDR] => 1 ) [2025-11-15 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 04:00:06' and `end` < '2025-11-15 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 07:00:18] Production.INFO: count ==256 [2025-11-15 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-15 04:00:06 - End Time 2025-11-15 07:00:06 [2025-11-15 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16204799', 'tblTempUsageDetail_20' ) start [2025-11-15 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16204799', 'tblTempUsageDetail_20' ) end [2025-11-15 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16204799', 'tblTempVendorCDR_20' ) start [2025-11-15 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16204799', 'tblTempVendorCDR_20' ) end [2025-11-15 07:00:18] Production.INFO: ProcessCDR(1,16204799,1,1,2) [2025-11-15 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16204799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 07:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16204799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 07:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16204799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 07:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16204799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16204799', 'tblTempUsageDetail_20' ) start [2025-11-15 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16204799', 'tblTempUsageDetail_20' ) end [2025-11-15 07:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-15 07:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-15 07:00:28] Production.INFO: ==9448== Releasing lock... [2025-11-15 07:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 07:00:28] Production.INFO: 30.75 MB #Memory Used# [2025-11-15 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 05:00:06 [end_date_ymd] => 2025-11-15 08:00:06 [RateCDR] => 1 ) [2025-11-15 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 05:00:06' and `end` < '2025-11-15 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 08:00:18] Production.INFO: count ==128 [2025-11-15 08:00:18] Production.ERROR: pbx CDR StartTime 2025-11-15 05:00:06 - End Time 2025-11-15 08:00:06 [2025-11-15 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16205046', 'tblTempUsageDetail_20' ) start [2025-11-15 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16205046', 'tblTempUsageDetail_20' ) end [2025-11-15 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16205046', 'tblTempVendorCDR_20' ) start [2025-11-15 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16205046', 'tblTempVendorCDR_20' ) end [2025-11-15 08:00:18] Production.INFO: ProcessCDR(1,16205046,1,1,2) [2025-11-15 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16205046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 08:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16205046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 08:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16205046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 08:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16205046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 08:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16205046', 'tblTempUsageDetail_20' ) start [2025-11-15 08:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16205046', 'tblTempUsageDetail_20' ) end [2025-11-15 08:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-15 08:00:27] Production.ERROR: pbx prc_insertCDR end [2025-11-15 08:00:27] Production.INFO: ==14106== Releasing lock... [2025-11-15 08:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 08:00:27] Production.INFO: 29.5 MB #Memory Used# [2025-11-15 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 06:00:06 [end_date_ymd] => 2025-11-15 09:00:06 [RateCDR] => 1 ) [2025-11-15 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 06:00:06' and `end` < '2025-11-15 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 09:00:19] Production.INFO: count ==434 [2025-11-15 09:00:19] Production.ERROR: pbx CDR StartTime 2025-11-15 06:00:06 - End Time 2025-11-15 09:00:06 [2025-11-15 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16205293', 'tblTempUsageDetail_20' ) start [2025-11-15 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16205293', 'tblTempUsageDetail_20' ) end [2025-11-15 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16205293', 'tblTempVendorCDR_20' ) start [2025-11-15 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16205293', 'tblTempVendorCDR_20' ) end [2025-11-15 09:00:19] Production.INFO: ProcessCDR(1,16205293,1,1,2) [2025-11-15 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16205293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16205293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16205293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 09:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16205293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16205293', 'tblTempUsageDetail_20' ) start [2025-11-15 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16205293', 'tblTempUsageDetail_20' ) end [2025-11-15 09:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-15 09:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-15 09:00:29] Production.INFO: ==18751== Releasing lock... [2025-11-15 09:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 09:00:29] Production.INFO: 31.5 MB #Memory Used# [2025-11-15 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 07:00:07 [end_date_ymd] => 2025-11-15 10:00:07 [RateCDR] => 1 ) [2025-11-15 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 07:00:07' and `end` < '2025-11-15 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 10:00:20] Production.INFO: count ==1037 [2025-11-15 10:00:20] Production.ERROR: pbx CDR StartTime 2025-11-15 07:00:07 - End Time 2025-11-15 10:00:07 [2025-11-15 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16205540', 'tblTempUsageDetail_20' ) start [2025-11-15 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16205540', 'tblTempUsageDetail_20' ) end [2025-11-15 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16205540', 'tblTempVendorCDR_20' ) start [2025-11-15 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16205540', 'tblTempVendorCDR_20' ) end [2025-11-15 10:00:20] Production.INFO: ProcessCDR(1,16205540,1,1,2) [2025-11-15 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16205540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 10:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16205540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 10:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16205540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 10:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16205540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 10:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16205540', 'tblTempUsageDetail_20' ) start [2025-11-15 10:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16205540', 'tblTempUsageDetail_20' ) end [2025-11-15 10:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-15 10:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-15 10:00:31] Production.INFO: ==22979== Releasing lock... [2025-11-15 10:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 10:00:31] Production.INFO: 36.25 MB #Memory Used# [2025-11-15 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 08:00:07 [end_date_ymd] => 2025-11-15 11:00:07 [RateCDR] => 1 ) [2025-11-15 11:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 08:00:07' and `end` < '2025-11-15 11:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 11:00:19] Production.INFO: count ==1662 [2025-11-15 11:00:20] Production.ERROR: pbx CDR StartTime 2025-11-15 08:00:07 - End Time 2025-11-15 11:00:07 [2025-11-15 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16205787', 'tblTempUsageDetail_20' ) start [2025-11-15 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16205787', 'tblTempUsageDetail_20' ) end [2025-11-15 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16205787', 'tblTempVendorCDR_20' ) start [2025-11-15 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16205787', 'tblTempVendorCDR_20' ) end [2025-11-15 11:00:20] Production.INFO: ProcessCDR(1,16205787,1,1,2) [2025-11-15 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16205787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16205787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16205787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 11:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16205787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 11:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16205787', 'tblTempUsageDetail_20' ) start [2025-11-15 11:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16205787', 'tblTempUsageDetail_20' ) end [2025-11-15 11:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-15 11:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-15 11:00:31] Production.INFO: ==27215== Releasing lock... [2025-11-15 11:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 11:00:31] Production.INFO: 40.75 MB #Memory Used# [2025-11-15 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 09:00:07 [end_date_ymd] => 2025-11-15 12:00:07 [RateCDR] => 1 ) [2025-11-15 12:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 09:00:07' and `end` < '2025-11-15 12:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 12:00:19] Production.INFO: count ==1978 [2025-11-15 12:00:20] Production.ERROR: pbx CDR StartTime 2025-11-15 09:00:07 - End Time 2025-11-15 12:00:07 [2025-11-15 12:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16206033', 'tblTempUsageDetail_20' ) start [2025-11-15 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16206033', 'tblTempUsageDetail_20' ) end [2025-11-15 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16206033', 'tblTempVendorCDR_20' ) start [2025-11-15 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16206033', 'tblTempVendorCDR_20' ) end [2025-11-15 12:00:20] Production.INFO: ProcessCDR(1,16206033,1,1,2) [2025-11-15 12:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16206033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16206033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16206033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 12:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16206033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 12:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16206033', 'tblTempUsageDetail_20' ) start [2025-11-15 12:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16206033', 'tblTempUsageDetail_20' ) end [2025-11-15 12:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-15 12:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-15 12:00:32] Production.INFO: ==31732== Releasing lock... [2025-11-15 12:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 12:00:32] Production.INFO: 43 MB #Memory Used# [2025-11-15 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 10:00:06 [end_date_ymd] => 2025-11-15 13:00:06 [RateCDR] => 1 ) [2025-11-15 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 10:00:06' and `end` < '2025-11-15 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 13:00:18] Production.INFO: count ==2067 [2025-11-15 13:00:19] Production.ERROR: pbx CDR StartTime 2025-11-15 10:00:06 - End Time 2025-11-15 13:00:06 [2025-11-15 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16206281', 'tblTempUsageDetail_20' ) start [2025-11-15 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16206281', 'tblTempUsageDetail_20' ) end [2025-11-15 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16206281', 'tblTempVendorCDR_20' ) start [2025-11-15 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16206281', 'tblTempVendorCDR_20' ) end [2025-11-15 13:00:19] Production.INFO: ProcessCDR(1,16206281,1,1,2) [2025-11-15 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16206281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16206281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16206281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 13:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16206281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16206281', 'tblTempUsageDetail_20' ) start [2025-11-15 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16206281', 'tblTempUsageDetail_20' ) end [2025-11-15 13:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-15 13:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-15 13:00:31] Production.INFO: ==3718== Releasing lock... [2025-11-15 13:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 13:00:31] Production.INFO: 43.75 MB #Memory Used# [2025-11-15 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 11:00:06 [end_date_ymd] => 2025-11-15 14:00:06 [RateCDR] => 1 ) [2025-11-15 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 11:00:06' and `end` < '2025-11-15 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 14:00:18] Production.INFO: count ==2013 [2025-11-15 14:00:19] Production.ERROR: pbx CDR StartTime 2025-11-15 11:00:06 - End Time 2025-11-15 14:00:06 [2025-11-15 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16206528', 'tblTempUsageDetail_20' ) start [2025-11-15 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16206528', 'tblTempUsageDetail_20' ) end [2025-11-15 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16206528', 'tblTempVendorCDR_20' ) start [2025-11-15 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16206528', 'tblTempVendorCDR_20' ) end [2025-11-15 14:00:19] Production.INFO: ProcessCDR(1,16206528,1,1,2) [2025-11-15 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16206528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16206528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16206528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 14:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16206528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 14:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16206528', 'tblTempUsageDetail_20' ) start [2025-11-15 14:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16206528', 'tblTempUsageDetail_20' ) end [2025-11-15 14:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-15 14:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-15 14:00:31] Production.INFO: ==8091== Releasing lock... [2025-11-15 14:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 14:00:31] Production.INFO: 43.25 MB #Memory Used# [2025-11-15 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 12:00:07 [end_date_ymd] => 2025-11-15 15:00:07 [RateCDR] => 1 ) [2025-11-15 15:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 12:00:07' and `end` < '2025-11-15 15:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 15:00:19] Production.INFO: count ==1944 [2025-11-15 15:00:20] Production.ERROR: pbx CDR StartTime 2025-11-15 12:00:07 - End Time 2025-11-15 15:00:07 [2025-11-15 15:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16206775', 'tblTempUsageDetail_20' ) start [2025-11-15 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16206775', 'tblTempUsageDetail_20' ) end [2025-11-15 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16206775', 'tblTempVendorCDR_20' ) start [2025-11-15 15:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16206775', 'tblTempVendorCDR_20' ) end [2025-11-15 15:00:20] Production.INFO: ProcessCDR(1,16206775,1,1,2) [2025-11-15 15:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16206775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16206775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16206775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 15:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16206775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 15:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16206775', 'tblTempUsageDetail_20' ) start [2025-11-15 15:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16206775', 'tblTempUsageDetail_20' ) end [2025-11-15 15:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-15 15:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-15 15:00:32] Production.INFO: ==13385== Releasing lock... [2025-11-15 15:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 15:00:32] Production.INFO: 42.75 MB #Memory Used# [2025-11-15 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 13:00:06 [end_date_ymd] => 2025-11-15 16:00:06 [RateCDR] => 1 ) [2025-11-15 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 13:00:06' and `end` < '2025-11-15 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 16:00:19] Production.INFO: count ==1707 [2025-11-15 16:00:19] Production.ERROR: pbx CDR StartTime 2025-11-15 13:00:06 - End Time 2025-11-15 16:00:06 [2025-11-15 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16207022', 'tblTempUsageDetail_20' ) start [2025-11-15 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16207022', 'tblTempUsageDetail_20' ) end [2025-11-15 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16207022', 'tblTempVendorCDR_20' ) start [2025-11-15 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16207022', 'tblTempVendorCDR_20' ) end [2025-11-15 16:00:20] Production.INFO: ProcessCDR(1,16207022,1,1,2) [2025-11-15 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16207022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16207022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16207022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 16:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16207022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 16:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16207022', 'tblTempUsageDetail_20' ) start [2025-11-15 16:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16207022', 'tblTempUsageDetail_20' ) end [2025-11-15 16:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-15 16:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-15 16:00:32] Production.INFO: ==18405== Releasing lock... [2025-11-15 16:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 16:00:32] Production.INFO: 41.25 MB #Memory Used# [2025-11-15 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 14:00:06 [end_date_ymd] => 2025-11-15 17:00:06 [RateCDR] => 1 ) [2025-11-15 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 14:00:06' and `end` < '2025-11-15 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 17:00:19] Production.INFO: count ==2181 [2025-11-15 17:00:20] Production.ERROR: pbx CDR StartTime 2025-11-15 14:00:06 - End Time 2025-11-15 17:00:06 [2025-11-15 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16207269', 'tblTempUsageDetail_20' ) start [2025-11-15 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16207269', 'tblTempUsageDetail_20' ) end [2025-11-15 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16207269', 'tblTempVendorCDR_20' ) start [2025-11-15 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16207269', 'tblTempVendorCDR_20' ) end [2025-11-15 17:00:20] Production.INFO: ProcessCDR(1,16207269,1,1,2) [2025-11-15 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16207269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16207269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16207269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 17:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16207269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16207269', 'tblTempUsageDetail_20' ) start [2025-11-15 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16207269', 'tblTempUsageDetail_20' ) end [2025-11-15 17:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-15 17:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-15 17:00:36] Production.INFO: ==22829== Releasing lock... [2025-11-15 17:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 17:00:36] Production.INFO: 44.5 MB #Memory Used# [2025-11-15 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 15:00:06 [end_date_ymd] => 2025-11-15 18:00:06 [RateCDR] => 1 ) [2025-11-15 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 15:00:06' and `end` < '2025-11-15 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 18:00:19] Production.INFO: count ==2580 [2025-11-15 18:00:20] Production.ERROR: pbx CDR StartTime 2025-11-15 15:00:06 - End Time 2025-11-15 18:00:06 [2025-11-15 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16207514', 'tblTempUsageDetail_20' ) start [2025-11-15 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16207514', 'tblTempUsageDetail_20' ) end [2025-11-15 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16207514', 'tblTempVendorCDR_20' ) start [2025-11-15 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16207514', 'tblTempVendorCDR_20' ) end [2025-11-15 18:00:20] Production.INFO: ProcessCDR(1,16207514,1,1,2) [2025-11-15 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16207514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16207514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16207514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 18:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16207514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 18:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16207514', 'tblTempUsageDetail_20' ) start [2025-11-15 18:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16207514', 'tblTempUsageDetail_20' ) end [2025-11-15 18:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-15 18:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-15 18:00:32] Production.INFO: ==27598== Releasing lock... [2025-11-15 18:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 18:00:32] Production.INFO: 47.75 MB #Memory Used# [2025-11-15 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 16:00:06 [end_date_ymd] => 2025-11-15 19:00:06 [RateCDR] => 1 ) [2025-11-15 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 16:00:06' and `end` < '2025-11-15 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 19:00:18] Production.INFO: count ==2968 [2025-11-15 19:00:20] Production.ERROR: pbx CDR StartTime 2025-11-15 16:00:06 - End Time 2025-11-15 19:00:06 [2025-11-15 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16207761', 'tblTempUsageDetail_20' ) start [2025-11-15 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16207761', 'tblTempUsageDetail_20' ) end [2025-11-15 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16207761', 'tblTempVendorCDR_20' ) start [2025-11-15 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16207761', 'tblTempVendorCDR_20' ) end [2025-11-15 19:00:20] Production.INFO: ProcessCDR(1,16207761,1,1,2) [2025-11-15 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16207761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 19:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16207761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 19:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16207761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 19:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16207761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16207761', 'tblTempUsageDetail_20' ) start [2025-11-15 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16207761', 'tblTempUsageDetail_20' ) end [2025-11-15 19:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-15 19:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-15 19:00:32] Production.INFO: ==32252== Releasing lock... [2025-11-15 19:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 19:00:32] Production.INFO: 51 MB #Memory Used# [2025-11-15 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 17:00:06 [end_date_ymd] => 2025-11-15 20:00:06 [RateCDR] => 1 ) [2025-11-15 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 17:00:06' and `end` < '2025-11-15 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 20:00:19] Production.INFO: count ==2671 [2025-11-15 20:00:20] Production.ERROR: pbx CDR StartTime 2025-11-15 17:00:06 - End Time 2025-11-15 20:00:06 [2025-11-15 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16208007', 'tblTempUsageDetail_20' ) start [2025-11-15 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16208007', 'tblTempUsageDetail_20' ) end [2025-11-15 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16208007', 'tblTempVendorCDR_20' ) start [2025-11-15 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16208007', 'tblTempVendorCDR_20' ) end [2025-11-15 20:00:20] Production.INFO: ProcessCDR(1,16208007,1,1,2) [2025-11-15 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16208007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 20:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16208007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 20:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16208007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 20:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16208007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16208007', 'tblTempUsageDetail_20' ) start [2025-11-15 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16208007', 'tblTempUsageDetail_20' ) end [2025-11-15 20:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-15 20:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-15 20:00:31] Production.INFO: ==4183== Releasing lock... [2025-11-15 20:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 20:00:31] Production.INFO: 48 MB #Memory Used# [2025-11-15 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 18:00:07 [end_date_ymd] => 2025-11-15 21:00:07 [RateCDR] => 1 ) [2025-11-15 21:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 18:00:07' and `end` < '2025-11-15 21:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 21:00:21] Production.INFO: count ==2361 [2025-11-15 21:00:22] Production.ERROR: pbx CDR StartTime 2025-11-15 18:00:07 - End Time 2025-11-15 21:00:07 [2025-11-15 21:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16208255', 'tblTempUsageDetail_20' ) start [2025-11-15 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16208255', 'tblTempUsageDetail_20' ) end [2025-11-15 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16208255', 'tblTempVendorCDR_20' ) start [2025-11-15 21:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16208255', 'tblTempVendorCDR_20' ) end [2025-11-15 21:00:22] Production.INFO: ProcessCDR(1,16208255,1,1,2) [2025-11-15 21:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16208255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 21:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16208255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 21:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16208255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 21:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16208255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 21:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16208255', 'tblTempUsageDetail_20' ) start [2025-11-15 21:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16208255', 'tblTempUsageDetail_20' ) end [2025-11-15 21:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-15 21:00:33] Production.ERROR: pbx prc_insertCDR end [2025-11-15 21:00:33] Production.INFO: ==8527== Releasing lock... [2025-11-15 21:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 21:00:33] Production.INFO: 46 MB #Memory Used# [2025-11-15 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 19:00:06 [end_date_ymd] => 2025-11-15 22:00:06 [RateCDR] => 1 ) [2025-11-15 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 19:00:06' and `end` < '2025-11-15 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 22:00:19] Production.INFO: count ==2241 [2025-11-15 22:00:20] Production.ERROR: pbx CDR StartTime 2025-11-15 19:00:06 - End Time 2025-11-15 22:00:06 [2025-11-15 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16208502', 'tblTempUsageDetail_20' ) start [2025-11-15 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16208502', 'tblTempUsageDetail_20' ) end [2025-11-15 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16208502', 'tblTempVendorCDR_20' ) start [2025-11-15 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16208502', 'tblTempVendorCDR_20' ) end [2025-11-15 22:00:20] Production.INFO: ProcessCDR(1,16208502,1,1,2) [2025-11-15 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16208502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 22:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16208502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 22:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16208502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 22:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16208502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 22:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16208502', 'tblTempUsageDetail_20' ) start [2025-11-15 22:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16208502', 'tblTempUsageDetail_20' ) end [2025-11-15 22:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-15 22:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-15 22:00:32] Production.INFO: ==13673== Releasing lock... [2025-11-15 22:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 22:00:32] Production.INFO: 45 MB #Memory Used# [2025-11-15 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 20:00:06 [end_date_ymd] => 2025-11-15 23:00:06 [RateCDR] => 1 ) [2025-11-15 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-15 20:00:06' and `end` < '2025-11-15 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-15 23:00:18] Production.INFO: count ==1895 [2025-11-15 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-15 20:00:06 - End Time 2025-11-15 23:00:06 [2025-11-15 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-15 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16208749', 'tblTempUsageDetail_20' ) start [2025-11-15 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16208749', 'tblTempUsageDetail_20' ) end [2025-11-15 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16208749', 'tblTempVendorCDR_20' ) start [2025-11-15 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16208749', 'tblTempVendorCDR_20' ) end [2025-11-15 23:00:19] Production.INFO: ProcessCDR(1,16208749,1,1,2) [2025-11-15 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16208749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 23:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16208749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-15 23:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16208749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 23:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16208749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-15 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16208749', 'tblTempUsageDetail_20' ) start [2025-11-15 23:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16208749', 'tblTempUsageDetail_20' ) end [2025-11-15 23:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-15 23:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-15 23:00:31] Production.INFO: ==18065== Releasing lock... [2025-11-15 23:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-15 23:00:31] Production.INFO: 42.25 MB #Memory Used#