[2025-06-21 00:25:04] Production.INFO: next invoice date [2025-06-21 00:25:04] Production.INFO: 2025-07-21 [2025-06-21 00:25:04] Production.INFO: getdaysdiff [2025-06-21 00:25:04] Production.INFO: +30 [2025-06-21 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (18,19,1,30,30,'RMScheduler',2025-06-21 00:25:04,1,0,,,0) [2025-06-21 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 21:25:05 [end_date_ymd] => 2025-06-21 00:25:05 [RateCDR] => 1 ) [2025-06-21 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-06-20 21:25:05' and `end` < '2025-06-21 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-06-21 00:25:17] Production.INFO: count ==726 [2025-06-21 00:25:18] Production.ERROR: pbx CDR StartTime 2025-06-20 21:25:05 - End Time 2025-06-21 00:25:05 [2025-06-21 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15331579', 'tblTempUsageDetail_20' ) start [2025-06-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15331579', 'tblTempUsageDetail_20' ) end [2025-06-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15331579', 'tblTempVendorCDR_20' ) start [2025-06-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15331579', 'tblTempVendorCDR_20' ) end [2025-06-21 00:25:18] Production.INFO: ProcessCDR(1,15331579,1,1,2) [2025-06-21 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15331579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15331579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15331579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15331579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15331579', 'tblTempUsageDetail_20' ) start [2025-06-21 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15331579', 'tblTempUsageDetail_20' ) end [2025-06-21 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-21 00:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-21 00:25:26] Production.INFO: ==16224== Releasing lock... [2025-06-21 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 00:25:26] Production.INFO: 38.25 MB #Memory Used# [2025-06-21 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 22:25:05 [end_date_ymd] => 2025-06-21 01:25:05 [RateCDR] => 1 ) [2025-06-21 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-06-20 22:25:05' and `end` < '2025-06-21 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-06-21 01:25:17] Production.INFO: count ==817 [2025-06-21 01:25:18] Production.ERROR: pbx CDR StartTime 2025-06-20 22:25:05 - End Time 2025-06-21 01:25:05 [2025-06-21 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15331826', 'tblTempUsageDetail_20' ) start [2025-06-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15331826', 'tblTempUsageDetail_20' ) end [2025-06-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15331826', 'tblTempVendorCDR_20' ) start [2025-06-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15331826', 'tblTempVendorCDR_20' ) end [2025-06-21 01:25:18] Production.INFO: ProcessCDR(1,15331826,1,1,2) [2025-06-21 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15331826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15331826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15331826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15331826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15331826', 'tblTempUsageDetail_20' ) start [2025-06-21 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15331826', 'tblTempUsageDetail_20' ) end [2025-06-21 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-21 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-21 01:25:25] Production.INFO: ==20473== Releasing lock... [2025-06-21 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 01:25:25] Production.INFO: 34.75 MB #Memory Used# [2025-06-21 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-20 23:25:06 [end_date_ymd] => 2025-06-21 02:25:06 [RateCDR] => 1 ) [2025-06-21 02:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-20 23:25:06' and `end` < '2025-06-21 02:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 02:25:19] Production.INFO: count ==871 [2025-06-21 02:25:20] Production.ERROR: pbx CDR StartTime 2025-06-20 23:25:06 - End Time 2025-06-21 02:25:06 [2025-06-21 02:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15332073', 'tblTempUsageDetail_20' ) start [2025-06-21 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15332073', 'tblTempUsageDetail_20' ) end [2025-06-21 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15332073', 'tblTempVendorCDR_20' ) start [2025-06-21 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15332073', 'tblTempVendorCDR_20' ) end [2025-06-21 02:25:20] Production.INFO: ProcessCDR(1,15332073,1,1,2) [2025-06-21 02:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15332073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15332073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15332073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15332073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15332073', 'tblTempUsageDetail_20' ) start [2025-06-21 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15332073', 'tblTempUsageDetail_20' ) end [2025-06-21 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-21 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-21 02:25:26] Production.INFO: ==24791== Releasing lock... [2025-06-21 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 02:25:26] Production.INFO: 34.5 MB #Memory Used# [2025-06-21 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 00:25:05 [end_date_ymd] => 2025-06-21 03:25:05 [RateCDR] => 1 ) [2025-06-21 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 00:25:05' and `end` < '2025-06-21 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 03:25:17] Production.INFO: count ==819 [2025-06-21 03:25:17] Production.ERROR: pbx CDR StartTime 2025-06-21 00:25:05 - End Time 2025-06-21 03:25:05 [2025-06-21 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15332320', 'tblTempUsageDetail_20' ) start [2025-06-21 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15332320', 'tblTempUsageDetail_20' ) end [2025-06-21 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15332320', 'tblTempVendorCDR_20' ) start [2025-06-21 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15332320', 'tblTempVendorCDR_20' ) end [2025-06-21 03:25:18] Production.INFO: ProcessCDR(1,15332320,1,1,2) [2025-06-21 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15332320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15332320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15332320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15332320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15332320', 'tblTempUsageDetail_20' ) start [2025-06-21 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15332320', 'tblTempUsageDetail_20' ) end [2025-06-21 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-21 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-21 03:25:23] Production.INFO: ==29197== Releasing lock... [2025-06-21 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 03:25:23] Production.INFO: 34.25 MB #Memory Used# [2025-06-21 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 01:25:05 [end_date_ymd] => 2025-06-21 04:25:05 [RateCDR] => 1 ) [2025-06-21 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 01:25:05' and `end` < '2025-06-21 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 04:25:17] Production.INFO: count ==644 [2025-06-21 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-21 01:25:05 - End Time 2025-06-21 04:25:05 [2025-06-21 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15332568', 'tblTempUsageDetail_20' ) start [2025-06-21 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15332568', 'tblTempUsageDetail_20' ) end [2025-06-21 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15332568', 'tblTempVendorCDR_20' ) start [2025-06-21 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15332568', 'tblTempVendorCDR_20' ) end [2025-06-21 04:25:18] Production.INFO: ProcessCDR(1,15332568,1,1,2) [2025-06-21 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15332568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15332568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15332568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15332568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15332568', 'tblTempUsageDetail_20' ) start [2025-06-21 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15332568', 'tblTempUsageDetail_20' ) end [2025-06-21 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-21 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-21 04:25:24] Production.INFO: ==1135== Releasing lock... [2025-06-21 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 04:25:24] Production.INFO: 33.25 MB #Memory Used# [2025-06-21 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 02:25:05 [end_date_ymd] => 2025-06-21 05:25:05 [RateCDR] => 1 ) [2025-06-21 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-06-21 02:25:05' and `end` < '2025-06-21 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-06-21 05:25:17] Production.INFO: count ==432 [2025-06-21 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-21 02:25:05 - End Time 2025-06-21 05:25:05 [2025-06-21 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15332816', 'tblTempUsageDetail_20' ) start [2025-06-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15332816', 'tblTempUsageDetail_20' ) end [2025-06-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15332816', 'tblTempVendorCDR_20' ) start [2025-06-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15332816', 'tblTempVendorCDR_20' ) end [2025-06-21 05:25:17] Production.INFO: ProcessCDR(1,15332816,1,1,2) [2025-06-21 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15332816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15332816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15332816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15332816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15332816', 'tblTempUsageDetail_20' ) start [2025-06-21 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15332816', 'tblTempUsageDetail_20' ) end [2025-06-21 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-21 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-21 05:25:23] Production.INFO: ==5551== Releasing lock... [2025-06-21 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 05:25:23] Production.INFO: 32 MB #Memory Used# [2025-06-21 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 03:25:05 [end_date_ymd] => 2025-06-21 06:25:05 [RateCDR] => 1 ) [2025-06-21 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 03:25:05' and `end` < '2025-06-21 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 06:25:17] Production.INFO: count ==259 [2025-06-21 06:25:17] Production.ERROR: pbx CDR StartTime 2025-06-21 03:25:05 - End Time 2025-06-21 06:25:05 [2025-06-21 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15333063', 'tblTempUsageDetail_20' ) start [2025-06-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15333063', 'tblTempUsageDetail_20' ) end [2025-06-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15333063', 'tblTempVendorCDR_20' ) start [2025-06-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15333063', 'tblTempVendorCDR_20' ) end [2025-06-21 06:25:17] Production.INFO: ProcessCDR(1,15333063,1,1,2) [2025-06-21 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15333063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15333063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15333063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15333063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15333063', 'tblTempUsageDetail_20' ) start [2025-06-21 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15333063', 'tblTempUsageDetail_20' ) end [2025-06-21 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-21 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-21 06:25:23] Production.INFO: ==9810== Releasing lock... [2025-06-21 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 06:25:23] Production.INFO: 30.5 MB #Memory Used# [2025-06-21 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 04:25:05 [end_date_ymd] => 2025-06-21 07:25:05 [RateCDR] => 1 ) [2025-06-21 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 04:25:05' and `end` < '2025-06-21 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 07:25:17] Production.INFO: count ==121 [2025-06-21 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-21 04:25:05 - End Time 2025-06-21 07:25:05 [2025-06-21 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15333310', 'tblTempUsageDetail_20' ) start [2025-06-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15333310', 'tblTempUsageDetail_20' ) end [2025-06-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15333310', 'tblTempVendorCDR_20' ) start [2025-06-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15333310', 'tblTempVendorCDR_20' ) end [2025-06-21 07:25:17] Production.INFO: ProcessCDR(1,15333310,1,1,2) [2025-06-21 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15333310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15333310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15333310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15333310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15333310', 'tblTempUsageDetail_20' ) start [2025-06-21 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15333310', 'tblTempUsageDetail_20' ) end [2025-06-21 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-21 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-21 07:25:24] Production.INFO: ==14267== Releasing lock... [2025-06-21 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 07:25:24] Production.INFO: 29 MB #Memory Used# [2025-06-21 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 05:25:05 [end_date_ymd] => 2025-06-21 08:25:05 [RateCDR] => 1 ) [2025-06-21 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 05:25:05' and `end` < '2025-06-21 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 08:25:17] Production.INFO: count ==147 [2025-06-21 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-21 05:25:05 - End Time 2025-06-21 08:25:05 [2025-06-21 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15333557', 'tblTempUsageDetail_20' ) start [2025-06-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15333557', 'tblTempUsageDetail_20' ) end [2025-06-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15333557', 'tblTempVendorCDR_20' ) start [2025-06-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15333557', 'tblTempVendorCDR_20' ) end [2025-06-21 08:25:17] Production.INFO: ProcessCDR(1,15333557,1,1,2) [2025-06-21 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15333557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15333557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15333557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15333557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15333557', 'tblTempUsageDetail_20' ) start [2025-06-21 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15333557', 'tblTempUsageDetail_20' ) end [2025-06-21 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-21 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-21 08:25:24] Production.INFO: ==19118== Releasing lock... [2025-06-21 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 08:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-06-21 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 06:25:05 [end_date_ymd] => 2025-06-21 09:25:05 [RateCDR] => 1 ) [2025-06-21 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 06:25:05' and `end` < '2025-06-21 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 09:25:17] Production.INFO: count ==686 [2025-06-21 09:25:17] Production.ERROR: pbx CDR StartTime 2025-06-21 06:25:05 - End Time 2025-06-21 09:25:05 [2025-06-21 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15333804', 'tblTempUsageDetail_20' ) start [2025-06-21 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15333804', 'tblTempUsageDetail_20' ) end [2025-06-21 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15333804', 'tblTempVendorCDR_20' ) start [2025-06-21 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15333804', 'tblTempVendorCDR_20' ) end [2025-06-21 09:25:17] Production.INFO: ProcessCDR(1,15333804,1,1,2) [2025-06-21 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15333804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15333804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15333804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15333804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15333804', 'tblTempUsageDetail_20' ) start [2025-06-21 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15333804', 'tblTempUsageDetail_20' ) end [2025-06-21 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-21 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-21 09:25:24] Production.INFO: ==23472== Releasing lock... [2025-06-21 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 09:25:24] Production.INFO: 33.75 MB #Memory Used# [2025-06-21 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 07:25:04 [end_date_ymd] => 2025-06-21 10:25:04 [RateCDR] => 1 ) [2025-06-21 10:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 07:25:04' and `end` < '2025-06-21 10:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 10:25:17] Production.INFO: count ==1158 [2025-06-21 10:25:17] Production.ERROR: pbx CDR StartTime 2025-06-21 07:25:04 - End Time 2025-06-21 10:25:04 [2025-06-21 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15334051', 'tblTempUsageDetail_20' ) start [2025-06-21 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15334051', 'tblTempUsageDetail_20' ) end [2025-06-21 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15334051', 'tblTempVendorCDR_20' ) start [2025-06-21 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15334051', 'tblTempVendorCDR_20' ) end [2025-06-21 10:25:17] Production.INFO: ProcessCDR(1,15334051,1,1,2) [2025-06-21 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15334051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15334051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15334051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15334051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15334051', 'tblTempUsageDetail_20' ) start [2025-06-21 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15334051', 'tblTempUsageDetail_20' ) end [2025-06-21 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-21 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-21 10:25:24] Production.INFO: ==28367== Releasing lock... [2025-06-21 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 10:25:24] Production.INFO: 37.5 MB #Memory Used# [2025-06-21 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 08:25:05 [end_date_ymd] => 2025-06-21 11:25:05 [RateCDR] => 1 ) [2025-06-21 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 08:25:05' and `end` < '2025-06-21 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 11:25:17] Production.INFO: count ==1699 [2025-06-21 11:25:18] Production.ERROR: pbx CDR StartTime 2025-06-21 08:25:05 - End Time 2025-06-21 11:25:05 [2025-06-21 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15334298', 'tblTempUsageDetail_20' ) start [2025-06-21 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15334298', 'tblTempUsageDetail_20' ) end [2025-06-21 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15334298', 'tblTempVendorCDR_20' ) start [2025-06-21 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15334298', 'tblTempVendorCDR_20' ) end [2025-06-21 11:25:18] Production.INFO: ProcessCDR(1,15334298,1,1,2) [2025-06-21 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15334298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15334298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15334298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15334298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15334298', 'tblTempUsageDetail_20' ) start [2025-06-21 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15334298', 'tblTempUsageDetail_20' ) end [2025-06-21 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-21 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-21 11:25:26] Production.INFO: ==490== Releasing lock... [2025-06-21 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 11:25:26] Production.INFO: 41.25 MB #Memory Used# [2025-06-21 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 09:25:06 [end_date_ymd] => 2025-06-21 12:25:06 [RateCDR] => 1 ) [2025-06-21 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-06-21 09:25:06' and `end` < '2025-06-21 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-06-21 12:25:18] Production.INFO: count ==1840 [2025-06-21 12:25:19] Production.ERROR: pbx CDR StartTime 2025-06-21 09:25:06 - End Time 2025-06-21 12:25:06 [2025-06-21 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15334545', 'tblTempUsageDetail_20' ) start [2025-06-21 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15334545', 'tblTempUsageDetail_20' ) end [2025-06-21 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15334545', 'tblTempVendorCDR_20' ) start [2025-06-21 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15334545', 'tblTempVendorCDR_20' ) end [2025-06-21 12:25:19] Production.INFO: ProcessCDR(1,15334545,1,1,2) [2025-06-21 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15334545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15334545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15334545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15334545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15334545', 'tblTempUsageDetail_20' ) start [2025-06-21 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15334545', 'tblTempUsageDetail_20' ) end [2025-06-21 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-21 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-21 12:25:26] Production.INFO: ==6513== Releasing lock... [2025-06-21 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 12:25:26] Production.INFO: 42 MB #Memory Used# [2025-06-21 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 10:25:05 [end_date_ymd] => 2025-06-21 13:25:05 [RateCDR] => 1 ) [2025-06-21 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 10:25:05' and `end` < '2025-06-21 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 13:25:18] Production.INFO: count ==1941 [2025-06-21 13:25:18] Production.ERROR: pbx CDR StartTime 2025-06-21 10:25:05 - End Time 2025-06-21 13:25:05 [2025-06-21 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15334792', 'tblTempUsageDetail_20' ) start [2025-06-21 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15334792', 'tblTempUsageDetail_20' ) end [2025-06-21 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15334792', 'tblTempVendorCDR_20' ) start [2025-06-21 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15334792', 'tblTempVendorCDR_20' ) end [2025-06-21 13:25:18] Production.INFO: ProcessCDR(1,15334792,1,1,2) [2025-06-21 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15334792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15334792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15334792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15334792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15334792', 'tblTempUsageDetail_20' ) start [2025-06-21 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15334792', 'tblTempUsageDetail_20' ) end [2025-06-21 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-21 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-21 13:25:26] Production.INFO: ==12934== Releasing lock... [2025-06-21 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 13:25:26] Production.INFO: 43 MB #Memory Used# [2025-06-21 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 11:25:05 [end_date_ymd] => 2025-06-21 14:25:05 [RateCDR] => 1 ) [2025-06-21 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 11:25:05' and `end` < '2025-06-21 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 14:25:17] Production.INFO: count ==2088 [2025-06-21 14:25:18] Production.ERROR: pbx CDR StartTime 2025-06-21 11:25:05 - End Time 2025-06-21 14:25:05 [2025-06-21 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15335039', 'tblTempUsageDetail_20' ) start [2025-06-21 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15335039', 'tblTempUsageDetail_20' ) end [2025-06-21 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15335039', 'tblTempVendorCDR_20' ) start [2025-06-21 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15335039', 'tblTempVendorCDR_20' ) end [2025-06-21 14:25:18] Production.INFO: ProcessCDR(1,15335039,1,1,2) [2025-06-21 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15335039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15335039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15335039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15335039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15335039', 'tblTempUsageDetail_20' ) start [2025-06-21 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15335039', 'tblTempUsageDetail_20' ) end [2025-06-21 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-21 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-21 14:25:26] Production.INFO: ==18294== Releasing lock... [2025-06-21 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 14:25:26] Production.INFO: 43.75 MB #Memory Used# [2025-06-21 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 12:25:05 [end_date_ymd] => 2025-06-21 15:25:05 [RateCDR] => 1 ) [2025-06-21 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 12:25:05' and `end` < '2025-06-21 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 15:25:17] Production.INFO: count ==1961 [2025-06-21 15:25:18] Production.ERROR: pbx CDR StartTime 2025-06-21 12:25:05 - End Time 2025-06-21 15:25:05 [2025-06-21 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15335286', 'tblTempUsageDetail_20' ) start [2025-06-21 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15335286', 'tblTempUsageDetail_20' ) end [2025-06-21 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15335286', 'tblTempVendorCDR_20' ) start [2025-06-21 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15335286', 'tblTempVendorCDR_20' ) end [2025-06-21 15:25:18] Production.INFO: ProcessCDR(1,15335286,1,1,2) [2025-06-21 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15335286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15335286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15335286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15335286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15335286', 'tblTempUsageDetail_20' ) start [2025-06-21 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15335286', 'tblTempUsageDetail_20' ) end [2025-06-21 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-21 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-21 15:25:25] Production.INFO: ==23216== Releasing lock... [2025-06-21 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 15:25:25] Production.INFO: 42.75 MB #Memory Used# [2025-06-21 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 13:25:05 [end_date_ymd] => 2025-06-21 16:25:05 [RateCDR] => 1 ) [2025-06-21 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 13:25:05' and `end` < '2025-06-21 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 16:25:18] Production.INFO: count ==1781 [2025-06-21 16:25:18] Production.ERROR: pbx CDR StartTime 2025-06-21 13:25:05 - End Time 2025-06-21 16:25:05 [2025-06-21 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15335533', 'tblTempUsageDetail_20' ) start [2025-06-21 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15335533', 'tblTempUsageDetail_20' ) end [2025-06-21 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15335533', 'tblTempVendorCDR_20' ) start [2025-06-21 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15335533', 'tblTempVendorCDR_20' ) end [2025-06-21 16:25:18] Production.INFO: ProcessCDR(1,15335533,1,1,2) [2025-06-21 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15335533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15335533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15335533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 16:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15335533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15335533', 'tblTempUsageDetail_20' ) start [2025-06-21 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15335533', 'tblTempUsageDetail_20' ) end [2025-06-21 16:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-21 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-21 16:25:26] Production.INFO: ==27543== Releasing lock... [2025-06-21 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 16:25:26] Production.INFO: 41.5 MB #Memory Used# [2025-06-21 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 14:25:05 [end_date_ymd] => 2025-06-21 17:25:05 [RateCDR] => 1 ) [2025-06-21 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 14:25:05' and `end` < '2025-06-21 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 17:25:18] Production.INFO: count ==1832 [2025-06-21 17:25:19] Production.ERROR: pbx CDR StartTime 2025-06-21 14:25:05 - End Time 2025-06-21 17:25:05 [2025-06-21 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15335780', 'tblTempUsageDetail_20' ) start [2025-06-21 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15335780', 'tblTempUsageDetail_20' ) end [2025-06-21 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15335780', 'tblTempVendorCDR_20' ) start [2025-06-21 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15335780', 'tblTempVendorCDR_20' ) end [2025-06-21 17:25:19] Production.INFO: ProcessCDR(1,15335780,1,1,2) [2025-06-21 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15335780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15335780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15335780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15335780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15335780', 'tblTempUsageDetail_20' ) start [2025-06-21 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15335780', 'tblTempUsageDetail_20' ) end [2025-06-21 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-21 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-21 17:25:28] Production.INFO: ==32018== Releasing lock... [2025-06-21 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 17:25:28] Production.INFO: 42.5 MB #Memory Used# [2025-06-21 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 15:25:05 [end_date_ymd] => 2025-06-21 18:25:05 [RateCDR] => 1 ) [2025-06-21 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 15:25:05' and `end` < '2025-06-21 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 18:25:17] Production.INFO: count ==1958 [2025-06-21 18:25:18] Production.ERROR: pbx CDR StartTime 2025-06-21 15:25:05 - End Time 2025-06-21 18:25:05 [2025-06-21 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15336027', 'tblTempUsageDetail_20' ) start [2025-06-21 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15336027', 'tblTempUsageDetail_20' ) end [2025-06-21 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15336027', 'tblTempVendorCDR_20' ) start [2025-06-21 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15336027', 'tblTempVendorCDR_20' ) end [2025-06-21 18:25:18] Production.INFO: ProcessCDR(1,15336027,1,1,2) [2025-06-21 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15336027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15336027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15336027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15336027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15336027', 'tblTempUsageDetail_20' ) start [2025-06-21 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15336027', 'tblTempUsageDetail_20' ) end [2025-06-21 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-21 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-21 18:25:26] Production.INFO: ==4024== Releasing lock... [2025-06-21 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 18:25:26] Production.INFO: 43 MB #Memory Used# [2025-06-21 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 16:25:05 [end_date_ymd] => 2025-06-21 19:25:05 [RateCDR] => 1 ) [2025-06-21 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 16:25:05' and `end` < '2025-06-21 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 19:25:17] Production.INFO: count ==2034 [2025-06-21 19:25:18] Production.ERROR: pbx CDR StartTime 2025-06-21 16:25:05 - End Time 2025-06-21 19:25:05 [2025-06-21 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15336271', 'tblTempUsageDetail_20' ) start [2025-06-21 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15336271', 'tblTempUsageDetail_20' ) end [2025-06-21 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15336271', 'tblTempVendorCDR_20' ) start [2025-06-21 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15336271', 'tblTempVendorCDR_20' ) end [2025-06-21 19:25:18] Production.INFO: ProcessCDR(1,15336271,1,1,2) [2025-06-21 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15336271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15336271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15336271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15336271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15336271', 'tblTempUsageDetail_20' ) start [2025-06-21 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15336271', 'tblTempUsageDetail_20' ) end [2025-06-21 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-21 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-21 19:25:25] Production.INFO: ==8310== Releasing lock... [2025-06-21 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 19:25:25] Production.INFO: 43.5 MB #Memory Used# [2025-06-21 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 17:25:06 [end_date_ymd] => 2025-06-21 20:25:06 [RateCDR] => 1 ) [2025-06-21 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-06-21 17:25:06' and `end` < '2025-06-21 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-06-21 20:25:18] Production.INFO: count ==1847 [2025-06-21 20:25:19] Production.ERROR: pbx CDR StartTime 2025-06-21 17:25:06 - End Time 2025-06-21 20:25:06 [2025-06-21 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15336518', 'tblTempUsageDetail_20' ) start [2025-06-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15336518', 'tblTempUsageDetail_20' ) end [2025-06-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15336518', 'tblTempVendorCDR_20' ) start [2025-06-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15336518', 'tblTempVendorCDR_20' ) end [2025-06-21 20:25:19] Production.INFO: ProcessCDR(1,15336518,1,1,2) [2025-06-21 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15336518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15336518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15336518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15336518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15336518', 'tblTempUsageDetail_20' ) start [2025-06-21 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15336518', 'tblTempUsageDetail_20' ) end [2025-06-21 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-21 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-21 20:25:26] Production.INFO: ==12543== Releasing lock... [2025-06-21 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 20:25:26] Production.INFO: 42 MB #Memory Used# [2025-06-21 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 18:25:05 [end_date_ymd] => 2025-06-21 21:25:05 [RateCDR] => 1 ) [2025-06-21 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-06-21 18:25:05' and `end` < '2025-06-21 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-06-21 21:25:17] Production.INFO: count ==1585 [2025-06-21 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-21 18:25:05 - End Time 2025-06-21 21:25:05 [2025-06-21 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15336765', 'tblTempUsageDetail_20' ) start [2025-06-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15336765', 'tblTempUsageDetail_20' ) end [2025-06-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15336765', 'tblTempVendorCDR_20' ) start [2025-06-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15336765', 'tblTempVendorCDR_20' ) end [2025-06-21 21:25:18] Production.INFO: ProcessCDR(1,15336765,1,1,2) [2025-06-21 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15336765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15336765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15336765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15336765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15336765', 'tblTempUsageDetail_20' ) start [2025-06-21 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15336765', 'tblTempUsageDetail_20' ) end [2025-06-21 21:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-21 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-21 21:25:25] Production.INFO: ==16854== Releasing lock... [2025-06-21 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 21:25:25] Production.INFO: 40 MB #Memory Used# [2025-06-21 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 19:25:05 [end_date_ymd] => 2025-06-21 22:25:05 [RateCDR] => 1 ) [2025-06-21 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 19:25:05' and `end` < '2025-06-21 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 22:25:17] Production.INFO: count ==1467 [2025-06-21 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-21 19:25:05 - End Time 2025-06-21 22:25:05 [2025-06-21 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15337012', 'tblTempUsageDetail_20' ) start [2025-06-21 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15337012', 'tblTempUsageDetail_20' ) end [2025-06-21 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15337012', 'tblTempVendorCDR_20' ) start [2025-06-21 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15337012', 'tblTempVendorCDR_20' ) end [2025-06-21 22:25:18] Production.INFO: ProcessCDR(1,15337012,1,1,2) [2025-06-21 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15337012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15337012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15337012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15337012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15337012', 'tblTempUsageDetail_20' ) start [2025-06-21 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15337012', 'tblTempUsageDetail_20' ) end [2025-06-21 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-21 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-21 22:25:25] Production.INFO: ==21217== Releasing lock... [2025-06-21 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 22:25:25] Production.INFO: 39.25 MB #Memory Used# [2025-06-21 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 20:25:05 [end_date_ymd] => 2025-06-21 23:25:05 [RateCDR] => 1 ) [2025-06-21 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 20:25:05' and `end` < '2025-06-21 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-21 23:25:17] Production.INFO: count ==1191 [2025-06-21 23:25:18] Production.ERROR: pbx CDR StartTime 2025-06-21 20:25:05 - End Time 2025-06-21 23:25:05 [2025-06-21 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15337259', 'tblTempUsageDetail_20' ) start [2025-06-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15337259', 'tblTempUsageDetail_20' ) end [2025-06-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15337259', 'tblTempVendorCDR_20' ) start [2025-06-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15337259', 'tblTempVendorCDR_20' ) end [2025-06-21 23:25:18] Production.INFO: ProcessCDR(1,15337259,1,1,2) [2025-06-21 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15337259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15337259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-21 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15337259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15337259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-21 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15337259', 'tblTempUsageDetail_20' ) start [2025-06-21 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15337259', 'tblTempUsageDetail_20' ) end [2025-06-21 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-21 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-21 23:25:24] Production.INFO: ==25606== Releasing lock... [2025-06-21 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-21 23:25:24] Production.INFO: 37 MB #Memory Used#