[2025-07-31 00:25:04] Production.INFO: next invoice date [2025-07-31 00:25:04] Production.INFO: 2025-08-31 [2025-07-31 00:25:04] Production.INFO: getdaysdiff [2025-07-31 00:25:04] Production.INFO: +31 [2025-07-31 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (208,11,1,31,31,'RMScheduler',2025-07-31 00:25:04,0,0,,,0) [2025-07-31 00:25:04] Production.INFO: next invoice date [2025-07-31 00:25:04] Production.INFO: 2025-08-31 [2025-07-31 00:25:04] Production.INFO: getdaysdiff [2025-07-31 00:25:04] Production.INFO: +31 [2025-07-31 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (208,13,2,31,31,'RMScheduler',2025-07-31 00:25:04,0,0,,,0) [2025-07-31 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 21:25:05 [end_date_ymd] => 2025-07-31 00:25:05 [RateCDR] => 1 ) [2025-07-31 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-30 21:25:05' and `end` < '2025-07-31 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-31 00:25:17] Production.INFO: count ==651 [2025-07-31 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-30 21:25:05 - End Time 2025-07-31 00:25:05 [2025-07-31 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15568661', 'tblTempUsageDetail_20' ) start [2025-07-31 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15568661', 'tblTempUsageDetail_20' ) end [2025-07-31 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15568661', 'tblTempVendorCDR_20' ) start [2025-07-31 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15568661', 'tblTempVendorCDR_20' ) end [2025-07-31 00:25:18] Production.INFO: ProcessCDR(1,15568661,1,1,2) [2025-07-31 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15568661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15568661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15568661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15568661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15568661', 'tblTempUsageDetail_20' ) start [2025-07-31 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15568661', 'tblTempUsageDetail_20' ) end [2025-07-31 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-31 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-31 00:25:26] Production.INFO: ==29986== Releasing lock... [2025-07-31 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 00:25:26] Production.INFO: 37.5 MB #Memory Used# [2025-07-31 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 22:25:06 [end_date_ymd] => 2025-07-31 01:25:06 [RateCDR] => 1 ) [2025-07-31 01: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-30 22:25:06' and `end` < '2025-07-31 01: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-31 01:25:18] Production.INFO: count ==546 [2025-07-31 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-30 22:25:06 - End Time 2025-07-31 01:25:06 [2025-07-31 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15568908', 'tblTempUsageDetail_20' ) start [2025-07-31 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15568908', 'tblTempUsageDetail_20' ) end [2025-07-31 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15568908', 'tblTempVendorCDR_20' ) start [2025-07-31 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15568908', 'tblTempVendorCDR_20' ) end [2025-07-31 01:25:18] Production.INFO: ProcessCDR(1,15568908,1,1,2) [2025-07-31 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15568908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15568908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15568908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15568908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15568908', 'tblTempUsageDetail_20' ) start [2025-07-31 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15568908', 'tblTempUsageDetail_20' ) end [2025-07-31 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-31 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-31 01:25:25] Production.INFO: ==2317== Releasing lock... [2025-07-31 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 01:25:25] Production.INFO: 32.75 MB #Memory Used# [2025-07-31 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 23:25:05 [end_date_ymd] => 2025-07-31 02:25:05 [RateCDR] => 1 ) [2025-07-31 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-30 23:25:05' and `end` < '2025-07-31 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-31 02:25:17] Production.INFO: count ==544 [2025-07-31 02:25:17] Production.ERROR: pbx CDR StartTime 2025-07-30 23:25:05 - End Time 2025-07-31 02:25:05 [2025-07-31 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15569155', 'tblTempUsageDetail_20' ) start [2025-07-31 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15569155', 'tblTempUsageDetail_20' ) end [2025-07-31 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15569155', 'tblTempVendorCDR_20' ) start [2025-07-31 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15569155', 'tblTempVendorCDR_20' ) end [2025-07-31 02:25:17] Production.INFO: ProcessCDR(1,15569155,1,1,2) [2025-07-31 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15569155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15569155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15569155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15569155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15569155', 'tblTempUsageDetail_20' ) start [2025-07-31 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15569155', 'tblTempUsageDetail_20' ) end [2025-07-31 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-31 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-31 02:25:24] Production.INFO: ==6988== Releasing lock... [2025-07-31 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 02:25:24] Production.INFO: 32.75 MB #Memory Used# [2025-07-31 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 00:25:06 [end_date_ymd] => 2025-07-31 03:25:06 [RateCDR] => 1 ) [2025-07-31 03: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-31 00:25:06' and `end` < '2025-07-31 03: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-31 03:25:18] Production.INFO: count ==406 [2025-07-31 03:25:18] Production.ERROR: pbx CDR StartTime 2025-07-31 00:25:06 - End Time 2025-07-31 03:25:06 [2025-07-31 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15569402', 'tblTempUsageDetail_20' ) start [2025-07-31 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15569402', 'tblTempUsageDetail_20' ) end [2025-07-31 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15569402', 'tblTempVendorCDR_20' ) start [2025-07-31 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15569402', 'tblTempVendorCDR_20' ) end [2025-07-31 03:25:18] Production.INFO: ProcessCDR(1,15569402,1,1,2) [2025-07-31 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15569402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15569402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15569402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15569402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15569402', 'tblTempUsageDetail_20' ) start [2025-07-31 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15569402', 'tblTempUsageDetail_20' ) end [2025-07-31 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-31 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-31 03:25:24] Production.INFO: ==11342== Releasing lock... [2025-07-31 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 03:25:24] Production.INFO: 32 MB #Memory Used# [2025-07-31 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 01:25:05 [end_date_ymd] => 2025-07-31 04:25:05 [RateCDR] => 1 ) [2025-07-31 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-31 01:25:05' and `end` < '2025-07-31 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-31 04:25:17] Production.INFO: count ==276 [2025-07-31 04:25:17] Production.ERROR: pbx CDR StartTime 2025-07-31 01:25:05 - End Time 2025-07-31 04:25:05 [2025-07-31 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15569650', 'tblTempUsageDetail_20' ) start [2025-07-31 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15569650', 'tblTempUsageDetail_20' ) end [2025-07-31 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15569650', 'tblTempVendorCDR_20' ) start [2025-07-31 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15569650', 'tblTempVendorCDR_20' ) end [2025-07-31 04:25:17] Production.INFO: ProcessCDR(1,15569650,1,1,2) [2025-07-31 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15569650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15569650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15569650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15569650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15569650', 'tblTempUsageDetail_20' ) start [2025-07-31 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15569650', 'tblTempUsageDetail_20' ) end [2025-07-31 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-31 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-31 04:25:23] Production.INFO: ==15700== Releasing lock... [2025-07-31 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 04:25:23] Production.INFO: 31 MB #Memory Used# [2025-07-31 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 02:25:05 [end_date_ymd] => 2025-07-31 05:25:05 [RateCDR] => 1 ) [2025-07-31 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-31 02:25:05' and `end` < '2025-07-31 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-31 05:25:17] Production.INFO: count ==145 [2025-07-31 05:25:17] Production.ERROR: pbx CDR StartTime 2025-07-31 02:25:05 - End Time 2025-07-31 05:25:05 [2025-07-31 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15569898', 'tblTempUsageDetail_20' ) start [2025-07-31 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15569898', 'tblTempUsageDetail_20' ) end [2025-07-31 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15569898', 'tblTempVendorCDR_20' ) start [2025-07-31 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15569898', 'tblTempVendorCDR_20' ) end [2025-07-31 05:25:17] Production.INFO: ProcessCDR(1,15569898,1,1,2) [2025-07-31 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15569898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15569898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15569898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15569898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15569898', 'tblTempUsageDetail_20' ) start [2025-07-31 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15569898', 'tblTempUsageDetail_20' ) end [2025-07-31 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-31 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-31 05:25:24] Production.INFO: ==21137== Releasing lock... [2025-07-31 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 05:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-07-31 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 03:25:05 [end_date_ymd] => 2025-07-31 06:25:05 [RateCDR] => 1 ) [2025-07-31 06: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-31 03:25:05' and `end` < '2025-07-31 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-31 06:25:18] Production.INFO: count ==124 [2025-07-31 06:25:18] Production.ERROR: pbx CDR StartTime 2025-07-31 03:25:05 - End Time 2025-07-31 06:25:05 [2025-07-31 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15570145', 'tblTempUsageDetail_20' ) start [2025-07-31 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15570145', 'tblTempUsageDetail_20' ) end [2025-07-31 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15570145', 'tblTempVendorCDR_20' ) start [2025-07-31 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15570145', 'tblTempVendorCDR_20' ) end [2025-07-31 06:25:18] Production.INFO: ProcessCDR(1,15570145,1,1,2) [2025-07-31 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15570145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15570145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15570145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15570145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15570145', 'tblTempUsageDetail_20' ) start [2025-07-31 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15570145', 'tblTempUsageDetail_20' ) end [2025-07-31 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-31 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-31 06:25:24] Production.INFO: ==25646== Releasing lock... [2025-07-31 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 06:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-07-31 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 04:25:06 [end_date_ymd] => 2025-07-31 07:25:06 [RateCDR] => 1 ) [2025-07-31 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-31 04:25:06' and `end` < '2025-07-31 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-31 07:25:18] Production.INFO: count ==101 [2025-07-31 07:25:18] Production.ERROR: pbx CDR StartTime 2025-07-31 04:25:06 - End Time 2025-07-31 07:25:06 [2025-07-31 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15570392', 'tblTempUsageDetail_20' ) start [2025-07-31 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15570392', 'tblTempUsageDetail_20' ) end [2025-07-31 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15570392', 'tblTempVendorCDR_20' ) start [2025-07-31 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15570392', 'tblTempVendorCDR_20' ) end [2025-07-31 07:25:18] Production.INFO: ProcessCDR(1,15570392,1,1,2) [2025-07-31 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15570392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15570392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15570392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15570392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15570392', 'tblTempUsageDetail_20' ) start [2025-07-31 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15570392', 'tblTempUsageDetail_20' ) end [2025-07-31 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-31 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-31 07:25:24] Production.INFO: ==29968== Releasing lock... [2025-07-31 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 07:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-07-31 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 05:25:05 [end_date_ymd] => 2025-07-31 08:25:05 [RateCDR] => 1 ) [2025-07-31 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-31 05:25:05' and `end` < '2025-07-31 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-31 08:25:17] Production.INFO: count ==273 [2025-07-31 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-31 05:25:05 - End Time 2025-07-31 08:25:05 [2025-07-31 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15570639', 'tblTempUsageDetail_20' ) start [2025-07-31 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15570639', 'tblTempUsageDetail_20' ) end [2025-07-31 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15570639', 'tblTempVendorCDR_20' ) start [2025-07-31 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15570639', 'tblTempVendorCDR_20' ) end [2025-07-31 08:25:17] Production.INFO: ProcessCDR(1,15570639,1,1,2) [2025-07-31 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15570639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15570639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15570639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15570639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15570639', 'tblTempUsageDetail_20' ) start [2025-07-31 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15570639', 'tblTempUsageDetail_20' ) end [2025-07-31 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-31 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-31 08:25:24] Production.INFO: ==1911== Releasing lock... [2025-07-31 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 08:25:24] Production.INFO: 31 MB #Memory Used# [2025-07-31 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 06:25:06 [end_date_ymd] => 2025-07-31 09:25:06 [RateCDR] => 1 ) [2025-07-31 09: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-31 06:25:06' and `end` < '2025-07-31 09: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-31 09:25:18] Production.INFO: count ==1173 [2025-07-31 09:25:19] Production.ERROR: pbx CDR StartTime 2025-07-31 06:25:06 - End Time 2025-07-31 09:25:06 [2025-07-31 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15570886', 'tblTempUsageDetail_20' ) start [2025-07-31 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15570886', 'tblTempUsageDetail_20' ) end [2025-07-31 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15570886', 'tblTempVendorCDR_20' ) start [2025-07-31 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15570886', 'tblTempVendorCDR_20' ) end [2025-07-31 09:25:19] Production.INFO: ProcessCDR(1,15570886,1,1,2) [2025-07-31 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15570886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15570886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15570886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15570886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15570886', 'tblTempUsageDetail_20' ) start [2025-07-31 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15570886', 'tblTempUsageDetail_20' ) end [2025-07-31 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-31 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-31 09:25:27] Production.INFO: ==6472== Releasing lock... [2025-07-31 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 09:25:27] Production.INFO: 37.25 MB #Memory Used# [2025-07-31 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 07:25:05 [end_date_ymd] => 2025-07-31 10:25:05 [RateCDR] => 1 ) [2025-07-31 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-31 07:25:05' and `end` < '2025-07-31 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-31 10:25:21] Production.INFO: count ==2550 [2025-07-31 10:25:22] Production.ERROR: pbx CDR StartTime 2025-07-31 07:25:05 - End Time 2025-07-31 10:25:05 [2025-07-31 10:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15571133', 'tblTempUsageDetail_20' ) start [2025-07-31 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15571133', 'tblTempUsageDetail_20' ) end [2025-07-31 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15571133', 'tblTempVendorCDR_20' ) start [2025-07-31 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15571133', 'tblTempVendorCDR_20' ) end [2025-07-31 10:25:22] Production.INFO: ProcessCDR(1,15571133,1,1,2) [2025-07-31 10:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15571133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15571133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15571133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15571133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15571133', 'tblTempUsageDetail_20' ) start [2025-07-31 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15571133', 'tblTempUsageDetail_20' ) end [2025-07-31 10:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-31 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-31 10:25:32] Production.INFO: ==10917== Releasing lock... [2025-07-31 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 10:25:32] Production.INFO: 47.5 MB #Memory Used# [2025-07-31 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 08:25:06 [end_date_ymd] => 2025-07-31 11:25:06 [RateCDR] => 1 ) [2025-07-31 11: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-31 08:25:06' and `end` < '2025-07-31 11: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-31 11:25:19] Production.INFO: count ==3865 [2025-07-31 11:25:20] Production.ERROR: pbx CDR StartTime 2025-07-31 08:25:06 - End Time 2025-07-31 11:25:06 [2025-07-31 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15571380', 'tblTempUsageDetail_20' ) start [2025-07-31 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15571380', 'tblTempUsageDetail_20' ) end [2025-07-31 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15571380', 'tblTempVendorCDR_20' ) start [2025-07-31 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15571380', 'tblTempVendorCDR_20' ) end [2025-07-31 11:25:21] Production.INFO: ProcessCDR(1,15571380,1,1,2) [2025-07-31 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15571380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15571380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15571380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 11:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15571380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15571380', 'tblTempUsageDetail_20' ) start [2025-07-31 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15571380', 'tblTempUsageDetail_20' ) end [2025-07-31 11:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-31 11:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-31 11:25:31] Production.INFO: ==15638== Releasing lock... [2025-07-31 11:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 11:25:31] Production.INFO: 57 MB #Memory Used# [2025-07-31 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 09:25:05 [end_date_ymd] => 2025-07-31 12:25:05 [RateCDR] => 1 ) [2025-07-31 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-31 09:25:05' and `end` < '2025-07-31 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-31 12:25:20] Production.INFO: count ==4523 [2025-07-31 12:25:22] Production.ERROR: pbx CDR StartTime 2025-07-31 09:25:05 - End Time 2025-07-31 12:25:05 [2025-07-31 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15571627', 'tblTempUsageDetail_20' ) start [2025-07-31 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15571627', 'tblTempUsageDetail_20' ) end [2025-07-31 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15571627', 'tblTempVendorCDR_20' ) start [2025-07-31 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15571627', 'tblTempVendorCDR_20' ) end [2025-07-31 12:25:22] Production.INFO: ProcessCDR(1,15571627,1,1,2) [2025-07-31 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15571627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15571627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15571627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15571627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15571627', 'tblTempUsageDetail_20' ) start [2025-07-31 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15571627', 'tblTempUsageDetail_20' ) end [2025-07-31 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-31 12:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-31 12:25:35] Production.INFO: ==20053== Releasing lock... [2025-07-31 12:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 12:25:35] Production.INFO: 62 MB #Memory Used# [2025-07-31 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 10:25:05 [end_date_ymd] => 2025-07-31 13:25:05 [RateCDR] => 1 ) [2025-07-31 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-31 10:25:05' and `end` < '2025-07-31 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-31 13:25:19] Production.INFO: count ==5190 [2025-07-31 13:25:21] Production.ERROR: pbx CDR StartTime 2025-07-31 10:25:05 - End Time 2025-07-31 13:25:05 [2025-07-31 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15571874', 'tblTempUsageDetail_20' ) start [2025-07-31 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15571874', 'tblTempUsageDetail_20' ) end [2025-07-31 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15571874', 'tblTempVendorCDR_20' ) start [2025-07-31 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15571874', 'tblTempVendorCDR_20' ) end [2025-07-31 13:25:22] Production.INFO: ProcessCDR(1,15571874,1,1,2) [2025-07-31 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15571874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15571874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15571874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15571874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15571874', 'tblTempUsageDetail_20' ) start [2025-07-31 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15571874', 'tblTempUsageDetail_20' ) end [2025-07-31 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-31 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-31 13:25:33] Production.INFO: ==24647== Releasing lock... [2025-07-31 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 13:25:33] Production.INFO: 67 MB #Memory Used# [2025-07-31 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 11:25:05 [end_date_ymd] => 2025-07-31 14:25:05 [RateCDR] => 1 ) [2025-07-31 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-31 11:25:05' and `end` < '2025-07-31 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-31 14:25:20] Production.INFO: count ==5488 [2025-07-31 14:25:23] Production.ERROR: pbx CDR StartTime 2025-07-31 11:25:05 - End Time 2025-07-31 14:25:05 [2025-07-31 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15572121', 'tblTempUsageDetail_20' ) start [2025-07-31 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15572121', 'tblTempUsageDetail_20' ) end [2025-07-31 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15572121', 'tblTempVendorCDR_20' ) start [2025-07-31 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15572121', 'tblTempVendorCDR_20' ) end [2025-07-31 14:25:23] Production.INFO: ProcessCDR(1,15572121,1,1,2) [2025-07-31 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15572121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15572121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15572121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15572121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15572121', 'tblTempUsageDetail_20' ) start [2025-07-31 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15572121', 'tblTempUsageDetail_20' ) end [2025-07-31 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-31 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-31 14:25:34] Production.INFO: ==28952== Releasing lock... [2025-07-31 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 14:25:34] Production.INFO: 69.25 MB #Memory Used# [2025-07-31 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 12:25:06 [end_date_ymd] => 2025-07-31 15:25:06 [RateCDR] => 1 ) [2025-07-31 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-31 12:25:06' and `end` < '2025-07-31 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-31 15:25:21] Production.INFO: count ==5527 [2025-07-31 15:25:24] Production.ERROR: pbx CDR StartTime 2025-07-31 12:25:06 - End Time 2025-07-31 15:25:06 [2025-07-31 15:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15572368', 'tblTempUsageDetail_20' ) start [2025-07-31 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15572368', 'tblTempUsageDetail_20' ) end [2025-07-31 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15572368', 'tblTempVendorCDR_20' ) start [2025-07-31 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15572368', 'tblTempVendorCDR_20' ) end [2025-07-31 15:25:24] Production.INFO: ProcessCDR(1,15572368,1,1,2) [2025-07-31 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15572368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15572368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15572368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15572368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15572368', 'tblTempUsageDetail_20' ) start [2025-07-31 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15572368', 'tblTempUsageDetail_20' ) end [2025-07-31 15:25:35] Production.ERROR: pbx prc_insertCDR start [2025-07-31 15:25:37] Production.ERROR: pbx prc_insertCDR end [2025-07-31 15:25:37] Production.INFO: ==1124== Releasing lock... [2025-07-31 15:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 15:25:37] Production.INFO: 69.5 MB #Memory Used# [2025-07-31 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 13:25:05 [end_date_ymd] => 2025-07-31 16:25:05 [RateCDR] => 1 ) [2025-07-31 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-31 13:25:05' and `end` < '2025-07-31 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-31 16:25:20] Production.INFO: count ==5333 [2025-07-31 16:25:22] Production.ERROR: pbx CDR StartTime 2025-07-31 13:25:05 - End Time 2025-07-31 16:25:05 [2025-07-31 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15572615', 'tblTempUsageDetail_20' ) start [2025-07-31 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15572615', 'tblTempUsageDetail_20' ) end [2025-07-31 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15572615', 'tblTempVendorCDR_20' ) start [2025-07-31 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15572615', 'tblTempVendorCDR_20' ) end [2025-07-31 16:25:22] Production.INFO: ProcessCDR(1,15572615,1,1,2) [2025-07-31 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15572615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15572615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15572615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15572615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15572615', 'tblTempUsageDetail_20' ) start [2025-07-31 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15572615', 'tblTempUsageDetail_20' ) end [2025-07-31 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-31 16:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-31 16:25:34] Production.INFO: ==6019== Releasing lock... [2025-07-31 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 16:25:34] Production.INFO: 68.25 MB #Memory Used# [2025-07-31 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 14:25:05 [end_date_ymd] => 2025-07-31 17:25:05 [RateCDR] => 1 ) [2025-07-31 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-31 14:25:05' and `end` < '2025-07-31 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-31 17:25:18] Production.INFO: count ==5312 [2025-07-31 17:25:21] Production.ERROR: pbx CDR StartTime 2025-07-31 14:25:05 - End Time 2025-07-31 17:25:05 [2025-07-31 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15572862', 'tblTempUsageDetail_20' ) start [2025-07-31 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15572862', 'tblTempUsageDetail_20' ) end [2025-07-31 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15572862', 'tblTempVendorCDR_20' ) start [2025-07-31 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15572862', 'tblTempVendorCDR_20' ) end [2025-07-31 17:25:21] Production.INFO: ProcessCDR(1,15572862,1,1,2) [2025-07-31 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15572862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15572862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15572862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15572862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15572862', 'tblTempUsageDetail_20' ) start [2025-07-31 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15572862', 'tblTempUsageDetail_20' ) end [2025-07-31 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-31 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-31 17:25:32] Production.INFO: ==11806== Releasing lock... [2025-07-31 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 17:25:32] Production.INFO: 68 MB #Memory Used# [2025-07-31 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 15:25:06 [end_date_ymd] => 2025-07-31 18:25:06 [RateCDR] => 1 ) [2025-07-31 18: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-31 15:25:06' and `end` < '2025-07-31 18: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-31 18:25:19] Production.INFO: count ==4704 [2025-07-31 18:25:21] Production.ERROR: pbx CDR StartTime 2025-07-31 15:25:06 - End Time 2025-07-31 18:25:06 [2025-07-31 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15573109', 'tblTempUsageDetail_20' ) start [2025-07-31 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15573109', 'tblTempUsageDetail_20' ) end [2025-07-31 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15573109', 'tblTempVendorCDR_20' ) start [2025-07-31 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15573109', 'tblTempVendorCDR_20' ) end [2025-07-31 18:25:21] Production.INFO: ProcessCDR(1,15573109,1,1,2) [2025-07-31 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15573109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15573109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15573109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15573109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15573109', 'tblTempUsageDetail_20' ) start [2025-07-31 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15573109', 'tblTempUsageDetail_20' ) end [2025-07-31 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-31 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-31 18:25:30] Production.INFO: ==17725== Releasing lock... [2025-07-31 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 18:25:30] Production.INFO: 63.5 MB #Memory Used# [2025-07-31 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 16:25:06 [end_date_ymd] => 2025-07-31 19:25:06 [RateCDR] => 1 ) [2025-07-31 19:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-31 16:25:06' and `end` < '2025-07-31 19:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-31 19:25:18] Production.INFO: count ==3688 [2025-07-31 19:25:20] Production.ERROR: pbx CDR StartTime 2025-07-31 16:25:06 - End Time 2025-07-31 19:25:06 [2025-07-31 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15573353', 'tblTempUsageDetail_20' ) start [2025-07-31 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15573353', 'tblTempUsageDetail_20' ) end [2025-07-31 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15573353', 'tblTempVendorCDR_20' ) start [2025-07-31 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15573353', 'tblTempVendorCDR_20' ) end [2025-07-31 19:25:20] Production.INFO: ProcessCDR(1,15573353,1,1,2) [2025-07-31 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15573353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15573353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15573353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15573353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15573353', 'tblTempUsageDetail_20' ) start [2025-07-31 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15573353', 'tblTempUsageDetail_20' ) end [2025-07-31 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-31 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-31 19:25:29] Production.INFO: ==23506== Releasing lock... [2025-07-31 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 19:25:29] Production.INFO: 56.25 MB #Memory Used# [2025-07-31 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 17:25:05 [end_date_ymd] => 2025-07-31 20:25:05 [RateCDR] => 1 ) [2025-07-31 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-31 17:25:05' and `end` < '2025-07-31 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-31 20:25:18] Production.INFO: count ==2454 [2025-07-31 20:25:19] Production.ERROR: pbx CDR StartTime 2025-07-31 17:25:05 - End Time 2025-07-31 20:25:05 [2025-07-31 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15573600', 'tblTempUsageDetail_20' ) start [2025-07-31 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15573600', 'tblTempUsageDetail_20' ) end [2025-07-31 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15573600', 'tblTempVendorCDR_20' ) start [2025-07-31 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15573600', 'tblTempVendorCDR_20' ) end [2025-07-31 20:25:19] Production.INFO: ProcessCDR(1,15573600,1,1,2) [2025-07-31 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15573600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15573600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15573600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15573600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15573600', 'tblTempUsageDetail_20' ) start [2025-07-31 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15573600', 'tblTempUsageDetail_20' ) end [2025-07-31 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-31 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-31 20:25:27] Production.INFO: ==28888== Releasing lock... [2025-07-31 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 20:25:27] Production.INFO: 46.5 MB #Memory Used# [2025-07-31 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 18:25:05 [end_date_ymd] => 2025-07-31 21:25:05 [RateCDR] => 1 ) [2025-07-31 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-31 18:25:05' and `end` < '2025-07-31 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-31 21:25:17] Production.INFO: count ==2013 [2025-07-31 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-31 18:25:05 - End Time 2025-07-31 21:25:05 [2025-07-31 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15573847', 'tblTempUsageDetail_20' ) start [2025-07-31 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15573847', 'tblTempUsageDetail_20' ) end [2025-07-31 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15573847', 'tblTempVendorCDR_20' ) start [2025-07-31 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15573847', 'tblTempVendorCDR_20' ) end [2025-07-31 21:25:18] Production.INFO: ProcessCDR(1,15573847,1,1,2) [2025-07-31 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15573847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15573847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15573847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15573847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15573847', 'tblTempUsageDetail_20' ) start [2025-07-31 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15573847', 'tblTempUsageDetail_20' ) end [2025-07-31 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-31 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-31 21:25:26] Production.INFO: ==2013== Releasing lock... [2025-07-31 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 21:25:26] Production.INFO: 43.25 MB #Memory Used# [2025-07-31 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 19:25:05 [end_date_ymd] => 2025-07-31 22:25:05 [RateCDR] => 1 ) [2025-07-31 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-31 19:25:05' and `end` < '2025-07-31 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-31 22:25:18] Production.INFO: count ==1670 [2025-07-31 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-31 19:25:05 - End Time 2025-07-31 22:25:05 [2025-07-31 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15574094', 'tblTempUsageDetail_20' ) start [2025-07-31 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15574094', 'tblTempUsageDetail_20' ) end [2025-07-31 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15574094', 'tblTempVendorCDR_20' ) start [2025-07-31 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15574094', 'tblTempVendorCDR_20' ) end [2025-07-31 22:25:18] Production.INFO: ProcessCDR(1,15574094,1,1,2) [2025-07-31 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15574094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15574094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15574094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15574094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15574094', 'tblTempUsageDetail_20' ) start [2025-07-31 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15574094', 'tblTempUsageDetail_20' ) end [2025-07-31 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-31 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-31 22:25:26] Production.INFO: ==6700== Releasing lock... [2025-07-31 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 22:25:26] Production.INFO: 40.75 MB #Memory Used# [2025-07-31 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-31 20:25:04 [end_date_ymd] => 2025-07-31 23:25:04 [RateCDR] => 1 ) [2025-07-31 23:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-31 20:25:04' and `end` < '2025-07-31 23:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-31 23:25:17] Production.INFO: count ==1437 [2025-07-31 23:25:17] Production.ERROR: pbx CDR StartTime 2025-07-31 20:25:04 - End Time 2025-07-31 23:25:04 [2025-07-31 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-31 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15574341', 'tblTempUsageDetail_20' ) start [2025-07-31 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15574341', 'tblTempUsageDetail_20' ) end [2025-07-31 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15574341', 'tblTempVendorCDR_20' ) start [2025-07-31 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15574341', 'tblTempVendorCDR_20' ) end [2025-07-31 23:25:17] Production.INFO: ProcessCDR(1,15574341,1,1,2) [2025-07-31 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15574341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15574341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-31 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15574341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15574341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-31 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15574341', 'tblTempUsageDetail_20' ) start [2025-07-31 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15574341', 'tblTempUsageDetail_20' ) end [2025-07-31 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-31 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-31 23:25:25] Production.INFO: ==11383== Releasing lock... [2025-07-31 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-31 23:25:25] Production.INFO: 39 MB #Memory Used#