[2025-06-29 00:25:04] Production.INFO: next invoice date [2025-06-29 00:25:04] Production.INFO: 2025-07-29 [2025-06-29 00:25:04] Production.INFO: getdaysdiff [2025-06-29 00:25:04] Production.INFO: +30 [2025-06-29 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (1,11,1,30,30,'RMScheduler',2025-06-29 00:25:04,1,0,,,0) [2025-06-29 00:25:04] Production.INFO: next invoice date [2025-06-29 00:25:04] Production.INFO: 2025-07-29 [2025-06-29 00:25:04] Production.INFO: getdaysdiff [2025-06-29 00:25:04] Production.INFO: +30 [2025-06-29 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (1,13,2,30,30,'RMScheduler',2025-06-29 00:25:04,1,0,,,0) [2025-06-29 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 21:25:06 [end_date_ymd] => 2025-06-29 00:25:06 [RateCDR] => 1 ) [2025-06-29 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-28 21:25:06' and `end` < '2025-06-29 00:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 00:25:18] Production.INFO: count ==727 [2025-06-29 00:25:18] Production.ERROR: pbx CDR StartTime 2025-06-28 21:25:06 - End Time 2025-06-29 00:25:06 [2025-06-29 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15378995', 'tblTempUsageDetail_20' ) start [2025-06-29 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15378995', 'tblTempUsageDetail_20' ) end [2025-06-29 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15378995', 'tblTempVendorCDR_20' ) start [2025-06-29 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15378995', 'tblTempVendorCDR_20' ) end [2025-06-29 00:25:19] Production.INFO: ProcessCDR(1,15378995,1,1,2) [2025-06-29 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15378995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15378995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15378995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15378995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15378995', 'tblTempUsageDetail_20' ) start [2025-06-29 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15378995', 'tblTempUsageDetail_20' ) end [2025-06-29 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-29 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-29 00:25:26] Production.INFO: ==21188== Releasing lock... [2025-06-29 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 00:25:26] Production.INFO: 37.25 MB #Memory Used# [2025-06-29 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 22:25:04 [end_date_ymd] => 2025-06-29 01:25:04 [RateCDR] => 1 ) [2025-06-29 01:25:04] 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-06-28 22:25:04' and `end` < '2025-06-29 01:25:04' 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-06-29 01:25:16] Production.INFO: count ==679 [2025-06-29 01:25:17] Production.ERROR: pbx CDR StartTime 2025-06-28 22:25:04 - End Time 2025-06-29 01:25:04 [2025-06-29 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15379242', 'tblTempUsageDetail_20' ) start [2025-06-29 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15379242', 'tblTempUsageDetail_20' ) end [2025-06-29 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15379242', 'tblTempVendorCDR_20' ) start [2025-06-29 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15379242', 'tblTempVendorCDR_20' ) end [2025-06-29 01:25:17] Production.INFO: ProcessCDR(1,15379242,1,1,2) [2025-06-29 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15379242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15379242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15379242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15379242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15379242', 'tblTempUsageDetail_20' ) start [2025-06-29 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15379242', 'tblTempUsageDetail_20' ) end [2025-06-29 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-29 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-29 01:25:23] Production.INFO: ==25811== Releasing lock... [2025-06-29 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 01:25:23] Production.INFO: 33.5 MB #Memory Used# [2025-06-29 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-28 23:25:05 [end_date_ymd] => 2025-06-29 02:25:05 [RateCDR] => 1 ) [2025-06-29 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-28 23:25:05' and `end` < '2025-06-29 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 02:25:20] Production.INFO: count ==658 [2025-06-29 02:25:20] Production.ERROR: pbx CDR StartTime 2025-06-28 23:25:05 - End Time 2025-06-29 02:25:05 [2025-06-29 02:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15379489', 'tblTempUsageDetail_20' ) start [2025-06-29 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15379489', 'tblTempUsageDetail_20' ) end [2025-06-29 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15379489', 'tblTempVendorCDR_20' ) start [2025-06-29 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15379489', 'tblTempVendorCDR_20' ) end [2025-06-29 02:25:20] Production.INFO: ProcessCDR(1,15379489,1,1,2) [2025-06-29 02:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15379489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15379489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15379489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15379489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15379489', 'tblTempUsageDetail_20' ) start [2025-06-29 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15379489', 'tblTempUsageDetail_20' ) end [2025-06-29 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-29 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-29 02:25:26] Production.INFO: ==31152== Releasing lock... [2025-06-29 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 02:25:26] Production.INFO: 33.75 MB #Memory Used# [2025-06-29 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 00:25:05 [end_date_ymd] => 2025-06-29 03:25:05 [RateCDR] => 1 ) [2025-06-29 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 00:25:05' and `end` < '2025-06-29 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 03:25:18] Production.INFO: count ==567 [2025-06-29 03:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 00:25:05 - End Time 2025-06-29 03:25:05 [2025-06-29 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15379736', 'tblTempUsageDetail_20' ) start [2025-06-29 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15379736', 'tblTempUsageDetail_20' ) end [2025-06-29 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15379736', 'tblTempVendorCDR_20' ) start [2025-06-29 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15379736', 'tblTempVendorCDR_20' ) end [2025-06-29 03:25:18] Production.INFO: ProcessCDR(1,15379736,1,1,2) [2025-06-29 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15379736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15379736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15379736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15379736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15379736', 'tblTempUsageDetail_20' ) start [2025-06-29 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15379736', 'tblTempUsageDetail_20' ) end [2025-06-29 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-29 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-29 03:25:24] Production.INFO: ==3687== Releasing lock... [2025-06-29 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 03:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-06-29 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 01:25:05 [end_date_ymd] => 2025-06-29 04:25:05 [RateCDR] => 1 ) [2025-06-29 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 01:25:05' and `end` < '2025-06-29 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 04:25:17] Production.INFO: count ==462 [2025-06-29 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-29 01:25:05 - End Time 2025-06-29 04:25:05 [2025-06-29 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15379984', 'tblTempUsageDetail_20' ) start [2025-06-29 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15379984', 'tblTempUsageDetail_20' ) end [2025-06-29 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15379984', 'tblTempVendorCDR_20' ) start [2025-06-29 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15379984', 'tblTempVendorCDR_20' ) end [2025-06-29 04:25:17] Production.INFO: ProcessCDR(1,15379984,1,1,2) [2025-06-29 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15379984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15379984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15379984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15379984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15379984', 'tblTempUsageDetail_20' ) start [2025-06-29 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15379984', 'tblTempUsageDetail_20' ) end [2025-06-29 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-29 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-29 04:25:23] Production.INFO: ==8290== Releasing lock... [2025-06-29 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 04:25:23] Production.INFO: 32.5 MB #Memory Used# [2025-06-29 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 02:25:06 [end_date_ymd] => 2025-06-29 05:25:06 [RateCDR] => 1 ) [2025-06-29 05:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 02:25:06' and `end` < '2025-06-29 05:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 05:25:18] Production.INFO: count ==596 [2025-06-29 05:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 02:25:06 - End Time 2025-06-29 05:25:06 [2025-06-29 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15380232', 'tblTempUsageDetail_20' ) start [2025-06-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15380232', 'tblTempUsageDetail_20' ) end [2025-06-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15380232', 'tblTempVendorCDR_20' ) start [2025-06-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15380232', 'tblTempVendorCDR_20' ) end [2025-06-29 05:25:18] Production.INFO: ProcessCDR(1,15380232,1,1,2) [2025-06-29 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15380232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15380232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15380232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15380232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15380232', 'tblTempUsageDetail_20' ) start [2025-06-29 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15380232', 'tblTempUsageDetail_20' ) end [2025-06-29 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-29 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-29 05:25:25] Production.INFO: ==12787== Releasing lock... [2025-06-29 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 05:25:25] Production.INFO: 33.25 MB #Memory Used# [2025-06-29 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 03:25:05 [end_date_ymd] => 2025-06-29 06:25:05 [RateCDR] => 1 ) [2025-06-29 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 03:25:05' and `end` < '2025-06-29 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 06:25:18] Production.INFO: count ==498 [2025-06-29 06:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 03:25:05 - End Time 2025-06-29 06:25:05 [2025-06-29 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15380479', 'tblTempUsageDetail_20' ) start [2025-06-29 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15380479', 'tblTempUsageDetail_20' ) end [2025-06-29 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15380479', 'tblTempVendorCDR_20' ) start [2025-06-29 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15380479', 'tblTempVendorCDR_20' ) end [2025-06-29 06:25:18] Production.INFO: ProcessCDR(1,15380479,1,1,2) [2025-06-29 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15380479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15380479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15380479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15380479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15380479', 'tblTempUsageDetail_20' ) start [2025-06-29 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15380479', 'tblTempUsageDetail_20' ) end [2025-06-29 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-06-29 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-06-29 06:25:22] Production.INFO: ==17304== Releasing lock... [2025-06-29 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 06:25:22] Production.INFO: 32.5 MB #Memory Used# [2025-06-29 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 04:25:05 [end_date_ymd] => 2025-06-29 07:25:05 [RateCDR] => 1 ) [2025-06-29 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 04:25:05' and `end` < '2025-06-29 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 07:25:17] Production.INFO: count ==403 [2025-06-29 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-29 04:25:05 - End Time 2025-06-29 07:25:05 [2025-06-29 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15380726', 'tblTempUsageDetail_20' ) start [2025-06-29 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15380726', 'tblTempUsageDetail_20' ) end [2025-06-29 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15380726', 'tblTempVendorCDR_20' ) start [2025-06-29 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15380726', 'tblTempVendorCDR_20' ) end [2025-06-29 07:25:17] Production.INFO: ProcessCDR(1,15380726,1,1,2) [2025-06-29 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15380726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15380726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15380726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15380726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15380726', 'tblTempUsageDetail_20' ) start [2025-06-29 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15380726', 'tblTempUsageDetail_20' ) end [2025-06-29 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-29 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-29 07:25:24] Production.INFO: ==21603== Releasing lock... [2025-06-29 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 07:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-06-29 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 05:25:05 [end_date_ymd] => 2025-06-29 08:25:05 [RateCDR] => 1 ) [2025-06-29 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 05:25:05' and `end` < '2025-06-29 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 08:25:17] Production.INFO: count ==145 [2025-06-29 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-29 05:25:05 - End Time 2025-06-29 08:25:05 [2025-06-29 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15380973', 'tblTempUsageDetail_20' ) start [2025-06-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15380973', 'tblTempUsageDetail_20' ) end [2025-06-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15380973', 'tblTempVendorCDR_20' ) start [2025-06-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15380973', 'tblTempVendorCDR_20' ) end [2025-06-29 08:25:17] Production.INFO: ProcessCDR(1,15380973,1,1,2) [2025-06-29 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15380973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15380973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15380973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15380973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15380973', 'tblTempUsageDetail_20' ) start [2025-06-29 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15380973', 'tblTempUsageDetail_20' ) end [2025-06-29 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-29 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-29 08:25:23] Production.INFO: ==25940== Releasing lock... [2025-06-29 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 08:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-06-29 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 06:25:05 [end_date_ymd] => 2025-06-29 09:25:05 [RateCDR] => 1 ) [2025-06-29 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 06:25:05' and `end` < '2025-06-29 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 09:25:17] Production.INFO: count ==152 [2025-06-29 09:25:17] Production.ERROR: pbx CDR StartTime 2025-06-29 06:25:05 - End Time 2025-06-29 09:25:05 [2025-06-29 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15381220', 'tblTempUsageDetail_20' ) start [2025-06-29 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15381220', 'tblTempUsageDetail_20' ) end [2025-06-29 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15381220', 'tblTempVendorCDR_20' ) start [2025-06-29 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15381220', 'tblTempVendorCDR_20' ) end [2025-06-29 09:25:17] Production.INFO: ProcessCDR(1,15381220,1,1,2) [2025-06-29 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15381220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15381220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15381220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15381220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15381220', 'tblTempUsageDetail_20' ) start [2025-06-29 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15381220', 'tblTempUsageDetail_20' ) end [2025-06-29 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-29 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-29 09:25:23] Production.INFO: ==30328== Releasing lock... [2025-06-29 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 09:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-06-29 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 07:25:05 [end_date_ymd] => 2025-06-29 10:25:05 [RateCDR] => 1 ) [2025-06-29 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 07:25:05' and `end` < '2025-06-29 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 10:25:17] Production.INFO: count ==267 [2025-06-29 10:25:17] Production.ERROR: pbx CDR StartTime 2025-06-29 07:25:05 - End Time 2025-06-29 10:25:05 [2025-06-29 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15381467', 'tblTempUsageDetail_20' ) start [2025-06-29 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15381467', 'tblTempUsageDetail_20' ) end [2025-06-29 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15381467', 'tblTempVendorCDR_20' ) start [2025-06-29 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15381467', 'tblTempVendorCDR_20' ) end [2025-06-29 10:25:17] Production.INFO: ProcessCDR(1,15381467,1,1,2) [2025-06-29 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15381467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15381467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15381467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15381467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15381467', 'tblTempUsageDetail_20' ) start [2025-06-29 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15381467', 'tblTempUsageDetail_20' ) end [2025-06-29 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-29 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-29 10:25:24] Production.INFO: ==2332== Releasing lock... [2025-06-29 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 10:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-06-29 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 08:25:05 [end_date_ymd] => 2025-06-29 11:25:05 [RateCDR] => 1 ) [2025-06-29 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 08:25:05' and `end` < '2025-06-29 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 11:25:17] Production.INFO: count ==461 [2025-06-29 11:25:17] Production.ERROR: pbx CDR StartTime 2025-06-29 08:25:05 - End Time 2025-06-29 11:25:05 [2025-06-29 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15381714', 'tblTempUsageDetail_20' ) start [2025-06-29 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15381714', 'tblTempUsageDetail_20' ) end [2025-06-29 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15381714', 'tblTempVendorCDR_20' ) start [2025-06-29 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15381714', 'tblTempVendorCDR_20' ) end [2025-06-29 11:25:17] Production.INFO: ProcessCDR(1,15381714,1,1,2) [2025-06-29 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15381714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15381714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15381714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15381714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15381714', 'tblTempUsageDetail_20' ) start [2025-06-29 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15381714', 'tblTempUsageDetail_20' ) end [2025-06-29 11:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-29 11:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-29 11:25:24] Production.INFO: ==6711== Releasing lock... [2025-06-29 11:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 11:25:24] Production.INFO: 32 MB #Memory Used# [2025-06-29 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 09:25:05 [end_date_ymd] => 2025-06-29 12:25:05 [RateCDR] => 1 ) [2025-06-29 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 09:25:05' and `end` < '2025-06-29 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 12:25:18] Production.INFO: count ==818 [2025-06-29 12:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 09:25:05 - End Time 2025-06-29 12:25:05 [2025-06-29 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15381961', 'tblTempUsageDetail_20' ) start [2025-06-29 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15381961', 'tblTempUsageDetail_20' ) end [2025-06-29 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15381961', 'tblTempVendorCDR_20' ) start [2025-06-29 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15381961', 'tblTempVendorCDR_20' ) end [2025-06-29 12:25:18] Production.INFO: ProcessCDR(1,15381961,1,1,2) [2025-06-29 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15381961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15381961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15381961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15381961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15381961', 'tblTempUsageDetail_20' ) start [2025-06-29 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15381961', 'tblTempUsageDetail_20' ) end [2025-06-29 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-29 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-29 12:25:26] Production.INFO: ==11172== Releasing lock... [2025-06-29 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 12:25:26] Production.INFO: 35 MB #Memory Used# [2025-06-29 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 10:25:05 [end_date_ymd] => 2025-06-29 13:25:05 [RateCDR] => 1 ) [2025-06-29 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 10:25:05' and `end` < '2025-06-29 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 13:25:17] Production.INFO: count ==967 [2025-06-29 13:25:17] Production.ERROR: pbx CDR StartTime 2025-06-29 10:25:05 - End Time 2025-06-29 13:25:05 [2025-06-29 13:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15382208', 'tblTempUsageDetail_20' ) start [2025-06-29 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15382208', 'tblTempUsageDetail_20' ) end [2025-06-29 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15382208', 'tblTempVendorCDR_20' ) start [2025-06-29 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15382208', 'tblTempVendorCDR_20' ) end [2025-06-29 13:25:17] Production.INFO: ProcessCDR(1,15382208,1,1,2) [2025-06-29 13:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15382208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 13:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15382208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 13:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15382208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 13:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15382208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 13:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15382208', 'tblTempUsageDetail_20' ) start [2025-06-29 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15382208', 'tblTempUsageDetail_20' ) end [2025-06-29 13:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-29 13:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-29 13:25:24] Production.INFO: ==15688== Releasing lock... [2025-06-29 13:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 13:25:24] Production.INFO: 36 MB #Memory Used# [2025-06-29 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 11:25:05 [end_date_ymd] => 2025-06-29 14:25:05 [RateCDR] => 1 ) [2025-06-29 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 11:25:05' and `end` < '2025-06-29 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 14:25:17] Production.INFO: count ==973 [2025-06-29 14:25:17] Production.ERROR: pbx CDR StartTime 2025-06-29 11:25:05 - End Time 2025-06-29 14:25:05 [2025-06-29 14:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15382455', 'tblTempUsageDetail_20' ) start [2025-06-29 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15382455', 'tblTempUsageDetail_20' ) end [2025-06-29 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15382455', 'tblTempVendorCDR_20' ) start [2025-06-29 14:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15382455', 'tblTempVendorCDR_20' ) end [2025-06-29 14:25:17] Production.INFO: ProcessCDR(1,15382455,1,1,2) [2025-06-29 14:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15382455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 14:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15382455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 14:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15382455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 14:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15382455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15382455', 'tblTempUsageDetail_20' ) start [2025-06-29 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15382455', 'tblTempUsageDetail_20' ) end [2025-06-29 14:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-29 14:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-29 14:25:24] Production.INFO: ==20124== Releasing lock... [2025-06-29 14:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 14:25:24] Production.INFO: 36 MB #Memory Used# [2025-06-29 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 12:25:05 [end_date_ymd] => 2025-06-29 15:25:05 [RateCDR] => 1 ) [2025-06-29 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 12:25:05' and `end` < '2025-06-29 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 15:25:17] Production.INFO: count ==978 [2025-06-29 15:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 12:25:05 - End Time 2025-06-29 15:25:05 [2025-06-29 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15382702', 'tblTempUsageDetail_20' ) start [2025-06-29 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15382702', 'tblTempUsageDetail_20' ) end [2025-06-29 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15382702', 'tblTempVendorCDR_20' ) start [2025-06-29 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15382702', 'tblTempVendorCDR_20' ) end [2025-06-29 15:25:18] Production.INFO: ProcessCDR(1,15382702,1,1,2) [2025-06-29 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15382702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15382702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15382702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 15:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15382702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15382702', 'tblTempUsageDetail_20' ) start [2025-06-29 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15382702', 'tblTempUsageDetail_20' ) end [2025-06-29 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-29 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-29 15:25:25] Production.INFO: ==24741== Releasing lock... [2025-06-29 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 15:25:25] Production.INFO: 36.25 MB #Memory Used# [2025-06-29 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 13:25:05 [end_date_ymd] => 2025-06-29 16:25:05 [RateCDR] => 1 ) [2025-06-29 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 13:25:05' and `end` < '2025-06-29 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 16:25:17] Production.INFO: count ==1040 [2025-06-29 16:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 13:25:05 - End Time 2025-06-29 16:25:05 [2025-06-29 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15382949', 'tblTempUsageDetail_20' ) start [2025-06-29 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15382949', 'tblTempUsageDetail_20' ) end [2025-06-29 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15382949', 'tblTempVendorCDR_20' ) start [2025-06-29 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15382949', 'tblTempVendorCDR_20' ) end [2025-06-29 16:25:18] Production.INFO: ProcessCDR(1,15382949,1,1,2) [2025-06-29 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15382949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15382949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15382949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 16:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15382949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15382949', 'tblTempUsageDetail_20' ) start [2025-06-29 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15382949', 'tblTempUsageDetail_20' ) end [2025-06-29 16:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-29 16:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-29 16:25:24] Production.INFO: ==29068== Releasing lock... [2025-06-29 16:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 16:25:24] Production.INFO: 36.25 MB #Memory Used# [2025-06-29 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 14:25:05 [end_date_ymd] => 2025-06-29 17:25:05 [RateCDR] => 1 ) [2025-06-29 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 14:25:05' and `end` < '2025-06-29 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 17:25:18] Production.INFO: count ==1256 [2025-06-29 17:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 14:25:05 - End Time 2025-06-29 17:25:05 [2025-06-29 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15383196', 'tblTempUsageDetail_20' ) start [2025-06-29 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15383196', 'tblTempUsageDetail_20' ) end [2025-06-29 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15383196', 'tblTempVendorCDR_20' ) start [2025-06-29 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15383196', 'tblTempVendorCDR_20' ) end [2025-06-29 17:25:18] Production.INFO: ProcessCDR(1,15383196,1,1,2) [2025-06-29 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15383196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15383196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15383196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 17:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15383196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 17:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15383196', 'tblTempUsageDetail_20' ) start [2025-06-29 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15383196', 'tblTempUsageDetail_20' ) end [2025-06-29 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-29 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-29 17:25:25] Production.INFO: ==998== Releasing lock... [2025-06-29 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 17:25:25] Production.INFO: 37.25 MB #Memory Used# [2025-06-29 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 15:25:05 [end_date_ymd] => 2025-06-29 18:25:05 [RateCDR] => 1 ) [2025-06-29 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 15:25:05' and `end` < '2025-06-29 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 18:25:17] Production.INFO: count ==1372 [2025-06-29 18:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 15:25:05 - End Time 2025-06-29 18:25:05 [2025-06-29 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15383443', 'tblTempUsageDetail_20' ) start [2025-06-29 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15383443', 'tblTempUsageDetail_20' ) end [2025-06-29 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15383443', 'tblTempVendorCDR_20' ) start [2025-06-29 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15383443', 'tblTempVendorCDR_20' ) end [2025-06-29 18:25:18] Production.INFO: ProcessCDR(1,15383443,1,1,2) [2025-06-29 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15383443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15383443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15383443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15383443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15383443', 'tblTempUsageDetail_20' ) start [2025-06-29 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15383443', 'tblTempUsageDetail_20' ) end [2025-06-29 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-29 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-29 18:25:25] Production.INFO: ==5669== Releasing lock... [2025-06-29 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 18:25:25] Production.INFO: 38.5 MB #Memory Used# [2025-06-29 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 16:25:05 [end_date_ymd] => 2025-06-29 19:25:05 [RateCDR] => 1 ) [2025-06-29 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 16:25:05' and `end` < '2025-06-29 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 19:25:17] Production.INFO: count ==1537 [2025-06-29 19:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 16:25:05 - End Time 2025-06-29 19:25:05 [2025-06-29 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15383687', 'tblTempUsageDetail_20' ) start [2025-06-29 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15383687', 'tblTempUsageDetail_20' ) end [2025-06-29 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15383687', 'tblTempVendorCDR_20' ) start [2025-06-29 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15383687', 'tblTempVendorCDR_20' ) end [2025-06-29 19:25:18] Production.INFO: ProcessCDR(1,15383687,1,1,2) [2025-06-29 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15383687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15383687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15383687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15383687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15383687', 'tblTempUsageDetail_20' ) start [2025-06-29 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15383687', 'tblTempUsageDetail_20' ) end [2025-06-29 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-29 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-29 19:25:26] Production.INFO: ==10105== Releasing lock... [2025-06-29 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 19:25:26] Production.INFO: 39.75 MB #Memory Used# [2025-06-29 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 17:25:05 [end_date_ymd] => 2025-06-29 20:25:05 [RateCDR] => 1 ) [2025-06-29 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 17:25:05' and `end` < '2025-06-29 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 20:25:18] Production.INFO: count ==1564 [2025-06-29 20:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 17:25:05 - End Time 2025-06-29 20:25:05 [2025-06-29 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15383934', 'tblTempUsageDetail_20' ) start [2025-06-29 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15383934', 'tblTempUsageDetail_20' ) end [2025-06-29 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15383934', 'tblTempVendorCDR_20' ) start [2025-06-29 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15383934', 'tblTempVendorCDR_20' ) end [2025-06-29 20:25:18] Production.INFO: ProcessCDR(1,15383934,1,1,2) [2025-06-29 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15383934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15383934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15383934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15383934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15383934', 'tblTempUsageDetail_20' ) start [2025-06-29 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15383934', 'tblTempUsageDetail_20' ) end [2025-06-29 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-29 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-29 20:25:25] Production.INFO: ==14493== Releasing lock... [2025-06-29 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 20:25:25] Production.INFO: 39.75 MB #Memory Used# [2025-06-29 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 18:25:04 [end_date_ymd] => 2025-06-29 21:25:04 [RateCDR] => 1 ) [2025-06-29 21:25:04] 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-06-29 18:25:04' and `end` < '2025-06-29 21:25:04' 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-06-29 21:25:18] Production.INFO: count ==1681 [2025-06-29 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 18:25:04 - End Time 2025-06-29 21:25:04 [2025-06-29 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15384181', 'tblTempUsageDetail_20' ) start [2025-06-29 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15384181', 'tblTempUsageDetail_20' ) end [2025-06-29 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15384181', 'tblTempVendorCDR_20' ) start [2025-06-29 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15384181', 'tblTempVendorCDR_20' ) end [2025-06-29 21:25:18] Production.INFO: ProcessCDR(1,15384181,1,1,2) [2025-06-29 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15384181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15384181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15384181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15384181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15384181', 'tblTempUsageDetail_20' ) start [2025-06-29 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15384181', 'tblTempUsageDetail_20' ) end [2025-06-29 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-29 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-29 21:25:25] Production.INFO: ==18928== Releasing lock... [2025-06-29 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 21:25:25] Production.INFO: 41.5 MB #Memory Used# [2025-06-29 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 19:25:05 [end_date_ymd] => 2025-06-29 22:25:05 [RateCDR] => 1 ) [2025-06-29 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 19:25:05' and `end` < '2025-06-29 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 22:25:18] Production.INFO: count ==1559 [2025-06-29 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-29 19:25:05 - End Time 2025-06-29 22:25:05 [2025-06-29 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15384428', 'tblTempUsageDetail_20' ) start [2025-06-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15384428', 'tblTempUsageDetail_20' ) end [2025-06-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15384428', 'tblTempVendorCDR_20' ) start [2025-06-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15384428', 'tblTempVendorCDR_20' ) end [2025-06-29 22:25:18] Production.INFO: ProcessCDR(1,15384428,1,1,2) [2025-06-29 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15384428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15384428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15384428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15384428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15384428', 'tblTempUsageDetail_20' ) start [2025-06-29 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15384428', 'tblTempUsageDetail_20' ) end [2025-06-29 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-29 22:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-29 22:25:25] Production.INFO: ==23285== Releasing lock... [2025-06-29 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 22:25:25] Production.INFO: 39.75 MB #Memory Used# [2025-06-29 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-29 20:25:05 [end_date_ymd] => 2025-06-29 23:25:05 [RateCDR] => 1 ) [2025-06-29 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-29 20:25:05' and `end` < '2025-06-29 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-29 23:25:17] Production.INFO: count ==1328 [2025-06-29 23:25:17] Production.ERROR: pbx CDR StartTime 2025-06-29 20:25:05 - End Time 2025-06-29 23:25:05 [2025-06-29 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-29 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15384675', 'tblTempUsageDetail_20' ) start [2025-06-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15384675', 'tblTempUsageDetail_20' ) end [2025-06-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15384675', 'tblTempVendorCDR_20' ) start [2025-06-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15384675', 'tblTempVendorCDR_20' ) end [2025-06-29 23:25:18] Production.INFO: ProcessCDR(1,15384675,1,1,2) [2025-06-29 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15384675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15384675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-29 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15384675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15384675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-29 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15384675', 'tblTempUsageDetail_20' ) start [2025-06-29 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15384675', 'tblTempUsageDetail_20' ) end [2025-06-29 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-29 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-29 23:25:24] Production.INFO: ==27625== Releasing lock... [2025-06-29 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-29 23:25:24] Production.INFO: 38.25 MB #Memory Used#