[2025-07-29 00:25:04] Production.INFO: next invoice date [2025-07-29 00:25:04] Production.INFO: 2025-08-29 [2025-07-29 00:25:04] Production.INFO: getdaysdiff [2025-07-29 00:25:04] Production.INFO: +31 [2025-07-29 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (1,11,1,31,31,'RMScheduler',2025-07-29 00:25:04,1,0,,,0) [2025-07-29 00:25:04] Production.INFO: next invoice date [2025-07-29 00:25:04] Production.INFO: 2025-08-29 [2025-07-29 00:25:04] Production.INFO: getdaysdiff [2025-07-29 00:25:04] Production.INFO: +31 [2025-07-29 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (1,13,2,31,31,'RMScheduler',2025-07-29 00:25:04,1,0,,,0) [2025-07-29 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 21:25:05 [end_date_ymd] => 2025-07-29 00:25:05 [RateCDR] => 1 ) [2025-07-29 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-28 21:25:05' and `end` < '2025-07-29 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-29 00:25:18] Production.INFO: count ==448 [2025-07-29 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-28 21:25:05 - End Time 2025-07-29 00:25:05 [2025-07-29 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15556805', 'tblTempUsageDetail_20' ) start [2025-07-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15556805', 'tblTempUsageDetail_20' ) end [2025-07-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15556805', 'tblTempVendorCDR_20' ) start [2025-07-29 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15556805', 'tblTempVendorCDR_20' ) end [2025-07-29 00:25:18] Production.INFO: ProcessCDR(1,15556805,1,1,2) [2025-07-29 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15556805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15556805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15556805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15556805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15556805', 'tblTempUsageDetail_20' ) start [2025-07-29 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15556805', 'tblTempUsageDetail_20' ) end [2025-07-29 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-29 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-29 00:25:26] Production.INFO: ==6285== Releasing lock... [2025-07-29 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 00:25:26] Production.INFO: 35.75 MB #Memory Used# [2025-07-29 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 22:25:05 [end_date_ymd] => 2025-07-29 01:25:05 [RateCDR] => 1 ) [2025-07-29 01: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-07-28 22:25:05' and `end` < '2025-07-29 01: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-07-29 01:25:17] Production.INFO: count ==396 [2025-07-29 01:25:17] Production.ERROR: pbx CDR StartTime 2025-07-28 22:25:05 - End Time 2025-07-29 01:25:05 [2025-07-29 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15557052', 'tblTempUsageDetail_20' ) start [2025-07-29 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15557052', 'tblTempUsageDetail_20' ) end [2025-07-29 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15557052', 'tblTempVendorCDR_20' ) start [2025-07-29 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15557052', 'tblTempVendorCDR_20' ) end [2025-07-29 01:25:17] Production.INFO: ProcessCDR(1,15557052,1,1,2) [2025-07-29 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15557052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15557052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15557052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15557052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15557052', 'tblTempUsageDetail_20' ) start [2025-07-29 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15557052', 'tblTempUsageDetail_20' ) end [2025-07-29 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-29 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-29 01:25:24] Production.INFO: ==11088== Releasing lock... [2025-07-29 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 01:25:24] Production.INFO: 31.5 MB #Memory Used# [2025-07-29 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-28 23:25:05 [end_date_ymd] => 2025-07-29 02:25:05 [RateCDR] => 1 ) [2025-07-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-07-28 23:25:05' and `end` < '2025-07-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-07-29 02:25:18] Production.INFO: count ==417 [2025-07-29 02:25:18] Production.ERROR: pbx CDR StartTime 2025-07-28 23:25:05 - End Time 2025-07-29 02:25:05 [2025-07-29 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15557299', 'tblTempUsageDetail_20' ) start [2025-07-29 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15557299', 'tblTempUsageDetail_20' ) end [2025-07-29 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15557299', 'tblTempVendorCDR_20' ) start [2025-07-29 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15557299', 'tblTempVendorCDR_20' ) end [2025-07-29 02:25:18] Production.INFO: ProcessCDR(1,15557299,1,1,2) [2025-07-29 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15557299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15557299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15557299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15557299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15557299', 'tblTempUsageDetail_20' ) start [2025-07-29 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15557299', 'tblTempUsageDetail_20' ) end [2025-07-29 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-29 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-29 02:25:25] Production.INFO: ==15987== Releasing lock... [2025-07-29 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 02:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-07-29 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 00:25:05 [end_date_ymd] => 2025-07-29 03:25:05 [RateCDR] => 1 ) [2025-07-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-07-29 00:25:05' and `end` < '2025-07-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-07-29 03:25:17] Production.INFO: count ==336 [2025-07-29 03:25:17] Production.ERROR: pbx CDR StartTime 2025-07-29 00:25:05 - End Time 2025-07-29 03:25:05 [2025-07-29 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15557546', 'tblTempUsageDetail_20' ) start [2025-07-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15557546', 'tblTempUsageDetail_20' ) end [2025-07-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15557546', 'tblTempVendorCDR_20' ) start [2025-07-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15557546', 'tblTempVendorCDR_20' ) end [2025-07-29 03:25:17] Production.INFO: ProcessCDR(1,15557546,1,1,2) [2025-07-29 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15557546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15557546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15557546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15557546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15557546', 'tblTempUsageDetail_20' ) start [2025-07-29 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15557546', 'tblTempUsageDetail_20' ) end [2025-07-29 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-29 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-29 03:25:24] Production.INFO: ==20234== Releasing lock... [2025-07-29 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 03:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-07-29 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 01:25:05 [end_date_ymd] => 2025-07-29 04:25:05 [RateCDR] => 1 ) [2025-07-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-07-29 01:25:05' and `end` < '2025-07-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-07-29 04:25:17] Production.INFO: count ==281 [2025-07-29 04:25:17] Production.ERROR: pbx CDR StartTime 2025-07-29 01:25:05 - End Time 2025-07-29 04:25:05 [2025-07-29 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15557794', 'tblTempUsageDetail_20' ) start [2025-07-29 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15557794', 'tblTempUsageDetail_20' ) end [2025-07-29 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15557794', 'tblTempVendorCDR_20' ) start [2025-07-29 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15557794', 'tblTempVendorCDR_20' ) end [2025-07-29 04:25:17] Production.INFO: ProcessCDR(1,15557794,1,1,2) [2025-07-29 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15557794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15557794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15557794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15557794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15557794', 'tblTempUsageDetail_20' ) start [2025-07-29 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15557794', 'tblTempUsageDetail_20' ) end [2025-07-29 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-07-29 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-07-29 04:25:22] Production.INFO: ==24806== Releasing lock... [2025-07-29 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 04:25:22] Production.INFO: 30.75 MB #Memory Used# [2025-07-29 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 02:25:05 [end_date_ymd] => 2025-07-29 05:25:05 [RateCDR] => 1 ) [2025-07-29 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-29 02:25:05' and `end` < '2025-07-29 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-29 05:25:18] Production.INFO: count ==164 [2025-07-29 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-29 02:25:05 - End Time 2025-07-29 05:25:05 [2025-07-29 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15558042', 'tblTempUsageDetail_20' ) start [2025-07-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15558042', 'tblTempUsageDetail_20' ) end [2025-07-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15558042', 'tblTempVendorCDR_20' ) start [2025-07-29 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15558042', 'tblTempVendorCDR_20' ) end [2025-07-29 05:25:18] Production.INFO: ProcessCDR(1,15558042,1,1,2) [2025-07-29 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15558042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15558042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15558042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15558042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15558042', 'tblTempUsageDetail_20' ) start [2025-07-29 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15558042', 'tblTempUsageDetail_20' ) end [2025-07-29 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-29 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-29 05:25:23] Production.INFO: ==29271== Releasing lock... [2025-07-29 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 05:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-07-29 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 03:25:05 [end_date_ymd] => 2025-07-29 06:25:05 [RateCDR] => 1 ) [2025-07-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-07-29 03:25:05' and `end` < '2025-07-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-07-29 06:25:17] Production.INFO: count ==122 [2025-07-29 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-29 03:25:05 - End Time 2025-07-29 06:25:05 [2025-07-29 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15558289', 'tblTempUsageDetail_20' ) start [2025-07-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15558289', 'tblTempUsageDetail_20' ) end [2025-07-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15558289', 'tblTempVendorCDR_20' ) start [2025-07-29 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15558289', 'tblTempVendorCDR_20' ) end [2025-07-29 06:25:17] Production.INFO: ProcessCDR(1,15558289,1,1,2) [2025-07-29 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15558289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15558289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15558289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15558289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15558289', 'tblTempUsageDetail_20' ) start [2025-07-29 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15558289', 'tblTempUsageDetail_20' ) end [2025-07-29 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-29 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-29 06:25:24] Production.INFO: ==1545== Releasing lock... [2025-07-29 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 06:25:24] Production.INFO: 29 MB #Memory Used# [2025-07-29 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 04:25:06 [end_date_ymd] => 2025-07-29 07:25:06 [RateCDR] => 1 ) [2025-07-29 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-29 04:25:06' and `end` < '2025-07-29 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-29 07:25:18] Production.INFO: count ==128 [2025-07-29 07:25:18] Production.ERROR: pbx CDR StartTime 2025-07-29 04:25:06 - End Time 2025-07-29 07:25:06 [2025-07-29 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15558536', 'tblTempUsageDetail_20' ) start [2025-07-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15558536', 'tblTempUsageDetail_20' ) end [2025-07-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15558536', 'tblTempVendorCDR_20' ) start [2025-07-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15558536', 'tblTempVendorCDR_20' ) end [2025-07-29 07:25:18] Production.INFO: ProcessCDR(1,15558536,1,1,2) [2025-07-29 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15558536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15558536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15558536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15558536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15558536', 'tblTempUsageDetail_20' ) start [2025-07-29 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15558536', 'tblTempUsageDetail_20' ) end [2025-07-29 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-29 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-29 07:25:25] Production.INFO: ==6335== Releasing lock... [2025-07-29 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 07:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-07-29 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 05:25:05 [end_date_ymd] => 2025-07-29 08:25:05 [RateCDR] => 1 ) [2025-07-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-07-29 05:25:05' and `end` < '2025-07-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-07-29 08:25:17] Production.INFO: count ==373 [2025-07-29 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-29 05:25:05 - End Time 2025-07-29 08:25:05 [2025-07-29 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15558783', 'tblTempUsageDetail_20' ) start [2025-07-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15558783', 'tblTempUsageDetail_20' ) end [2025-07-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15558783', 'tblTempVendorCDR_20' ) start [2025-07-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15558783', 'tblTempVendorCDR_20' ) end [2025-07-29 08:25:17] Production.INFO: ProcessCDR(1,15558783,1,1,2) [2025-07-29 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15558783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15558783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15558783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15558783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15558783', 'tblTempUsageDetail_20' ) start [2025-07-29 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15558783', 'tblTempUsageDetail_20' ) end [2025-07-29 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-29 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-29 08:25:24] Production.INFO: ==11779== Releasing lock... [2025-07-29 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 08:25:24] Production.INFO: 31.75 MB #Memory Used# [2025-07-29 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 06:25:05 [end_date_ymd] => 2025-07-29 09:25:05 [RateCDR] => 1 ) [2025-07-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-07-29 06:25:05' and `end` < '2025-07-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-07-29 09:25:18] Production.INFO: count ==1288 [2025-07-29 09:25:18] Production.ERROR: pbx CDR StartTime 2025-07-29 06:25:05 - End Time 2025-07-29 09:25:05 [2025-07-29 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15559030', 'tblTempUsageDetail_20' ) start [2025-07-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15559030', 'tblTempUsageDetail_20' ) end [2025-07-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15559030', 'tblTempVendorCDR_20' ) start [2025-07-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15559030', 'tblTempVendorCDR_20' ) end [2025-07-29 09:25:18] Production.INFO: ProcessCDR(1,15559030,1,1,2) [2025-07-29 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15559030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15559030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15559030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15559030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15559030', 'tblTempUsageDetail_20' ) start [2025-07-29 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15559030', 'tblTempUsageDetail_20' ) end [2025-07-29 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-29 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-29 09:25:27] Production.INFO: ==16369== Releasing lock... [2025-07-29 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 09:25:27] Production.INFO: 37.75 MB #Memory Used# [2025-07-29 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 07:25:06 [end_date_ymd] => 2025-07-29 10:25:06 [RateCDR] => 1 ) [2025-07-29 10: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-07-29 07:25:06' and `end` < '2025-07-29 10: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-07-29 10:25:23] Production.INFO: count ==2734 [2025-07-29 10:25:24] Production.ERROR: pbx CDR StartTime 2025-07-29 07:25:06 - End Time 2025-07-29 10:25:06 [2025-07-29 10:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15559277', 'tblTempUsageDetail_20' ) start [2025-07-29 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15559277', 'tblTempUsageDetail_20' ) end [2025-07-29 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15559277', 'tblTempVendorCDR_20' ) start [2025-07-29 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15559277', 'tblTempVendorCDR_20' ) end [2025-07-29 10:25:24] Production.INFO: ProcessCDR(1,15559277,1,1,2) [2025-07-29 10:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15559277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 10:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15559277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 10:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15559277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 10:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15559277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15559277', 'tblTempUsageDetail_20' ) start [2025-07-29 10:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15559277', 'tblTempUsageDetail_20' ) end [2025-07-29 10:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-29 10:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-29 10:25:34] Production.INFO: ==21177== Releasing lock... [2025-07-29 10:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 10:25:34] Production.INFO: 49.25 MB #Memory Used# [2025-07-29 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 08:25:05 [end_date_ymd] => 2025-07-29 11:25:05 [RateCDR] => 1 ) [2025-07-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-07-29 08:25:05' and `end` < '2025-07-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-07-29 11:25:19] Production.INFO: count ==4231 [2025-07-29 11:25:21] Production.ERROR: pbx CDR StartTime 2025-07-29 08:25:05 - End Time 2025-07-29 11:25:05 [2025-07-29 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15559524', 'tblTempUsageDetail_20' ) start [2025-07-29 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15559524', 'tblTempUsageDetail_20' ) end [2025-07-29 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15559524', 'tblTempVendorCDR_20' ) start [2025-07-29 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15559524', 'tblTempVendorCDR_20' ) end [2025-07-29 11:25:22] Production.INFO: ProcessCDR(1,15559524,1,1,2) [2025-07-29 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15559524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15559524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15559524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15559524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15559524', 'tblTempUsageDetail_20' ) start [2025-07-29 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15559524', 'tblTempUsageDetail_20' ) end [2025-07-29 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-29 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-29 11:25:33] Production.INFO: ==26073== Releasing lock... [2025-07-29 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 11:25:33] Production.INFO: 59.75 MB #Memory Used# [2025-07-29 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 09:25:06 [end_date_ymd] => 2025-07-29 12:25:06 [RateCDR] => 1 ) [2025-07-29 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-29 09:25:06' and `end` < '2025-07-29 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-29 12:25:21] Production.INFO: count ==5326 [2025-07-29 12:25:23] Production.ERROR: pbx CDR StartTime 2025-07-29 09:25:06 - End Time 2025-07-29 12:25:06 [2025-07-29 12:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15559771', 'tblTempUsageDetail_20' ) start [2025-07-29 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15559771', 'tblTempUsageDetail_20' ) end [2025-07-29 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15559771', 'tblTempVendorCDR_20' ) start [2025-07-29 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15559771', 'tblTempVendorCDR_20' ) end [2025-07-29 12:25:24] Production.INFO: ProcessCDR(1,15559771,1,1,2) [2025-07-29 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15559771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15559771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15559771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15559771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15559771', 'tblTempUsageDetail_20' ) start [2025-07-29 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15559771', 'tblTempUsageDetail_20' ) end [2025-07-29 12:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-29 12:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-29 12:25:35] Production.INFO: ==31798== Releasing lock... [2025-07-29 12:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 12:25:35] Production.INFO: 68 MB #Memory Used# [2025-07-29 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 10:25:05 [end_date_ymd] => 2025-07-29 13:25:05 [RateCDR] => 1 ) [2025-07-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-07-29 10:25:05' and `end` < '2025-07-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-07-29 13:25:19] Production.INFO: count ==5664 [2025-07-29 13:25:22] Production.ERROR: pbx CDR StartTime 2025-07-29 10:25:05 - End Time 2025-07-29 13:25:05 [2025-07-29 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15560018', 'tblTempUsageDetail_20' ) start [2025-07-29 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15560018', 'tblTempUsageDetail_20' ) end [2025-07-29 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15560018', 'tblTempVendorCDR_20' ) start [2025-07-29 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15560018', 'tblTempVendorCDR_20' ) end [2025-07-29 13:25:22] Production.INFO: ProcessCDR(1,15560018,1,1,2) [2025-07-29 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15560018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15560018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15560018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15560018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15560018', 'tblTempUsageDetail_20' ) start [2025-07-29 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15560018', 'tblTempUsageDetail_20' ) end [2025-07-29 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-29 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-29 13:25:33] Production.INFO: ==5736== Releasing lock... [2025-07-29 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 13:25:33] Production.INFO: 70.75 MB #Memory Used# [2025-07-29 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 11:25:05 [end_date_ymd] => 2025-07-29 14:25:05 [RateCDR] => 1 ) [2025-07-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-07-29 11:25:05' and `end` < '2025-07-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-07-29 14:25:18] Production.INFO: count ==5472 [2025-07-29 14:25:21] Production.ERROR: pbx CDR StartTime 2025-07-29 11:25:05 - End Time 2025-07-29 14:25:05 [2025-07-29 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15560265', 'tblTempUsageDetail_20' ) start [2025-07-29 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15560265', 'tblTempUsageDetail_20' ) end [2025-07-29 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15560265', 'tblTempVendorCDR_20' ) start [2025-07-29 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15560265', 'tblTempVendorCDR_20' ) end [2025-07-29 14:25:21] Production.INFO: ProcessCDR(1,15560265,1,1,2) [2025-07-29 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15560265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15560265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15560265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15560265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15560265', 'tblTempUsageDetail_20' ) start [2025-07-29 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15560265', 'tblTempUsageDetail_20' ) end [2025-07-29 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-29 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-29 14:25:32] Production.INFO: ==11827== Releasing lock... [2025-07-29 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 14:25:32] Production.INFO: 69.25 MB #Memory Used# [2025-07-29 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 12:25:05 [end_date_ymd] => 2025-07-29 15:25:05 [RateCDR] => 1 ) [2025-07-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-07-29 12:25:05' and `end` < '2025-07-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-07-29 15:25:18] Production.INFO: count ==4965 [2025-07-29 15:25:21] Production.ERROR: pbx CDR StartTime 2025-07-29 12:25:05 - End Time 2025-07-29 15:25:05 [2025-07-29 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15560512', 'tblTempUsageDetail_20' ) start [2025-07-29 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15560512', 'tblTempUsageDetail_20' ) end [2025-07-29 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15560512', 'tblTempVendorCDR_20' ) start [2025-07-29 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15560512', 'tblTempVendorCDR_20' ) end [2025-07-29 15:25:21] Production.INFO: ProcessCDR(1,15560512,1,1,2) [2025-07-29 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15560512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15560512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15560512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 15:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15560512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 15:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15560512', 'tblTempUsageDetail_20' ) start [2025-07-29 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15560512', 'tblTempUsageDetail_20' ) end [2025-07-29 15:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-29 15:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-29 15:25:31] Production.INFO: ==17695== Releasing lock... [2025-07-29 15:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 15:25:31] Production.INFO: 65.25 MB #Memory Used# [2025-07-29 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 13:25:04 [end_date_ymd] => 2025-07-29 16:25:04 [RateCDR] => 1 ) [2025-07-29 16: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-07-29 13:25:04' and `end` < '2025-07-29 16: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-07-29 16:25:20] Production.INFO: count ==4911 [2025-07-29 16:25:22] Production.ERROR: pbx CDR StartTime 2025-07-29 13:25:04 - End Time 2025-07-29 16:25:04 [2025-07-29 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15560759', 'tblTempUsageDetail_20' ) start [2025-07-29 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15560759', 'tblTempUsageDetail_20' ) end [2025-07-29 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15560759', 'tblTempVendorCDR_20' ) start [2025-07-29 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15560759', 'tblTempVendorCDR_20' ) end [2025-07-29 16:25:22] Production.INFO: ProcessCDR(1,15560759,1,1,2) [2025-07-29 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15560759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15560759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15560759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15560759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15560759', 'tblTempUsageDetail_20' ) start [2025-07-29 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15560759', 'tblTempUsageDetail_20' ) end [2025-07-29 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-29 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-29 16:25:33] Production.INFO: ==23612== Releasing lock... [2025-07-29 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 16:25:33] Production.INFO: 65 MB #Memory Used# [2025-07-29 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 14:25:05 [end_date_ymd] => 2025-07-29 17:25:05 [RateCDR] => 1 ) [2025-07-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-07-29 14:25:05' and `end` < '2025-07-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-07-29 17:25:18] Production.INFO: count ==4827 [2025-07-29 17:25:20] Production.ERROR: pbx CDR StartTime 2025-07-29 14:25:05 - End Time 2025-07-29 17:25:05 [2025-07-29 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15561006', 'tblTempUsageDetail_20' ) start [2025-07-29 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15561006', 'tblTempUsageDetail_20' ) end [2025-07-29 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15561006', 'tblTempVendorCDR_20' ) start [2025-07-29 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15561006', 'tblTempVendorCDR_20' ) end [2025-07-29 17:25:21] Production.INFO: ProcessCDR(1,15561006,1,1,2) [2025-07-29 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15561006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15561006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15561006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15561006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15561006', 'tblTempUsageDetail_20' ) start [2025-07-29 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15561006', 'tblTempUsageDetail_20' ) end [2025-07-29 17:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-29 17:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-29 17:25:31] Production.INFO: ==29642== Releasing lock... [2025-07-29 17:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 17:25:31] Production.INFO: 64.25 MB #Memory Used# [2025-07-29 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 15:25:05 [end_date_ymd] => 2025-07-29 18:25:05 [RateCDR] => 1 ) [2025-07-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-07-29 15:25:05' and `end` < '2025-07-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-07-29 18:25:19] Production.INFO: count ==4348 [2025-07-29 18:25:21] Production.ERROR: pbx CDR StartTime 2025-07-29 15:25:05 - End Time 2025-07-29 18:25:05 [2025-07-29 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15561253', 'tblTempUsageDetail_20' ) start [2025-07-29 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15561253', 'tblTempUsageDetail_20' ) end [2025-07-29 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15561253', 'tblTempVendorCDR_20' ) start [2025-07-29 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15561253', 'tblTempVendorCDR_20' ) end [2025-07-29 18:25:21] Production.INFO: ProcessCDR(1,15561253,1,1,2) [2025-07-29 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15561253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15561253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15561253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15561253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15561253', 'tblTempUsageDetail_20' ) start [2025-07-29 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15561253', 'tblTempUsageDetail_20' ) end [2025-07-29 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-29 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-29 18:25:30] Production.INFO: ==2645== Releasing lock... [2025-07-29 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 18:25:30] Production.INFO: 60.75 MB #Memory Used# [2025-07-29 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 16:25:06 [end_date_ymd] => 2025-07-29 19:25:06 [RateCDR] => 1 ) [2025-07-29 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-29 16:25:06' and `end` < '2025-07-29 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-29 19:25:19] Production.INFO: count ==3286 [2025-07-29 19:25:20] Production.ERROR: pbx CDR StartTime 2025-07-29 16:25:06 - End Time 2025-07-29 19:25:06 [2025-07-29 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15561498', 'tblTempUsageDetail_20' ) start [2025-07-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15561498', 'tblTempUsageDetail_20' ) end [2025-07-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15561498', 'tblTempVendorCDR_20' ) start [2025-07-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15561498', 'tblTempVendorCDR_20' ) end [2025-07-29 19:25:20] Production.INFO: ProcessCDR(1,15561498,1,1,2) [2025-07-29 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15561498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15561498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15561498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15561498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15561498', 'tblTempUsageDetail_20' ) start [2025-07-29 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15561498', 'tblTempUsageDetail_20' ) end [2025-07-29 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-29 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-29 19:25:28] Production.INFO: ==7161== Releasing lock... [2025-07-29 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 19:25:28] Production.INFO: 52.75 MB #Memory Used# [2025-07-29 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 17:25:06 [end_date_ymd] => 2025-07-29 20:25:06 [RateCDR] => 1 ) [2025-07-29 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-29 17:25:06' and `end` < '2025-07-29 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-29 20:25:18] Production.INFO: count ==2260 [2025-07-29 20:25:19] Production.ERROR: pbx CDR StartTime 2025-07-29 17:25:06 - End Time 2025-07-29 20:25:06 [2025-07-29 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15561745', 'tblTempUsageDetail_20' ) start [2025-07-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15561745', 'tblTempUsageDetail_20' ) end [2025-07-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15561745', 'tblTempVendorCDR_20' ) start [2025-07-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15561745', 'tblTempVendorCDR_20' ) end [2025-07-29 20:25:19] Production.INFO: ProcessCDR(1,15561745,1,1,2) [2025-07-29 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15561745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15561745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15561745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15561745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15561745', 'tblTempUsageDetail_20' ) start [2025-07-29 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15561745', 'tblTempUsageDetail_20' ) end [2025-07-29 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-29 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-29 20:25:27] Production.INFO: ==12104== Releasing lock... [2025-07-29 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 20:25:27] Production.INFO: 45.25 MB #Memory Used# [2025-07-29 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 18:25:05 [end_date_ymd] => 2025-07-29 21:25:05 [RateCDR] => 1 ) [2025-07-29 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-29 18:25:05' and `end` < '2025-07-29 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-29 21:25:18] Production.INFO: count ==1808 [2025-07-29 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-29 18:25:05 - End Time 2025-07-29 21:25:05 [2025-07-29 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15561992', 'tblTempUsageDetail_20' ) start [2025-07-29 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15561992', 'tblTempUsageDetail_20' ) end [2025-07-29 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15561992', 'tblTempVendorCDR_20' ) start [2025-07-29 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15561992', 'tblTempVendorCDR_20' ) end [2025-07-29 21:25:18] Production.INFO: ProcessCDR(1,15561992,1,1,2) [2025-07-29 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15561992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15561992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15561992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15561992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15561992', 'tblTempUsageDetail_20' ) start [2025-07-29 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15561992', 'tblTempUsageDetail_20' ) end [2025-07-29 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-29 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-29 21:25:26] Production.INFO: ==17016== Releasing lock... [2025-07-29 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 21:25:26] Production.INFO: 41.75 MB #Memory Used# [2025-07-29 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 19:25:05 [end_date_ymd] => 2025-07-29 22:25:05 [RateCDR] => 1 ) [2025-07-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-07-29 19:25:05' and `end` < '2025-07-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-07-29 22:25:17] Production.INFO: count ==1376 [2025-07-29 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-29 19:25:05 - End Time 2025-07-29 22:25:05 [2025-07-29 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15562239', 'tblTempUsageDetail_20' ) start [2025-07-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15562239', 'tblTempUsageDetail_20' ) end [2025-07-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15562239', 'tblTempVendorCDR_20' ) start [2025-07-29 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15562239', 'tblTempVendorCDR_20' ) end [2025-07-29 22:25:18] Production.INFO: ProcessCDR(1,15562239,1,1,2) [2025-07-29 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15562239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15562239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15562239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15562239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15562239', 'tblTempUsageDetail_20' ) start [2025-07-29 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15562239', 'tblTempUsageDetail_20' ) end [2025-07-29 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-29 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-29 22:25:25] Production.INFO: ==21493== Releasing lock... [2025-07-29 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 22:25:25] Production.INFO: 38.5 MB #Memory Used# [2025-07-29 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 20:25:06 [end_date_ymd] => 2025-07-29 23:25:06 [RateCDR] => 1 ) [2025-07-29 23: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-07-29 20:25:06' and `end` < '2025-07-29 23: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-07-29 23:25:18] Production.INFO: count ==1095 [2025-07-29 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-29 20:25:06 - End Time 2025-07-29 23:25:06 [2025-07-29 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15562486', 'tblTempUsageDetail_20' ) start [2025-07-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15562486', 'tblTempUsageDetail_20' ) end [2025-07-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15562486', 'tblTempVendorCDR_20' ) start [2025-07-29 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15562486', 'tblTempVendorCDR_20' ) end [2025-07-29 23:25:18] Production.INFO: ProcessCDR(1,15562486,1,1,2) [2025-07-29 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15562486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15562486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-29 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15562486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15562486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-29 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15562486', 'tblTempUsageDetail_20' ) start [2025-07-29 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15562486', 'tblTempUsageDetail_20' ) end [2025-07-29 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-29 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-29 23:25:26] Production.INFO: ==26099== Releasing lock... [2025-07-29 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-29 23:25:26] Production.INFO: 36.25 MB #Memory Used#