[2025-11-19 00:00:06] Production.INFO: next invoice date [2025-11-19 00:00:06] Production.INFO: 2025-12-19 [2025-11-19 00:00:06] Production.INFO: getdaysdiff [2025-11-19 00:00:06] Production.INFO: +30 [2025-11-19 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (108,15,1,30,30,'RMScheduler',2025-11-19 00:00:06,1,0,,,0) [2025-11-19 00:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 21:00:08 [end_date_ymd] => 2025-11-19 00:00:08 [RateCDR] => 1 ) [2025-11-19 00:00:08] 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-18 21:00:08' and `end` < '2025-11-19 00:00:08' 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-19 00:00:20] Production.INFO: count ==1482 [2025-11-19 00:00:22] Production.ERROR: pbx CDR StartTime 2025-11-18 21:00:08 - End Time 2025-11-19 00:00:08 [2025-11-19 00:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16226779', 'tblTempUsageDetail_20' ) start [2025-11-19 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16226779', 'tblTempUsageDetail_20' ) end [2025-11-19 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16226779', 'tblTempVendorCDR_20' ) start [2025-11-19 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16226779', 'tblTempVendorCDR_20' ) end [2025-11-19 00:00:23] Production.INFO: ProcessCDR(1,16226779,1,1,2) [2025-11-19 00:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16226779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 00:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16226779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 00:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16226779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 00:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16226779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16226779', 'tblTempUsageDetail_20' ) start [2025-11-19 00:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16226779', 'tblTempUsageDetail_20' ) end [2025-11-19 00:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-19 00:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-19 00:00:38] Production.INFO: ==9011== Releasing lock... [2025-11-19 00:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 00:00:38] Production.INFO: 41 MB #Memory Used# [2025-11-19 01:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 22:00:07 [end_date_ymd] => 2025-11-19 01:00:07 [RateCDR] => 1 ) [2025-11-19 01:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-18 22:00:07' and `end` < '2025-11-19 01:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-19 01:00:20] Production.INFO: count ==1659 [2025-11-19 01:00:21] Production.ERROR: pbx CDR StartTime 2025-11-18 22:00:07 - End Time 2025-11-19 01:00:07 [2025-11-19 01:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16227027', 'tblTempUsageDetail_20' ) start [2025-11-19 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16227027', 'tblTempUsageDetail_20' ) end [2025-11-19 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16227027', 'tblTempVendorCDR_20' ) start [2025-11-19 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16227027', 'tblTempVendorCDR_20' ) end [2025-11-19 01:00:21] Production.INFO: ProcessCDR(1,16227027,1,1,2) [2025-11-19 01:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16227027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 01:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16227027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 01:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16227027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 01:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16227027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 01:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16227027', 'tblTempUsageDetail_20' ) start [2025-11-19 01:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16227027', 'tblTempUsageDetail_20' ) end [2025-11-19 01:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-19 01:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-19 01:00:32] Production.INFO: ==13460== Releasing lock... [2025-11-19 01:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 01:00:32] Production.INFO: 40.5 MB #Memory Used# [2025-11-19 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-18 23:00:06 [end_date_ymd] => 2025-11-19 02:00:06 [RateCDR] => 1 ) [2025-11-19 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-18 23:00:06' and `end` < '2025-11-19 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-19 02:00:18] Production.INFO: count ==2458 [2025-11-19 02:00:20] Production.ERROR: pbx CDR StartTime 2025-11-18 23:00:06 - End Time 2025-11-19 02:00:06 [2025-11-19 02:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16227273', 'tblTempUsageDetail_20' ) start [2025-11-19 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16227273', 'tblTempUsageDetail_20' ) end [2025-11-19 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16227273', 'tblTempVendorCDR_20' ) start [2025-11-19 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16227273', 'tblTempVendorCDR_20' ) end [2025-11-19 02:00:20] Production.INFO: ProcessCDR(1,16227273,1,1,2) [2025-11-19 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16227273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 02:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16227273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 02:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16227273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 02:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16227273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 02:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16227273', 'tblTempUsageDetail_20' ) start [2025-11-19 02:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16227273', 'tblTempUsageDetail_20' ) end [2025-11-19 02:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-19 02:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-19 02:00:31] Production.INFO: ==18683== Releasing lock... [2025-11-19 02:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 02:00:31] Production.INFO: 47 MB #Memory Used# [2025-11-19 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 00:00:06 [end_date_ymd] => 2025-11-19 03:00:06 [RateCDR] => 1 ) [2025-11-19 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-19 00:00:06' and `end` < '2025-11-19 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-19 03:00:19] Production.INFO: count ==2125 [2025-11-19 03:00:20] Production.ERROR: pbx CDR StartTime 2025-11-19 00:00:06 - End Time 2025-11-19 03:00:06 [2025-11-19 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16227521', 'tblTempUsageDetail_20' ) start [2025-11-19 03:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16227521', 'tblTempUsageDetail_20' ) end [2025-11-19 03:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16227521', 'tblTempVendorCDR_20' ) start [2025-11-19 03:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16227521', 'tblTempVendorCDR_20' ) end [2025-11-19 03:00:21] Production.INFO: ProcessCDR(1,16227521,1,1,2) [2025-11-19 03:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16227521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 03:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16227521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 03:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16227521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 03:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16227521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 03:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16227521', 'tblTempUsageDetail_20' ) start [2025-11-19 03:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16227521', 'tblTempUsageDetail_20' ) end [2025-11-19 03:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-19 03:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-19 03:00:30] Production.INFO: ==23170== Releasing lock... [2025-11-19 03:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 03:00:30] Production.INFO: 44.5 MB #Memory Used# [2025-11-19 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 01:00:07 [end_date_ymd] => 2025-11-19 04:00:07 [RateCDR] => 1 ) [2025-11-19 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-19 01:00:07' and `end` < '2025-11-19 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-19 04:00:19] Production.INFO: count ==651 [2025-11-19 04:00:20] Production.ERROR: pbx CDR StartTime 2025-11-19 01:00:07 - End Time 2025-11-19 04:00:07 [2025-11-19 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16227769', 'tblTempUsageDetail_20' ) start [2025-11-19 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16227769', 'tblTempUsageDetail_20' ) end [2025-11-19 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16227769', 'tblTempVendorCDR_20' ) start [2025-11-19 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16227769', 'tblTempVendorCDR_20' ) end [2025-11-19 04:00:20] Production.INFO: ProcessCDR(1,16227769,1,1,2) [2025-11-19 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16227769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 04:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16227769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 04:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16227769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 04:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16227769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 04:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16227769', 'tblTempUsageDetail_20' ) start [2025-11-19 04:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16227769', 'tblTempUsageDetail_20' ) end [2025-11-19 04:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-19 04:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-19 04:00:30] Production.INFO: ==30446== Releasing lock... [2025-11-19 04:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 04:00:30] Production.INFO: 33.25 MB #Memory Used# [2025-11-19 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 02:00:06 [end_date_ymd] => 2025-11-19 05:00:06 [RateCDR] => 1 ) [2025-11-19 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-19 02:00:06' and `end` < '2025-11-19 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-19 05:00:19] Production.INFO: count ==158 [2025-11-19 05:00:19] Production.ERROR: pbx CDR StartTime 2025-11-19 02:00:06 - End Time 2025-11-19 05:00:06 [2025-11-19 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16228017', 'tblTempUsageDetail_20' ) start [2025-11-19 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16228017', 'tblTempUsageDetail_20' ) end [2025-11-19 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16228017', 'tblTempVendorCDR_20' ) start [2025-11-19 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16228017', 'tblTempVendorCDR_20' ) end [2025-11-19 05:00:19] Production.INFO: ProcessCDR(1,16228017,1,1,2) [2025-11-19 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16228017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 05:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16228017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 05:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16228017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 05:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16228017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16228017', 'tblTempUsageDetail_20' ) start [2025-11-19 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16228017', 'tblTempUsageDetail_20' ) end [2025-11-19 05:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-19 05:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-19 05:00:29] Production.INFO: ==4967== Releasing lock... [2025-11-19 05:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 05:00:29] Production.INFO: 29.5 MB #Memory Used# [2025-11-19 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 03:00:06 [end_date_ymd] => 2025-11-19 06:00:06 [RateCDR] => 1 ) [2025-11-19 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-19 03:00:06' and `end` < '2025-11-19 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-19 06:00:19] Production.INFO: count ==105 [2025-11-19 06:00:19] Production.ERROR: pbx CDR StartTime 2025-11-19 03:00:06 - End Time 2025-11-19 06:00:06 [2025-11-19 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16228264', 'tblTempUsageDetail_20' ) start [2025-11-19 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16228264', 'tblTempUsageDetail_20' ) end [2025-11-19 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16228264', 'tblTempVendorCDR_20' ) start [2025-11-19 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16228264', 'tblTempVendorCDR_20' ) end [2025-11-19 06:00:19] Production.INFO: ProcessCDR(1,16228264,1,1,2) [2025-11-19 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16228264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 06:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16228264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 06:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16228264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 06:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16228264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16228264', 'tblTempUsageDetail_20' ) start [2025-11-19 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16228264', 'tblTempUsageDetail_20' ) end [2025-11-19 06:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-19 06:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-19 06:00:28] Production.INFO: ==12082== Releasing lock... [2025-11-19 06:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 06:00:28] Production.INFO: 28.5 MB #Memory Used# [2025-11-19 07:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 04:00:07 [end_date_ymd] => 2025-11-19 07:00:07 [RateCDR] => 1 ) [2025-11-19 07: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-19 04:00:07' and `end` < '2025-11-19 07: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-19 07:00:19] Production.INFO: count ==91 [2025-11-19 07:00:19] Production.ERROR: pbx CDR StartTime 2025-11-19 04:00:07 - End Time 2025-11-19 07:00:07 [2025-11-19 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16228511', 'tblTempUsageDetail_20' ) start [2025-11-19 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16228511', 'tblTempUsageDetail_20' ) end [2025-11-19 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16228511', 'tblTempVendorCDR_20' ) start [2025-11-19 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16228511', 'tblTempVendorCDR_20' ) end [2025-11-19 07:00:19] Production.INFO: ProcessCDR(1,16228511,1,1,2) [2025-11-19 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16228511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 07:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16228511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 07:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16228511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 07:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16228511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 07:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16228511', 'tblTempUsageDetail_20' ) start [2025-11-19 07:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16228511', 'tblTempUsageDetail_20' ) end [2025-11-19 07:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-19 07:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-19 07:00:29] Production.INFO: ==17972== Releasing lock... [2025-11-19 07:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 07:00:29] Production.INFO: 28.5 MB #Memory Used# [2025-11-19 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 05:00:06 [end_date_ymd] => 2025-11-19 08:00:06 [RateCDR] => 1 ) [2025-11-19 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-19 05:00:06' and `end` < '2025-11-19 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-19 08:00:18] Production.INFO: count ==145 [2025-11-19 08:00:18] Production.ERROR: pbx CDR StartTime 2025-11-19 05:00:06 - End Time 2025-11-19 08:00:06 [2025-11-19 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16228758', 'tblTempUsageDetail_20' ) start [2025-11-19 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16228758', 'tblTempUsageDetail_20' ) end [2025-11-19 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16228758', 'tblTempVendorCDR_20' ) start [2025-11-19 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16228758', 'tblTempVendorCDR_20' ) end [2025-11-19 08:00:18] Production.INFO: ProcessCDR(1,16228758,1,1,2) [2025-11-19 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16228758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16228758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16228758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16228758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16228758', 'tblTempUsageDetail_20' ) start [2025-11-19 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16228758', 'tblTempUsageDetail_20' ) end [2025-11-19 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-19 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-19 08:00:28] Production.INFO: ==22613== Releasing lock... [2025-11-19 08:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 08:00:28] Production.INFO: 29.25 MB #Memory Used# [2025-11-19 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 06:00:05 [end_date_ymd] => 2025-11-19 09:00:05 [RateCDR] => 1 ) [2025-11-19 09: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-19 06:00:05' and `end` < '2025-11-19 09: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-19 09:00:18] Production.INFO: count ==657 [2025-11-19 09:00:18] Production.ERROR: pbx CDR StartTime 2025-11-19 06:00:05 - End Time 2025-11-19 09:00:05 [2025-11-19 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16229005', 'tblTempUsageDetail_20' ) start [2025-11-19 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16229005', 'tblTempUsageDetail_20' ) end [2025-11-19 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16229005', 'tblTempVendorCDR_20' ) start [2025-11-19 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16229005', 'tblTempVendorCDR_20' ) end [2025-11-19 09:00:18] Production.INFO: ProcessCDR(1,16229005,1,1,2) [2025-11-19 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16229005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16229005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16229005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 09:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16229005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16229005', 'tblTempUsageDetail_20' ) start [2025-11-19 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16229005', 'tblTempUsageDetail_20' ) end [2025-11-19 09:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-19 09:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-19 09:00:29] Production.INFO: ==27312== Releasing lock... [2025-11-19 09:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 09:00:29] Production.INFO: 33 MB #Memory Used# [2025-11-19 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 07:00:06 [end_date_ymd] => 2025-11-19 10:00:06 [RateCDR] => 1 ) [2025-11-19 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-19 07:00:06' and `end` < '2025-11-19 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-19 10:00:22] Production.INFO: count ==2332 [2025-11-19 10:00:23] Production.ERROR: pbx CDR StartTime 2025-11-19 07:00:06 - End Time 2025-11-19 10:00:06 [2025-11-19 10:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16229252', 'tblTempUsageDetail_20' ) start [2025-11-19 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16229252', 'tblTempUsageDetail_20' ) end [2025-11-19 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16229252', 'tblTempVendorCDR_20' ) start [2025-11-19 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16229252', 'tblTempVendorCDR_20' ) end [2025-11-19 10:00:23] Production.INFO: ProcessCDR(1,16229252,1,1,2) [2025-11-19 10:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16229252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 10:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16229252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 10:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16229252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 10:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16229252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 10:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16229252', 'tblTempUsageDetail_20' ) start [2025-11-19 10:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16229252', 'tblTempUsageDetail_20' ) end [2025-11-19 10:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-19 10:00:35] Production.ERROR: pbx prc_insertCDR end [2025-11-19 10:00:35] Production.INFO: ==32641== Releasing lock... [2025-11-19 10:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 10:00:35] Production.INFO: 46.25 MB #Memory Used# [2025-11-19 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 08:00:05 [end_date_ymd] => 2025-11-19 11:00:05 [RateCDR] => 1 ) [2025-11-19 11: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-19 08:00:05' and `end` < '2025-11-19 11: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-19 11:00:19] Production.INFO: count ==3971 [2025-11-19 11:00:21] Production.ERROR: pbx CDR StartTime 2025-11-19 08:00:05 - End Time 2025-11-19 11:00:05 [2025-11-19 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16229499', 'tblTempUsageDetail_20' ) start [2025-11-19 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16229499', 'tblTempUsageDetail_20' ) end [2025-11-19 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16229499', 'tblTempVendorCDR_20' ) start [2025-11-19 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16229499', 'tblTempVendorCDR_20' ) end [2025-11-19 11:00:21] Production.INFO: ProcessCDR(1,16229499,1,1,2) [2025-11-19 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16229499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 11:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16229499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 11:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16229499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 11:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16229499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 11:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16229499', 'tblTempUsageDetail_20' ) start [2025-11-19 11:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16229499', 'tblTempUsageDetail_20' ) end [2025-11-19 11:00:33] Production.ERROR: pbx prc_insertCDR start [2025-11-19 11:00:34] Production.ERROR: pbx prc_insertCDR end [2025-11-19 11:00:34] Production.INFO: ==4731== Releasing lock... [2025-11-19 11:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 11:00:34] Production.INFO: 58.25 MB #Memory Used# [2025-11-19 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 09:00:06 [end_date_ymd] => 2025-11-19 12:00:06 [RateCDR] => 1 ) [2025-11-19 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-19 09:00:06' and `end` < '2025-11-19 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-19 12:00:22] Production.INFO: count ==5248 [2025-11-19 12:00:24] Production.ERROR: pbx CDR StartTime 2025-11-19 09:00:06 - End Time 2025-11-19 12:00:06 [2025-11-19 12:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16229746', 'tblTempUsageDetail_20' ) start [2025-11-19 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16229746', 'tblTempUsageDetail_20' ) end [2025-11-19 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16229746', 'tblTempVendorCDR_20' ) start [2025-11-19 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16229746', 'tblTempVendorCDR_20' ) end [2025-11-19 12:00:25] Production.INFO: ProcessCDR(1,16229746,1,1,2) [2025-11-19 12:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16229746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 12:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16229746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 12:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16229746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 12:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16229746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16229746', 'tblTempUsageDetail_20' ) start [2025-11-19 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16229746', 'tblTempUsageDetail_20' ) end [2025-11-19 12:00:37] Production.ERROR: pbx prc_insertCDR start [2025-11-19 12:00:40] Production.ERROR: pbx prc_insertCDR end [2025-11-19 12:00:40] Production.INFO: ==9336== Releasing lock... [2025-11-19 12:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 12:00:40] Production.INFO: 67.5 MB #Memory Used# [2025-11-19 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 10:00:06 [end_date_ymd] => 2025-11-19 13:00:06 [RateCDR] => 1 ) [2025-11-19 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-19 10:00:06' and `end` < '2025-11-19 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-19 13:00:19] Production.INFO: count ==5370 [2025-11-19 13:00:22] Production.ERROR: pbx CDR StartTime 2025-11-19 10:00:06 - End Time 2025-11-19 13:00:06 [2025-11-19 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16229992', 'tblTempUsageDetail_20' ) start [2025-11-19 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16229992', 'tblTempUsageDetail_20' ) end [2025-11-19 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16229992', 'tblTempVendorCDR_20' ) start [2025-11-19 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16229992', 'tblTempVendorCDR_20' ) end [2025-11-19 13:00:22] Production.INFO: ProcessCDR(1,16229992,1,1,2) [2025-11-19 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16229992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 13:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16229992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 13:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16229992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 13:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16229992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 13:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16229992', 'tblTempUsageDetail_20' ) start [2025-11-19 13:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16229992', 'tblTempUsageDetail_20' ) end [2025-11-19 13:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-19 13:00:38] Production.ERROR: pbx prc_insertCDR end [2025-11-19 13:00:38] Production.INFO: ==13942== Releasing lock... [2025-11-19 13:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 13:00:38] Production.INFO: 68.5 MB #Memory Used# [2025-11-19 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 11:00:07 [end_date_ymd] => 2025-11-19 14:00:07 [RateCDR] => 1 ) [2025-11-19 14:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-19 11:00:07' and `end` < '2025-11-19 14:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-19 14:00:22] Production.INFO: count ==5809 [2025-11-19 14:00:25] Production.ERROR: pbx CDR StartTime 2025-11-19 11:00:07 - End Time 2025-11-19 14:00:07 [2025-11-19 14:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16230240', 'tblTempUsageDetail_20' ) start [2025-11-19 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16230240', 'tblTempUsageDetail_20' ) end [2025-11-19 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16230240', 'tblTempVendorCDR_20' ) start [2025-11-19 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16230240', 'tblTempVendorCDR_20' ) end [2025-11-19 14:00:25] Production.INFO: ProcessCDR(1,16230240,1,1,2) [2025-11-19 14:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16230240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 14:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16230240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 14:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16230240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 14:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16230240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 14:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16230240', 'tblTempUsageDetail_20' ) start [2025-11-19 14:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16230240', 'tblTempUsageDetail_20' ) end [2025-11-19 14:00:37] Production.ERROR: pbx prc_insertCDR start [2025-11-19 14:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-19 14:00:39] Production.INFO: ==18281== Releasing lock... [2025-11-19 14:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 14:00:39] Production.INFO: 71.75 MB #Memory Used# [2025-11-19 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 12:00:06 [end_date_ymd] => 2025-11-19 15:00:06 [RateCDR] => 1 ) [2025-11-19 15: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-19 12:00:06' and `end` < '2025-11-19 15: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-19 15:00:20] Production.INFO: count ==6060 [2025-11-19 15:00:23] Production.ERROR: pbx CDR StartTime 2025-11-19 12:00:06 - End Time 2025-11-19 15:00:06 [2025-11-19 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16230487', 'tblTempUsageDetail_20' ) start [2025-11-19 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16230487', 'tblTempUsageDetail_20' ) end [2025-11-19 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16230487', 'tblTempVendorCDR_20' ) start [2025-11-19 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16230487', 'tblTempVendorCDR_20' ) end [2025-11-19 15:00:23] Production.INFO: ProcessCDR(1,16230487,1,1,2) [2025-11-19 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16230487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 15:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16230487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 15:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16230487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 15:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16230487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16230487', 'tblTempUsageDetail_20' ) start [2025-11-19 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16230487', 'tblTempUsageDetail_20' ) end [2025-11-19 15:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-19 15:00:38] Production.ERROR: pbx prc_insertCDR end [2025-11-19 15:00:38] Production.INFO: ==22927== Releasing lock... [2025-11-19 15:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 15:00:38] Production.INFO: 73.5 MB #Memory Used# [2025-11-19 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 13:00:06 [end_date_ymd] => 2025-11-19 16:00:06 [RateCDR] => 1 ) [2025-11-19 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-19 13:00:06' and `end` < '2025-11-19 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-19 16:00:20] Production.INFO: count ==6039 [2025-11-19 16:00:23] Production.ERROR: pbx CDR StartTime 2025-11-19 13:00:06 - End Time 2025-11-19 16:00:06 [2025-11-19 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16230734', 'tblTempUsageDetail_20' ) start [2025-11-19 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16230734', 'tblTempUsageDetail_20' ) end [2025-11-19 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16230734', 'tblTempVendorCDR_20' ) start [2025-11-19 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16230734', 'tblTempVendorCDR_20' ) end [2025-11-19 16:00:24] Production.INFO: ProcessCDR(1,16230734,1,1,2) [2025-11-19 16:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16230734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 16:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16230734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 16:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16230734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 16:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16230734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 16:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16230734', 'tblTempUsageDetail_20' ) start [2025-11-19 16:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16230734', 'tblTempUsageDetail_20' ) end [2025-11-19 16:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-19 16:00:38] Production.ERROR: pbx prc_insertCDR end [2025-11-19 16:00:38] Production.INFO: ==27755== Releasing lock... [2025-11-19 16:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 16:00:38] Production.INFO: 73.5 MB #Memory Used# [2025-11-19 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 14:00:06 [end_date_ymd] => 2025-11-19 17:00:06 [RateCDR] => 1 ) [2025-11-19 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-19 14:00:06' and `end` < '2025-11-19 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-19 17:00:20] Production.INFO: count ==5722 [2025-11-19 17:00:23] Production.ERROR: pbx CDR StartTime 2025-11-19 14:00:06 - End Time 2025-11-19 17:00:06 [2025-11-19 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16230981', 'tblTempUsageDetail_20' ) start [2025-11-19 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16230981', 'tblTempUsageDetail_20' ) end [2025-11-19 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16230981', 'tblTempVendorCDR_20' ) start [2025-11-19 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16230981', 'tblTempVendorCDR_20' ) end [2025-11-19 17:00:23] Production.INFO: ProcessCDR(1,16230981,1,1,2) [2025-11-19 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16230981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 17:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16230981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 17:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16230981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 17:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16230981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 17:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16230981', 'tblTempUsageDetail_20' ) start [2025-11-19 17:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16230981', 'tblTempUsageDetail_20' ) end [2025-11-19 17:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-19 17:00:38] Production.ERROR: pbx prc_insertCDR end [2025-11-19 17:00:38] Production.INFO: ==32369== Releasing lock... [2025-11-19 17:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 17:00:38] Production.INFO: 71 MB #Memory Used# [2025-11-19 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 15:00:06 [end_date_ymd] => 2025-11-19 18:00:06 [RateCDR] => 1 ) [2025-11-19 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-19 15:00:06' and `end` < '2025-11-19 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-19 18:00:19] Production.INFO: count ==5093 [2025-11-19 18:00:21] Production.ERROR: pbx CDR StartTime 2025-11-19 15:00:06 - End Time 2025-11-19 18:00:06 [2025-11-19 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16231226', 'tblTempUsageDetail_20' ) start [2025-11-19 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16231226', 'tblTempUsageDetail_20' ) end [2025-11-19 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16231226', 'tblTempVendorCDR_20' ) start [2025-11-19 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16231226', 'tblTempVendorCDR_20' ) end [2025-11-19 18:00:22] Production.INFO: ProcessCDR(1,16231226,1,1,2) [2025-11-19 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16231226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 18:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16231226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 18:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16231226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 18:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16231226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 18:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16231226', 'tblTempUsageDetail_20' ) start [2025-11-19 18:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16231226', 'tblTempUsageDetail_20' ) end [2025-11-19 18:00:33] Production.ERROR: pbx prc_insertCDR start [2025-11-19 18:00:34] Production.ERROR: pbx prc_insertCDR end [2025-11-19 18:00:34] Production.INFO: ==4961== Releasing lock... [2025-11-19 18:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 18:00:34] Production.INFO: 66.25 MB #Memory Used# [2025-11-19 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 16:00:06 [end_date_ymd] => 2025-11-19 19:00:06 [RateCDR] => 1 ) [2025-11-19 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-19 16:00:06' and `end` < '2025-11-19 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-19 19:00:19] Production.INFO: count ==4089 [2025-11-19 19:00:21] Production.ERROR: pbx CDR StartTime 2025-11-19 16:00:06 - End Time 2025-11-19 19:00:06 [2025-11-19 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16231473', 'tblTempUsageDetail_20' ) start [2025-11-19 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16231473', 'tblTempUsageDetail_20' ) end [2025-11-19 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16231473', 'tblTempVendorCDR_20' ) start [2025-11-19 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16231473', 'tblTempVendorCDR_20' ) end [2025-11-19 19:00:21] Production.INFO: ProcessCDR(1,16231473,1,1,2) [2025-11-19 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16231473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 19:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16231473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 19:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16231473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 19:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16231473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16231473', 'tblTempUsageDetail_20' ) start [2025-11-19 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16231473', 'tblTempUsageDetail_20' ) end [2025-11-19 19:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-19 19:00:33] Production.ERROR: pbx prc_insertCDR end [2025-11-19 19:00:33] Production.INFO: ==11703== Releasing lock... [2025-11-19 19:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 19:00:33] Production.INFO: 58.75 MB #Memory Used# [2025-11-19 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 17:00:06 [end_date_ymd] => 2025-11-19 20:00:06 [RateCDR] => 1 ) [2025-11-19 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-19 17:00:06' and `end` < '2025-11-19 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-19 20:00:18] Production.INFO: count ==2782 [2025-11-19 20:00:19] Production.ERROR: pbx CDR StartTime 2025-11-19 17:00:06 - End Time 2025-11-19 20:00:06 [2025-11-19 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16231720', 'tblTempUsageDetail_20' ) start [2025-11-19 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16231720', 'tblTempUsageDetail_20' ) end [2025-11-19 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16231720', 'tblTempVendorCDR_20' ) start [2025-11-19 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16231720', 'tblTempVendorCDR_20' ) end [2025-11-19 20:00:19] Production.INFO: ProcessCDR(1,16231720,1,1,2) [2025-11-19 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16231720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 20:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16231720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 20:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16231720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 20:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16231720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16231720', 'tblTempUsageDetail_20' ) start [2025-11-19 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16231720', 'tblTempUsageDetail_20' ) end [2025-11-19 20:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-19 20:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-19 20:00:31] Production.INFO: ==16984== Releasing lock... [2025-11-19 20:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 20:00:31] Production.INFO: 49.5 MB #Memory Used# [2025-11-19 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 18:00:06 [end_date_ymd] => 2025-11-19 21:00:06 [RateCDR] => 1 ) [2025-11-19 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-19 18:00:06' and `end` < '2025-11-19 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-19 21:00:19] Production.INFO: count ==2119 [2025-11-19 21:00:19] Production.ERROR: pbx CDR StartTime 2025-11-19 18:00:06 - End Time 2025-11-19 21:00:06 [2025-11-19 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16231967', 'tblTempUsageDetail_20' ) start [2025-11-19 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16231967', 'tblTempUsageDetail_20' ) end [2025-11-19 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16231967', 'tblTempVendorCDR_20' ) start [2025-11-19 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16231967', 'tblTempVendorCDR_20' ) end [2025-11-19 21:00:19] Production.INFO: ProcessCDR(1,16231967,1,1,2) [2025-11-19 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16231967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16231967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16231967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 21:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16231967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 21:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16231967', 'tblTempUsageDetail_20' ) start [2025-11-19 21:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16231967', 'tblTempUsageDetail_20' ) end [2025-11-19 21:03:32] Production.ERROR: pbx prc_insertCDR start [2025-11-19 21:03:32] Production.ERROR: pbx prc_insertCDR end [2025-11-19 21:03:32] Production.INFO: ==21558== Releasing lock... [2025-11-19 21:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 21:03:32] Production.INFO: 44 MB #Memory Used# [2025-11-19 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 19:00:06 [end_date_ymd] => 2025-11-19 22:00:06 [RateCDR] => 1 ) [2025-11-19 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-19 19:00:06' and `end` < '2025-11-19 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-19 22:00:19] Production.INFO: count ==1670 [2025-11-19 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-19 19:00:06 - End Time 2025-11-19 22:00:06 [2025-11-19 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16232214', 'tblTempUsageDetail_20' ) start [2025-11-19 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16232214', 'tblTempUsageDetail_20' ) end [2025-11-19 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16232214', 'tblTempVendorCDR_20' ) start [2025-11-19 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16232214', 'tblTempVendorCDR_20' ) end [2025-11-19 22:00:19] Production.INFO: ProcessCDR(1,16232214,1,1,2) [2025-11-19 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16232214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 22:02:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16232214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 22:02:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16232214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 22:05:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16232214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 22:05:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16232214', 'tblTempUsageDetail_20' ) start [2025-11-19 22:05:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16232214', 'tblTempUsageDetail_20' ) end [2025-11-19 22:05:53] Production.ERROR: pbx prc_insertCDR start [2025-11-19 22:05:53] Production.ERROR: pbx prc_insertCDR end [2025-11-19 22:05:53] Production.INFO: ==26297== Releasing lock... [2025-11-19 22:05:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 22:05:53] Production.INFO: 40.75 MB #Memory Used# [2025-11-19 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-19 20:00:06 [end_date_ymd] => 2025-11-19 23:00:06 [RateCDR] => 1 ) [2025-11-19 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-19 20:00:06' and `end` < '2025-11-19 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-19 23:00:18] Production.INFO: count ==1255 [2025-11-19 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-19 20:00:06 - End Time 2025-11-19 23:00:06 [2025-11-19 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-19 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16232461', 'tblTempUsageDetail_20' ) start [2025-11-19 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16232461', 'tblTempUsageDetail_20' ) end [2025-11-19 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16232461', 'tblTempVendorCDR_20' ) start [2025-11-19 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16232461', 'tblTempVendorCDR_20' ) end [2025-11-19 23:00:19] Production.INFO: ProcessCDR(1,16232461,1,1,2) [2025-11-19 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16232461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 23:02:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16232461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-19 23:02:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16232461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16232461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-19 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16232461', 'tblTempUsageDetail_20' ) start [2025-11-19 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16232461', 'tblTempUsageDetail_20' ) end [2025-11-19 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-11-19 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-11-19 23:06:22] Production.INFO: ==30977== Releasing lock... [2025-11-19 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-19 23:06:22] Production.INFO: 37.75 MB #Memory Used#