[2025-07-19 00:25:04] Production.INFO: next invoice date [2025-07-19 00:25:04] Production.INFO: 2025-08-19 [2025-07-19 00:25:04] Production.INFO: getdaysdiff [2025-07-19 00:25:04] Production.INFO: +31 [2025-07-19 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (108,15,1,31,31,'RMScheduler',2025-07-19 00:25:04,1,0,,,0) [2025-07-19 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 21:25:05 [end_date_ymd] => 2025-07-19 00:25:05 [RateCDR] => 1 ) [2025-07-19 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-18 21:25:05' and `end` < '2025-07-19 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-19 00:25:18] Production.INFO: count ==747 [2025-07-19 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-18 21:25:05 - End Time 2025-07-19 00:25:05 [2025-07-19 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15497539', 'tblTempUsageDetail_20' ) start [2025-07-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15497539', 'tblTempUsageDetail_20' ) end [2025-07-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15497539', 'tblTempVendorCDR_20' ) start [2025-07-19 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15497539', 'tblTempVendorCDR_20' ) end [2025-07-19 00:25:18] Production.INFO: ProcessCDR(1,15497539,1,1,2) [2025-07-19 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15497539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15497539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15497539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15497539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15497539', 'tblTempUsageDetail_20' ) start [2025-07-19 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15497539', 'tblTempUsageDetail_20' ) end [2025-07-19 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-19 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-19 00:25:27] Production.INFO: ==12373== Releasing lock... [2025-07-19 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 00:25:27] Production.INFO: 38 MB #Memory Used# [2025-07-19 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 22:25:05 [end_date_ymd] => 2025-07-19 01:25:05 [RateCDR] => 1 ) [2025-07-19 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-18 22:25:05' and `end` < '2025-07-19 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-19 01:25:17] Production.INFO: count ==791 [2025-07-19 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-18 22:25:05 - End Time 2025-07-19 01:25:05 [2025-07-19 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15497786', 'tblTempUsageDetail_20' ) start [2025-07-19 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15497786', 'tblTempUsageDetail_20' ) end [2025-07-19 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15497786', 'tblTempVendorCDR_20' ) start [2025-07-19 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15497786', 'tblTempVendorCDR_20' ) end [2025-07-19 01:25:18] Production.INFO: ProcessCDR(1,15497786,1,1,2) [2025-07-19 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15497786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15497786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15497786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15497786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15497786', 'tblTempUsageDetail_20' ) start [2025-07-19 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15497786', 'tblTempUsageDetail_20' ) end [2025-07-19 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-19 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-19 01:25:25] Production.INFO: ==16753== Releasing lock... [2025-07-19 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 01:25:25] Production.INFO: 34 MB #Memory Used# [2025-07-19 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-18 23:25:05 [end_date_ymd] => 2025-07-19 02:25:05 [RateCDR] => 1 ) [2025-07-19 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-18 23:25:05' and `end` < '2025-07-19 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-19 02:25:18] Production.INFO: count ==692 [2025-07-19 02:25:18] Production.ERROR: pbx CDR StartTime 2025-07-18 23:25:05 - End Time 2025-07-19 02:25:05 [2025-07-19 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15498033', 'tblTempUsageDetail_20' ) start [2025-07-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15498033', 'tblTempUsageDetail_20' ) end [2025-07-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15498033', 'tblTempVendorCDR_20' ) start [2025-07-19 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15498033', 'tblTempVendorCDR_20' ) end [2025-07-19 02:25:18] Production.INFO: ProcessCDR(1,15498033,1,1,2) [2025-07-19 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15498033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15498033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15498033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15498033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15498033', 'tblTempUsageDetail_20' ) start [2025-07-19 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15498033', 'tblTempUsageDetail_20' ) end [2025-07-19 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-19 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-19 02:25:25] Production.INFO: ==21389== Releasing lock... [2025-07-19 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 02:25:25] Production.INFO: 33.5 MB #Memory Used# [2025-07-19 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 00:25:05 [end_date_ymd] => 2025-07-19 03:25:05 [RateCDR] => 1 ) [2025-07-19 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-19 00:25:05' and `end` < '2025-07-19 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-19 03:25:17] Production.INFO: count ==636 [2025-07-19 03:25:18] Production.ERROR: pbx CDR StartTime 2025-07-19 00:25:05 - End Time 2025-07-19 03:25:05 [2025-07-19 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15498280', 'tblTempUsageDetail_20' ) start [2025-07-19 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15498280', 'tblTempUsageDetail_20' ) end [2025-07-19 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15498280', 'tblTempVendorCDR_20' ) start [2025-07-19 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15498280', 'tblTempVendorCDR_20' ) end [2025-07-19 03:25:18] Production.INFO: ProcessCDR(1,15498280,1,1,2) [2025-07-19 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15498280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15498280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15498280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15498280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15498280', 'tblTempUsageDetail_20' ) start [2025-07-19 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15498280', 'tblTempUsageDetail_20' ) end [2025-07-19 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-19 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-19 03:25:24] Production.INFO: ==26160== Releasing lock... [2025-07-19 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 03:25:24] Production.INFO: 33.5 MB #Memory Used# [2025-07-19 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 01:25:05 [end_date_ymd] => 2025-07-19 04:25:05 [RateCDR] => 1 ) [2025-07-19 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-19 01:25:05' and `end` < '2025-07-19 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-19 04:25:18] Production.INFO: count ==424 [2025-07-19 04:25:18] Production.ERROR: pbx CDR StartTime 2025-07-19 01:25:05 - End Time 2025-07-19 04:25:05 [2025-07-19 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15498528', 'tblTempUsageDetail_20' ) start [2025-07-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15498528', 'tblTempUsageDetail_20' ) end [2025-07-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15498528', 'tblTempVendorCDR_20' ) start [2025-07-19 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15498528', 'tblTempVendorCDR_20' ) end [2025-07-19 04:25:18] Production.INFO: ProcessCDR(1,15498528,1,1,2) [2025-07-19 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15498528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15498528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15498528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15498528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15498528', 'tblTempUsageDetail_20' ) start [2025-07-19 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15498528', 'tblTempUsageDetail_20' ) end [2025-07-19 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-19 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-19 04:25:25] Production.INFO: ==30851== Releasing lock... [2025-07-19 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 04:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-07-19 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 02:25:05 [end_date_ymd] => 2025-07-19 05:25:05 [RateCDR] => 1 ) [2025-07-19 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-19 02:25:05' and `end` < '2025-07-19 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-19 05:25:17] Production.INFO: count ==310 [2025-07-19 05:25:17] Production.ERROR: pbx CDR StartTime 2025-07-19 02:25:05 - End Time 2025-07-19 05:25:05 [2025-07-19 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15498776', 'tblTempUsageDetail_20' ) start [2025-07-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15498776', 'tblTempUsageDetail_20' ) end [2025-07-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15498776', 'tblTempVendorCDR_20' ) start [2025-07-19 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15498776', 'tblTempVendorCDR_20' ) end [2025-07-19 05:25:17] Production.INFO: ProcessCDR(1,15498776,1,1,2) [2025-07-19 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15498776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15498776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15498776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15498776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15498776', 'tblTempUsageDetail_20' ) start [2025-07-19 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15498776', 'tblTempUsageDetail_20' ) end [2025-07-19 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-19 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-19 05:25:23] Production.INFO: ==3267== Releasing lock... [2025-07-19 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 05:25:23] Production.INFO: 30.75 MB #Memory Used# [2025-07-19 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 03:25:05 [end_date_ymd] => 2025-07-19 06:25:05 [RateCDR] => 1 ) [2025-07-19 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-19 03:25:05' and `end` < '2025-07-19 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-19 06:25:18] Production.INFO: count ==192 [2025-07-19 06:25:18] Production.ERROR: pbx CDR StartTime 2025-07-19 03:25:05 - End Time 2025-07-19 06:25:05 [2025-07-19 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15499023', 'tblTempUsageDetail_20' ) start [2025-07-19 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15499023', 'tblTempUsageDetail_20' ) end [2025-07-19 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15499023', 'tblTempVendorCDR_20' ) start [2025-07-19 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15499023', 'tblTempVendorCDR_20' ) end [2025-07-19 06:25:18] Production.INFO: ProcessCDR(1,15499023,1,1,2) [2025-07-19 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15499023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15499023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15499023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15499023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15499023', 'tblTempUsageDetail_20' ) start [2025-07-19 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15499023', 'tblTempUsageDetail_20' ) end [2025-07-19 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-19 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-19 06:25:25] Production.INFO: ==7714== Releasing lock... [2025-07-19 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 06:25:25] Production.INFO: 29.75 MB #Memory Used# [2025-07-19 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 04:25:05 [end_date_ymd] => 2025-07-19 07:25:05 [RateCDR] => 1 ) [2025-07-19 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-07-19 04:25:05' and `end` < '2025-07-19 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-07-19 07:25:17] Production.INFO: count ==151 [2025-07-19 07:25:17] Production.ERROR: pbx CDR StartTime 2025-07-19 04:25:05 - End Time 2025-07-19 07:25:05 [2025-07-19 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15499270', 'tblTempUsageDetail_20' ) start [2025-07-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15499270', 'tblTempUsageDetail_20' ) end [2025-07-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15499270', 'tblTempVendorCDR_20' ) start [2025-07-19 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15499270', 'tblTempVendorCDR_20' ) end [2025-07-19 07:25:17] Production.INFO: ProcessCDR(1,15499270,1,1,2) [2025-07-19 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15499270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15499270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15499270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15499270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15499270', 'tblTempUsageDetail_20' ) start [2025-07-19 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15499270', 'tblTempUsageDetail_20' ) end [2025-07-19 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-19 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-19 07:25:24] Production.INFO: ==12065== Releasing lock... [2025-07-19 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 07:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-07-19 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 05:25:05 [end_date_ymd] => 2025-07-19 08:25:05 [RateCDR] => 1 ) [2025-07-19 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-19 05:25:05' and `end` < '2025-07-19 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-19 08:25:17] Production.INFO: count ==151 [2025-07-19 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-19 05:25:05 - End Time 2025-07-19 08:25:05 [2025-07-19 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15499517', 'tblTempUsageDetail_20' ) start [2025-07-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15499517', 'tblTempUsageDetail_20' ) end [2025-07-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15499517', 'tblTempVendorCDR_20' ) start [2025-07-19 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15499517', 'tblTempVendorCDR_20' ) end [2025-07-19 08:25:17] Production.INFO: ProcessCDR(1,15499517,1,1,2) [2025-07-19 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15499517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15499517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15499517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15499517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15499517', 'tblTempUsageDetail_20' ) start [2025-07-19 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15499517', 'tblTempUsageDetail_20' ) end [2025-07-19 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-19 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-19 08:25:24] Production.INFO: ==16545== Releasing lock... [2025-07-19 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 08:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-07-19 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 06:25:05 [end_date_ymd] => 2025-07-19 09:25:05 [RateCDR] => 1 ) [2025-07-19 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-19 06:25:05' and `end` < '2025-07-19 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-19 09:25:18] Production.INFO: count ==620 [2025-07-19 09:25:18] Production.ERROR: pbx CDR StartTime 2025-07-19 06:25:05 - End Time 2025-07-19 09:25:05 [2025-07-19 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15499760', 'tblTempUsageDetail_20' ) start [2025-07-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15499760', 'tblTempUsageDetail_20' ) end [2025-07-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15499760', 'tblTempVendorCDR_20' ) start [2025-07-19 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15499760', 'tblTempVendorCDR_20' ) end [2025-07-19 09:25:18] Production.INFO: ProcessCDR(1,15499760,1,1,2) [2025-07-19 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15499760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15499760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15499760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15499760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15499760', 'tblTempUsageDetail_20' ) start [2025-07-19 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15499760', 'tblTempUsageDetail_20' ) end [2025-07-19 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-19 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-19 09:25:25] Production.INFO: ==21327== Releasing lock... [2025-07-19 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 09:25:25] Production.INFO: 33 MB #Memory Used# [2025-07-19 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 07:25:05 [end_date_ymd] => 2025-07-19 10:25:05 [RateCDR] => 1 ) [2025-07-19 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-07-19 07:25:05' and `end` < '2025-07-19 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-07-19 10:25:17] Production.INFO: count ==1184 [2025-07-19 10:25:18] Production.ERROR: pbx CDR StartTime 2025-07-19 07:25:05 - End Time 2025-07-19 10:25:05 [2025-07-19 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15500007', 'tblTempUsageDetail_20' ) start [2025-07-19 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15500007', 'tblTempUsageDetail_20' ) end [2025-07-19 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15500007', 'tblTempVendorCDR_20' ) start [2025-07-19 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15500007', 'tblTempVendorCDR_20' ) end [2025-07-19 10:25:18] Production.INFO: ProcessCDR(1,15500007,1,1,2) [2025-07-19 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15500007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15500007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15500007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15500007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15500007', 'tblTempUsageDetail_20' ) start [2025-07-19 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15500007', 'tblTempUsageDetail_20' ) end [2025-07-19 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-19 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-19 10:25:25] Production.INFO: ==25625== Releasing lock... [2025-07-19 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 10:25:25] Production.INFO: 37.25 MB #Memory Used# [2025-07-19 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 08:25:05 [end_date_ymd] => 2025-07-19 11:25:05 [RateCDR] => 1 ) [2025-07-19 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-19 08:25:05' and `end` < '2025-07-19 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-19 11:25:18] Production.INFO: count ==1711 [2025-07-19 11:25:18] Production.ERROR: pbx CDR StartTime 2025-07-19 08:25:05 - End Time 2025-07-19 11:25:05 [2025-07-19 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15500254', 'tblTempUsageDetail_20' ) start [2025-07-19 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15500254', 'tblTempUsageDetail_20' ) end [2025-07-19 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15500254', 'tblTempVendorCDR_20' ) start [2025-07-19 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15500254', 'tblTempVendorCDR_20' ) end [2025-07-19 11:25:18] Production.INFO: ProcessCDR(1,15500254,1,1,2) [2025-07-19 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15500254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15500254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15500254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15500254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15500254', 'tblTempUsageDetail_20' ) start [2025-07-19 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15500254', 'tblTempUsageDetail_20' ) end [2025-07-19 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-19 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-19 11:25:26] Production.INFO: ==29995== Releasing lock... [2025-07-19 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 11:25:26] Production.INFO: 41 MB #Memory Used# [2025-07-19 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 09:25:05 [end_date_ymd] => 2025-07-19 12:25:05 [RateCDR] => 1 ) [2025-07-19 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-07-19 09:25:05' and `end` < '2025-07-19 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-07-19 12:25:18] Production.INFO: count ==1804 [2025-07-19 12:25:19] Production.ERROR: pbx CDR StartTime 2025-07-19 09:25:05 - End Time 2025-07-19 12:25:05 [2025-07-19 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15500501', 'tblTempUsageDetail_20' ) start [2025-07-19 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15500501', 'tblTempUsageDetail_20' ) end [2025-07-19 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15500501', 'tblTempVendorCDR_20' ) start [2025-07-19 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15500501', 'tblTempVendorCDR_20' ) end [2025-07-19 12:25:19] Production.INFO: ProcessCDR(1,15500501,1,1,2) [2025-07-19 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15500501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15500501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15500501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15500501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15500501', 'tblTempUsageDetail_20' ) start [2025-07-19 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15500501', 'tblTempUsageDetail_20' ) end [2025-07-19 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-19 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-19 12:25:27] Production.INFO: ==1870== Releasing lock... [2025-07-19 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 12:25:27] Production.INFO: 41.5 MB #Memory Used# [2025-07-19 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 10:25:05 [end_date_ymd] => 2025-07-19 13:25:05 [RateCDR] => 1 ) [2025-07-19 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-19 10:25:05' and `end` < '2025-07-19 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-19 13:25:17] Production.INFO: count ==1835 [2025-07-19 13:25:18] Production.ERROR: pbx CDR StartTime 2025-07-19 10:25:05 - End Time 2025-07-19 13:25:05 [2025-07-19 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15500748', 'tblTempUsageDetail_20' ) start [2025-07-19 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15500748', 'tblTempUsageDetail_20' ) end [2025-07-19 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15500748', 'tblTempVendorCDR_20' ) start [2025-07-19 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15500748', 'tblTempVendorCDR_20' ) end [2025-07-19 13:25:18] Production.INFO: ProcessCDR(1,15500748,1,1,2) [2025-07-19 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15500748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15500748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15500748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15500748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15500748', 'tblTempUsageDetail_20' ) start [2025-07-19 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15500748', 'tblTempUsageDetail_20' ) end [2025-07-19 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-19 13:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-19 13:25:25] Production.INFO: ==6132== Releasing lock... [2025-07-19 13:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 13:25:25] Production.INFO: 42 MB #Memory Used# [2025-07-19 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 11:25:05 [end_date_ymd] => 2025-07-19 14:25:05 [RateCDR] => 1 ) [2025-07-19 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-19 11:25:05' and `end` < '2025-07-19 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-19 14:25:17] Production.INFO: count ==1817 [2025-07-19 14:25:18] Production.ERROR: pbx CDR StartTime 2025-07-19 11:25:05 - End Time 2025-07-19 14:25:05 [2025-07-19 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15500995', 'tblTempUsageDetail_20' ) start [2025-07-19 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15500995', 'tblTempUsageDetail_20' ) end [2025-07-19 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15500995', 'tblTempVendorCDR_20' ) start [2025-07-19 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15500995', 'tblTempVendorCDR_20' ) end [2025-07-19 14:25:18] Production.INFO: ProcessCDR(1,15500995,1,1,2) [2025-07-19 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15500995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15500995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15500995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15500995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15500995', 'tblTempUsageDetail_20' ) start [2025-07-19 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15500995', 'tblTempUsageDetail_20' ) end [2025-07-19 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-19 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-19 14:25:26] Production.INFO: ==10805== Releasing lock... [2025-07-19 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 14:25:26] Production.INFO: 42 MB #Memory Used# [2025-07-19 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 12:25:06 [end_date_ymd] => 2025-07-19 15:25:06 [RateCDR] => 1 ) [2025-07-19 15: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-19 12:25:06' and `end` < '2025-07-19 15: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-19 15:25:18] Production.INFO: count ==1651 [2025-07-19 15:25:19] Production.ERROR: pbx CDR StartTime 2025-07-19 12:25:06 - End Time 2025-07-19 15:25:06 [2025-07-19 15:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15501242', 'tblTempUsageDetail_20' ) start [2025-07-19 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15501242', 'tblTempUsageDetail_20' ) end [2025-07-19 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15501242', 'tblTempVendorCDR_20' ) start [2025-07-19 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15501242', 'tblTempVendorCDR_20' ) end [2025-07-19 15:25:19] Production.INFO: ProcessCDR(1,15501242,1,1,2) [2025-07-19 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15501242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15501242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15501242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15501242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15501242', 'tblTempUsageDetail_20' ) start [2025-07-19 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15501242', 'tblTempUsageDetail_20' ) end [2025-07-19 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-19 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-19 15:25:27] Production.INFO: ==15324== Releasing lock... [2025-07-19 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 15:25:27] Production.INFO: 40.75 MB #Memory Used# [2025-07-19 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 13:25:05 [end_date_ymd] => 2025-07-19 16:25:05 [RateCDR] => 1 ) [2025-07-19 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-07-19 13:25:05' and `end` < '2025-07-19 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-07-19 16:25:18] Production.INFO: count ==1511 [2025-07-19 16:25:19] Production.ERROR: pbx CDR StartTime 2025-07-19 13:25:05 - End Time 2025-07-19 16:25:05 [2025-07-19 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15501489', 'tblTempUsageDetail_20' ) start [2025-07-19 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15501489', 'tblTempUsageDetail_20' ) end [2025-07-19 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15501489', 'tblTempVendorCDR_20' ) start [2025-07-19 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15501489', 'tblTempVendorCDR_20' ) end [2025-07-19 16:25:19] Production.INFO: ProcessCDR(1,15501489,1,1,2) [2025-07-19 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15501489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15501489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15501489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15501489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15501489', 'tblTempUsageDetail_20' ) start [2025-07-19 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15501489', 'tblTempUsageDetail_20' ) end [2025-07-19 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-19 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-19 16:25:27] Production.INFO: ==19709== Releasing lock... [2025-07-19 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 16:25:27] Production.INFO: 39.5 MB #Memory Used# [2025-07-19 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 14:25:06 [end_date_ymd] => 2025-07-19 17:25:06 [RateCDR] => 1 ) [2025-07-19 17: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-19 14:25:06' and `end` < '2025-07-19 17: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-19 17:25:18] Production.INFO: count ==1415 [2025-07-19 17:25:19] Production.ERROR: pbx CDR StartTime 2025-07-19 14:25:06 - End Time 2025-07-19 17:25:06 [2025-07-19 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15501736', 'tblTempUsageDetail_20' ) start [2025-07-19 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15501736', 'tblTempUsageDetail_20' ) end [2025-07-19 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15501736', 'tblTempVendorCDR_20' ) start [2025-07-19 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15501736', 'tblTempVendorCDR_20' ) end [2025-07-19 17:25:19] Production.INFO: ProcessCDR(1,15501736,1,1,2) [2025-07-19 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15501736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15501736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15501736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15501736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15501736', 'tblTempUsageDetail_20' ) start [2025-07-19 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15501736', 'tblTempUsageDetail_20' ) end [2025-07-19 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-19 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-19 17:25:27] Production.INFO: ==24113== Releasing lock... [2025-07-19 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 17:25:27] Production.INFO: 38.75 MB #Memory Used# [2025-07-19 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 15:25:05 [end_date_ymd] => 2025-07-19 18:25:05 [RateCDR] => 1 ) [2025-07-19 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-19 15:25:05' and `end` < '2025-07-19 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-19 18:25:18] Production.INFO: count ==1606 [2025-07-19 18:25:19] Production.ERROR: pbx CDR StartTime 2025-07-19 15:25:05 - End Time 2025-07-19 18:25:05 [2025-07-19 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15501983', 'tblTempUsageDetail_20' ) start [2025-07-19 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15501983', 'tblTempUsageDetail_20' ) end [2025-07-19 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15501983', 'tblTempVendorCDR_20' ) start [2025-07-19 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15501983', 'tblTempVendorCDR_20' ) end [2025-07-19 18:25:19] Production.INFO: ProcessCDR(1,15501983,1,1,2) [2025-07-19 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15501983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15501983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15501983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 18:25:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15501983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 18:25:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15501983', 'tblTempUsageDetail_20' ) start [2025-07-19 18:25:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15501983', 'tblTempUsageDetail_20' ) end [2025-07-19 18:25:52] Production.ERROR: pbx prc_insertCDR start [2025-07-19 18:25:53] Production.ERROR: pbx prc_insertCDR end [2025-07-19 18:25:54] Production.INFO: ==28676== Releasing lock... [2025-07-19 18:25:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 18:25:54] Production.INFO: 40.25 MB #Memory Used# [2025-07-19 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 16:25:05 [end_date_ymd] => 2025-07-19 19:25:05 [RateCDR] => 1 ) [2025-07-19 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-07-19 16:25:05' and `end` < '2025-07-19 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-07-19 19:25:18] Production.INFO: count ==1610 [2025-07-19 19:25:19] Production.ERROR: pbx CDR StartTime 2025-07-19 16:25:05 - End Time 2025-07-19 19:25:05 [2025-07-19 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15502227', 'tblTempUsageDetail_20' ) start [2025-07-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15502227', 'tblTempUsageDetail_20' ) end [2025-07-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15502227', 'tblTempVendorCDR_20' ) start [2025-07-19 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15502227', 'tblTempVendorCDR_20' ) end [2025-07-19 19:25:19] Production.INFO: ProcessCDR(1,15502227,1,1,2) [2025-07-19 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15502227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15502227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15502227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15502227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15502227', 'tblTempUsageDetail_20' ) start [2025-07-19 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15502227', 'tblTempUsageDetail_20' ) end [2025-07-19 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-19 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-19 19:25:26] Production.INFO: ==826== Releasing lock... [2025-07-19 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 19:25:26] Production.INFO: 40.25 MB #Memory Used# [2025-07-19 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 17:25:05 [end_date_ymd] => 2025-07-19 20:25:05 [RateCDR] => 1 ) [2025-07-19 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-07-19 17:25:05' and `end` < '2025-07-19 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-07-19 20:25:18] Production.INFO: count ==1483 [2025-07-19 20:25:18] Production.ERROR: pbx CDR StartTime 2025-07-19 17:25:05 - End Time 2025-07-19 20:25:05 [2025-07-19 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15502474', 'tblTempUsageDetail_20' ) start [2025-07-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15502474', 'tblTempUsageDetail_20' ) end [2025-07-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15502474', 'tblTempVendorCDR_20' ) start [2025-07-19 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15502474', 'tblTempVendorCDR_20' ) end [2025-07-19 20:25:18] Production.INFO: ProcessCDR(1,15502474,1,1,2) [2025-07-19 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15502474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15502474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15502474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15502474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15502474', 'tblTempUsageDetail_20' ) start [2025-07-19 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15502474', 'tblTempUsageDetail_20' ) end [2025-07-19 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-19 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-19 20:25:25] Production.INFO: ==5165== Releasing lock... [2025-07-19 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 20:25:25] Production.INFO: 39.25 MB #Memory Used# [2025-07-19 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 18:25:05 [end_date_ymd] => 2025-07-19 21:25:05 [RateCDR] => 1 ) [2025-07-19 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-19 18:25:05' and `end` < '2025-07-19 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-19 21:25:18] Production.INFO: count ==1274 [2025-07-19 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-19 18:25:05 - End Time 2025-07-19 21:25:05 [2025-07-19 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15502721', 'tblTempUsageDetail_20' ) start [2025-07-19 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15502721', 'tblTempUsageDetail_20' ) end [2025-07-19 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15502721', 'tblTempVendorCDR_20' ) start [2025-07-19 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15502721', 'tblTempVendorCDR_20' ) end [2025-07-19 21:25:18] Production.INFO: ProcessCDR(1,15502721,1,1,2) [2025-07-19 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15502721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15502721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15502721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15502721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15502721', 'tblTempUsageDetail_20' ) start [2025-07-19 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15502721', 'tblTempUsageDetail_20' ) end [2025-07-19 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-19 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-19 21:25:25] Production.INFO: ==10270== Releasing lock... [2025-07-19 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 21:25:25] Production.INFO: 38 MB #Memory Used# [2025-07-19 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 19:25:05 [end_date_ymd] => 2025-07-19 22:25:05 [RateCDR] => 1 ) [2025-07-19 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-19 19:25:05' and `end` < '2025-07-19 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-19 22:25:17] Production.INFO: count ==1198 [2025-07-19 22:25:17] Production.ERROR: pbx CDR StartTime 2025-07-19 19:25:05 - End Time 2025-07-19 22:25:05 [2025-07-19 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15502968', 'tblTempUsageDetail_20' ) start [2025-07-19 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15502968', 'tblTempUsageDetail_20' ) end [2025-07-19 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15502968', 'tblTempVendorCDR_20' ) start [2025-07-19 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15502968', 'tblTempVendorCDR_20' ) end [2025-07-19 22:25:17] Production.INFO: ProcessCDR(1,15502968,1,1,2) [2025-07-19 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15502968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15502968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15502968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15502968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15502968', 'tblTempUsageDetail_20' ) start [2025-07-19 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15502968', 'tblTempUsageDetail_20' ) end [2025-07-19 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-19 22:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-19 22:25:24] Production.INFO: ==15494== Releasing lock... [2025-07-19 22:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 22:25:24] Production.INFO: 37 MB #Memory Used# [2025-07-19 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-19 20:25:05 [end_date_ymd] => 2025-07-19 23:25:05 [RateCDR] => 1 ) [2025-07-19 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-07-19 20:25:05' and `end` < '2025-07-19 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-07-19 23:25:18] Production.INFO: count ==1097 [2025-07-19 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-19 20:25:05 - End Time 2025-07-19 23:25:05 [2025-07-19 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-19 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15503215', 'tblTempUsageDetail_20' ) start [2025-07-19 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15503215', 'tblTempUsageDetail_20' ) end [2025-07-19 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15503215', 'tblTempVendorCDR_20' ) start [2025-07-19 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15503215', 'tblTempVendorCDR_20' ) end [2025-07-19 23:25:18] Production.INFO: ProcessCDR(1,15503215,1,1,2) [2025-07-19 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15503215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15503215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-19 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15503215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15503215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-19 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15503215', 'tblTempUsageDetail_20' ) start [2025-07-19 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15503215', 'tblTempUsageDetail_20' ) end [2025-07-19 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-19 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-19 23:25:25] Production.INFO: ==20421== Releasing lock... [2025-07-19 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-19 23:25:25] Production.INFO: 36.75 MB #Memory Used#