[2025-07-30 00:25:04] Production.INFO: next invoice date [2025-07-30 00:25:04] Production.INFO: 2025-08-30 [2025-07-30 00:25:04] Production.INFO: getdaysdiff [2025-07-30 00:25:04] Production.INFO: +31 [2025-07-30 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (205,11,1,31,31,'RMScheduler',2025-07-30 00:25:04,0,0,,,0) [2025-07-30 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 21:25:05 [end_date_ymd] => 2025-07-30 00:25:05 [RateCDR] => 1 ) [2025-07-30 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-29 21:25:05' and `end` < '2025-07-30 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-30 00:25:17] Production.INFO: count ==461 [2025-07-30 00:25:17] Production.ERROR: pbx CDR StartTime 2025-07-29 21:25:05 - End Time 2025-07-30 00:25:05 [2025-07-30 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15562733', 'tblTempUsageDetail_20' ) start [2025-07-30 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15562733', 'tblTempUsageDetail_20' ) end [2025-07-30 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15562733', 'tblTempVendorCDR_20' ) start [2025-07-30 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15562733', 'tblTempVendorCDR_20' ) end [2025-07-30 00:25:17] Production.INFO: ProcessCDR(1,15562733,1,1,2) [2025-07-30 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15562733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15562733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15562733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15562733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15562733', 'tblTempUsageDetail_20' ) start [2025-07-30 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15562733', 'tblTempUsageDetail_20' ) end [2025-07-30 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-30 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-30 00:25:26] Production.INFO: ==30854== Releasing lock... [2025-07-30 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 00:25:26] Production.INFO: 36 MB #Memory Used# [2025-07-30 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 22:25:05 [end_date_ymd] => 2025-07-30 01:25:05 [RateCDR] => 1 ) [2025-07-30 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-29 22:25:05' and `end` < '2025-07-30 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-30 01:25:18] Production.INFO: count ==482 [2025-07-30 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-29 22:25:05 - End Time 2025-07-30 01:25:05 [2025-07-30 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15562980', 'tblTempUsageDetail_20' ) start [2025-07-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15562980', 'tblTempUsageDetail_20' ) end [2025-07-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15562980', 'tblTempVendorCDR_20' ) start [2025-07-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15562980', 'tblTempVendorCDR_20' ) end [2025-07-30 01:25:18] Production.INFO: ProcessCDR(1,15562980,1,1,2) [2025-07-30 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15562980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15562980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15562980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15562980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15562980', 'tblTempUsageDetail_20' ) start [2025-07-30 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15562980', 'tblTempUsageDetail_20' ) end [2025-07-30 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-30 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-30 01:25:25] Production.INFO: ==5843== Releasing lock... [2025-07-30 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 01:25:25] Production.INFO: 32.25 MB #Memory Used# [2025-07-30 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-29 23:25:04 [end_date_ymd] => 2025-07-30 02:25:04 [RateCDR] => 1 ) [2025-07-30 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-29 23:25:04' and `end` < '2025-07-30 02: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-30 02:25:17] Production.INFO: count ==436 [2025-07-30 02:25:17] Production.ERROR: pbx CDR StartTime 2025-07-29 23:25:04 - End Time 2025-07-30 02:25:04 [2025-07-30 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15563227', 'tblTempUsageDetail_20' ) start [2025-07-30 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15563227', 'tblTempUsageDetail_20' ) end [2025-07-30 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15563227', 'tblTempVendorCDR_20' ) start [2025-07-30 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15563227', 'tblTempVendorCDR_20' ) end [2025-07-30 02:25:17] Production.INFO: ProcessCDR(1,15563227,1,1,2) [2025-07-30 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15563227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15563227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15563227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 02:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15563227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15563227', 'tblTempUsageDetail_20' ) start [2025-07-30 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15563227', 'tblTempUsageDetail_20' ) end [2025-07-30 02:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-30 02:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-30 02:25:23] Production.INFO: ==13239== Releasing lock... [2025-07-30 02:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 02:25:23] Production.INFO: 31.75 MB #Memory Used# [2025-07-30 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 00:25:05 [end_date_ymd] => 2025-07-30 03:25:05 [RateCDR] => 1 ) [2025-07-30 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-30 00:25:05' and `end` < '2025-07-30 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-30 03:25:18] Production.INFO: count ==356 [2025-07-30 03:25:18] Production.ERROR: pbx CDR StartTime 2025-07-30 00:25:05 - End Time 2025-07-30 03:25:05 [2025-07-30 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15563474', 'tblTempUsageDetail_20' ) start [2025-07-30 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15563474', 'tblTempUsageDetail_20' ) end [2025-07-30 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15563474', 'tblTempVendorCDR_20' ) start [2025-07-30 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15563474', 'tblTempVendorCDR_20' ) end [2025-07-30 03:25:18] Production.INFO: ProcessCDR(1,15563474,1,1,2) [2025-07-30 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15563474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15563474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15563474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15563474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15563474', 'tblTempUsageDetail_20' ) start [2025-07-30 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15563474', 'tblTempUsageDetail_20' ) end [2025-07-30 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-07-30 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-07-30 03:25:22] Production.INFO: ==19627== Releasing lock... [2025-07-30 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 03:25:22] Production.INFO: 31 MB #Memory Used# [2025-07-30 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 01:25:05 [end_date_ymd] => 2025-07-30 04:25:05 [RateCDR] => 1 ) [2025-07-30 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-30 01:25:05' and `end` < '2025-07-30 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-30 04:25:22] Production.INFO: count ==219 [2025-07-30 04:25:22] Production.ERROR: pbx CDR StartTime 2025-07-30 01:25:05 - End Time 2025-07-30 04:25:05 [2025-07-30 04:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 04:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15563722', 'tblTempUsageDetail_20' ) start [2025-07-30 04:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15563722', 'tblTempUsageDetail_20' ) end [2025-07-30 04:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15563722', 'tblTempVendorCDR_20' ) start [2025-07-30 04:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15563722', 'tblTempVendorCDR_20' ) end [2025-07-30 04:25:22] Production.INFO: ProcessCDR(1,15563722,1,1,2) [2025-07-30 04:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15563722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 04:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15563722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 04:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15563722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 04:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15563722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 04:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15563722', 'tblTempUsageDetail_20' ) start [2025-07-30 04:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15563722', 'tblTempUsageDetail_20' ) end [2025-07-30 04:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-30 04:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-30 04:25:29] Production.INFO: ==25847== Releasing lock... [2025-07-30 04:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 04:25:29] Production.INFO: 30.25 MB #Memory Used# [2025-07-30 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 02:25:06 [end_date_ymd] => 2025-07-30 05:25:06 [RateCDR] => 1 ) [2025-07-30 05:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-30 02:25:06' and `end` < '2025-07-30 05:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-30 05:25:23] Production.INFO: count ==146 [2025-07-30 05:25:23] Production.ERROR: pbx CDR StartTime 2025-07-30 02:25:06 - End Time 2025-07-30 05:25:06 [2025-07-30 05:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 05:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15563970', 'tblTempUsageDetail_20' ) start [2025-07-30 05:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15563970', 'tblTempUsageDetail_20' ) end [2025-07-30 05:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15563970', 'tblTempVendorCDR_20' ) start [2025-07-30 05:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15563970', 'tblTempVendorCDR_20' ) end [2025-07-30 05:25:23] Production.INFO: ProcessCDR(1,15563970,1,1,2) [2025-07-30 05:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15563970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 05:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15563970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 05:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15563970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 05:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15563970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 05:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15563970', 'tblTempUsageDetail_20' ) start [2025-07-30 05:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15563970', 'tblTempUsageDetail_20' ) end [2025-07-30 05:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-30 05:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-30 05:25:30] Production.INFO: ==32447== Releasing lock... [2025-07-30 05:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 05:25:30] Production.INFO: 29.25 MB #Memory Used# [2025-07-30 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 03:25:05 [end_date_ymd] => 2025-07-30 06:25:05 [RateCDR] => 1 ) [2025-07-30 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-30 03:25:05' and `end` < '2025-07-30 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-30 06:25:18] Production.INFO: count ==114 [2025-07-30 06:25:18] Production.ERROR: pbx CDR StartTime 2025-07-30 03:25:05 - End Time 2025-07-30 06:25:05 [2025-07-30 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15564217', 'tblTempUsageDetail_20' ) start [2025-07-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15564217', 'tblTempUsageDetail_20' ) end [2025-07-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15564217', 'tblTempVendorCDR_20' ) start [2025-07-30 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15564217', 'tblTempVendorCDR_20' ) end [2025-07-30 06:25:18] Production.INFO: ProcessCDR(1,15564217,1,1,2) [2025-07-30 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15564217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15564217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15564217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15564217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15564217', 'tblTempUsageDetail_20' ) start [2025-07-30 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15564217', 'tblTempUsageDetail_20' ) end [2025-07-30 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-30 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-30 06:25:24] Production.INFO: ==6627== Releasing lock... [2025-07-30 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 06:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-07-30 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 04:25:05 [end_date_ymd] => 2025-07-30 07:25:05 [RateCDR] => 1 ) [2025-07-30 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-30 04:25:05' and `end` < '2025-07-30 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-30 07:25:17] Production.INFO: count ==81 [2025-07-30 07:25:17] Production.ERROR: pbx CDR StartTime 2025-07-30 04:25:05 - End Time 2025-07-30 07:25:05 [2025-07-30 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15564464', 'tblTempUsageDetail_20' ) start [2025-07-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15564464', 'tblTempUsageDetail_20' ) end [2025-07-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15564464', 'tblTempVendorCDR_20' ) start [2025-07-30 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15564464', 'tblTempVendorCDR_20' ) end [2025-07-30 07:25:17] Production.INFO: ProcessCDR(1,15564464,1,1,2) [2025-07-30 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15564464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15564464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15564464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15564464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15564464', 'tblTempUsageDetail_20' ) start [2025-07-30 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15564464', 'tblTempUsageDetail_20' ) end [2025-07-30 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-30 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-30 07:25:24] Production.INFO: ==13389== Releasing lock... [2025-07-30 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 07:25:24] Production.INFO: 28.75 MB #Memory Used# [2025-07-30 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 05:25:06 [end_date_ymd] => 2025-07-30 08:25:06 [RateCDR] => 1 ) [2025-07-30 08: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 05:25:06' and `end` < '2025-07-30 08: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-30 08:25:18] Production.INFO: count ==369 [2025-07-30 08:25:18] Production.ERROR: pbx CDR StartTime 2025-07-30 05:25:06 - End Time 2025-07-30 08:25:06 [2025-07-30 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15564711', 'tblTempUsageDetail_20' ) start [2025-07-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15564711', 'tblTempUsageDetail_20' ) end [2025-07-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15564711', 'tblTempVendorCDR_20' ) start [2025-07-30 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15564711', 'tblTempVendorCDR_20' ) end [2025-07-30 08:25:18] Production.INFO: ProcessCDR(1,15564711,1,1,2) [2025-07-30 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15564711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15564711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15564711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15564711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15564711', 'tblTempUsageDetail_20' ) start [2025-07-30 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15564711', 'tblTempUsageDetail_20' ) end [2025-07-30 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-30 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-30 08:25:25] Production.INFO: ==18608== Releasing lock... [2025-07-30 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 08:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-07-30 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 06:25:05 [end_date_ymd] => 2025-07-30 09:25:05 [RateCDR] => 1 ) [2025-07-30 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-30 06:25:05' and `end` < '2025-07-30 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-30 09:25:17] Production.INFO: count ==1396 [2025-07-30 09:25:18] Production.ERROR: pbx CDR StartTime 2025-07-30 06:25:05 - End Time 2025-07-30 09:25:05 [2025-07-30 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15564958', 'tblTempUsageDetail_20' ) start [2025-07-30 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15564958', 'tblTempUsageDetail_20' ) end [2025-07-30 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15564958', 'tblTempVendorCDR_20' ) start [2025-07-30 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15564958', 'tblTempVendorCDR_20' ) end [2025-07-30 09:25:18] Production.INFO: ProcessCDR(1,15564958,1,1,2) [2025-07-30 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15564958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15564958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15564958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15564958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15564958', 'tblTempUsageDetail_20' ) start [2025-07-30 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15564958', 'tblTempUsageDetail_20' ) end [2025-07-30 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-30 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-30 09:25:28] Production.INFO: ==23423== Releasing lock... [2025-07-30 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 09:25:28] Production.INFO: 38.5 MB #Memory Used# [2025-07-30 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 07:25:05 [end_date_ymd] => 2025-07-30 10:25:05 [RateCDR] => 1 ) [2025-07-30 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-30 07:25:05' and `end` < '2025-07-30 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-30 10:25:18] Production.INFO: count ==2795 [2025-07-30 10:25:19] Production.ERROR: pbx CDR StartTime 2025-07-30 07:25:05 - End Time 2025-07-30 10:25:05 [2025-07-30 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15565205', 'tblTempUsageDetail_20' ) start [2025-07-30 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15565205', 'tblTempUsageDetail_20' ) end [2025-07-30 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15565205', 'tblTempVendorCDR_20' ) start [2025-07-30 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15565205', 'tblTempVendorCDR_20' ) end [2025-07-30 10:25:20] Production.INFO: ProcessCDR(1,15565205,1,1,2) [2025-07-30 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15565205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15565205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15565205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15565205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15565205', 'tblTempUsageDetail_20' ) start [2025-07-30 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15565205', 'tblTempUsageDetail_20' ) end [2025-07-30 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-30 10:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-30 10:25:29] Production.INFO: ==27819== Releasing lock... [2025-07-30 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 10:25:29] Production.INFO: 49.5 MB #Memory Used# [2025-07-30 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 08:25:06 [end_date_ymd] => 2025-07-30 11:25:06 [RateCDR] => 1 ) [2025-07-30 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-30 08:25:06' and `end` < '2025-07-30 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-30 11:25:21] Production.INFO: count ==4270 [2025-07-30 11:25:23] Production.ERROR: pbx CDR StartTime 2025-07-30 08:25:06 - End Time 2025-07-30 11:25:06 [2025-07-30 11:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15565452', 'tblTempUsageDetail_20' ) start [2025-07-30 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15565452', 'tblTempUsageDetail_20' ) end [2025-07-30 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15565452', 'tblTempVendorCDR_20' ) start [2025-07-30 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15565452', 'tblTempVendorCDR_20' ) end [2025-07-30 11:25:24] Production.INFO: ProcessCDR(1,15565452,1,1,2) [2025-07-30 11:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15565452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15565452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15565452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 11:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15565452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15565452', 'tblTempUsageDetail_20' ) start [2025-07-30 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15565452', 'tblTempUsageDetail_20' ) end [2025-07-30 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-30 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-30 11:25:35] Production.INFO: ==705== Releasing lock... [2025-07-30 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 11:25:35] Production.INFO: 60 MB #Memory Used# [2025-07-30 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 09:25:05 [end_date_ymd] => 2025-07-30 12:25:05 [RateCDR] => 1 ) [2025-07-30 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-30 09:25:05' and `end` < '2025-07-30 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-30 12:25:19] Production.INFO: count ==5533 [2025-07-30 12:25:21] Production.ERROR: pbx CDR StartTime 2025-07-30 09:25:05 - End Time 2025-07-30 12:25:05 [2025-07-30 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15565699', 'tblTempUsageDetail_20' ) start [2025-07-30 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15565699', 'tblTempUsageDetail_20' ) end [2025-07-30 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15565699', 'tblTempVendorCDR_20' ) start [2025-07-30 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15565699', 'tblTempVendorCDR_20' ) end [2025-07-30 12:25:22] Production.INFO: ProcessCDR(1,15565699,1,1,2) [2025-07-30 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15565699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15565699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15565699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15565699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15565699', 'tblTempUsageDetail_20' ) start [2025-07-30 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15565699', 'tblTempUsageDetail_20' ) end [2025-07-30 12:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-30 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-30 12:25:33] Production.INFO: ==5672== Releasing lock... [2025-07-30 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 12:25:33] Production.INFO: 69.75 MB #Memory Used# [2025-07-30 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 10:25:06 [end_date_ymd] => 2025-07-30 13:25:06 [RateCDR] => 1 ) [2025-07-30 13: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 10:25:06' and `end` < '2025-07-30 13: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-30 13:25:21] Production.INFO: count ==5683 [2025-07-30 13:25:24] Production.ERROR: pbx CDR StartTime 2025-07-30 10:25:06 - End Time 2025-07-30 13:25:06 [2025-07-30 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15565946', 'tblTempUsageDetail_20' ) start [2025-07-30 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15565946', 'tblTempUsageDetail_20' ) end [2025-07-30 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15565946', 'tblTempVendorCDR_20' ) start [2025-07-30 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15565946', 'tblTempVendorCDR_20' ) end [2025-07-30 13:25:24] Production.INFO: ProcessCDR(1,15565946,1,1,2) [2025-07-30 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15565946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 13:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15565946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 13:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15565946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15565946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15565946', 'tblTempUsageDetail_20' ) start [2025-07-30 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15565946', 'tblTempUsageDetail_20' ) end [2025-07-30 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-30 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-30 13:25:35] Production.INFO: ==10133== Releasing lock... [2025-07-30 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 13:25:35] Production.INFO: 70.75 MB #Memory Used# [2025-07-30 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 11:25:05 [end_date_ymd] => 2025-07-30 14:25:05 [RateCDR] => 1 ) [2025-07-30 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-30 11:25:05' and `end` < '2025-07-30 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-30 14:25:18] Production.INFO: count ==5563 [2025-07-30 14:25:21] Production.ERROR: pbx CDR StartTime 2025-07-30 11:25:05 - End Time 2025-07-30 14:25:05 [2025-07-30 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15566193', 'tblTempUsageDetail_20' ) start [2025-07-30 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15566193', 'tblTempUsageDetail_20' ) end [2025-07-30 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15566193', 'tblTempVendorCDR_20' ) start [2025-07-30 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15566193', 'tblTempVendorCDR_20' ) end [2025-07-30 14:25:21] Production.INFO: ProcessCDR(1,15566193,1,1,2) [2025-07-30 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15566193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15566193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15566193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15566193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15566193', 'tblTempUsageDetail_20' ) start [2025-07-30 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15566193', 'tblTempUsageDetail_20' ) end [2025-07-30 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-30 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-30 14:25:32] Production.INFO: ==14807== Releasing lock... [2025-07-30 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 14:25:32] Production.INFO: 70 MB #Memory Used# [2025-07-30 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 12:25:05 [end_date_ymd] => 2025-07-30 15:25:05 [RateCDR] => 1 ) [2025-07-30 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-30 12:25:05' and `end` < '2025-07-30 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-30 15:25:20] Production.INFO: count ==4951 [2025-07-30 15:25:22] Production.ERROR: pbx CDR StartTime 2025-07-30 12:25:05 - End Time 2025-07-30 15:25:05 [2025-07-30 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15566440', 'tblTempUsageDetail_20' ) start [2025-07-30 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15566440', 'tblTempUsageDetail_20' ) end [2025-07-30 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15566440', 'tblTempVendorCDR_20' ) start [2025-07-30 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15566440', 'tblTempVendorCDR_20' ) end [2025-07-30 15:25:23] Production.INFO: ProcessCDR(1,15566440,1,1,2) [2025-07-30 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15566440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15566440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15566440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15566440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15566440', 'tblTempUsageDetail_20' ) start [2025-07-30 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15566440', 'tblTempUsageDetail_20' ) end [2025-07-30 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-30 15:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-30 15:25:34] Production.INFO: ==20401== Releasing lock... [2025-07-30 15:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 15:25:34] Production.INFO: 65.25 MB #Memory Used# [2025-07-30 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 13:25:05 [end_date_ymd] => 2025-07-30 16:25:05 [RateCDR] => 1 ) [2025-07-30 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-30 13:25:05' and `end` < '2025-07-30 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-30 16:25:19] Production.INFO: count ==5144 [2025-07-30 16:25:21] Production.ERROR: pbx CDR StartTime 2025-07-30 13:25:05 - End Time 2025-07-30 16:25:05 [2025-07-30 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15566687', 'tblTempUsageDetail_20' ) start [2025-07-30 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15566687', 'tblTempUsageDetail_20' ) end [2025-07-30 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15566687', 'tblTempVendorCDR_20' ) start [2025-07-30 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15566687', 'tblTempVendorCDR_20' ) end [2025-07-30 16:25:22] Production.INFO: ProcessCDR(1,15566687,1,1,2) [2025-07-30 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15566687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15566687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15566687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15566687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15566687', 'tblTempUsageDetail_20' ) start [2025-07-30 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15566687', 'tblTempUsageDetail_20' ) end [2025-07-30 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-30 16:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-30 16:25:32] Production.INFO: ==24971== Releasing lock... [2025-07-30 16:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 16:25:32] Production.INFO: 66.75 MB #Memory Used# [2025-07-30 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 14:25:05 [end_date_ymd] => 2025-07-30 17:25:05 [RateCDR] => 1 ) [2025-07-30 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-30 14:25:05' and `end` < '2025-07-30 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-30 17:25:22] Production.INFO: count ==5035 [2025-07-30 17:25:24] Production.ERROR: pbx CDR StartTime 2025-07-30 14:25:05 - End Time 2025-07-30 17:25:05 [2025-07-30 17:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 17:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15566934', 'tblTempUsageDetail_20' ) start [2025-07-30 17:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15566934', 'tblTempUsageDetail_20' ) end [2025-07-30 17:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15566934', 'tblTempVendorCDR_20' ) start [2025-07-30 17:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15566934', 'tblTempVendorCDR_20' ) end [2025-07-30 17:25:25] Production.INFO: ProcessCDR(1,15566934,1,1,2) [2025-07-30 17:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15566934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 17:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15566934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 17:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15566934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 17:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15566934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15566934', 'tblTempUsageDetail_20' ) start [2025-07-30 17:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15566934', 'tblTempUsageDetail_20' ) end [2025-07-30 17:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-30 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-30 17:25:34] Production.INFO: ==29273== Releasing lock... [2025-07-30 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 17:25:34] Production.INFO: 66 MB #Memory Used# [2025-07-30 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 15:25:05 [end_date_ymd] => 2025-07-30 18:25:05 [RateCDR] => 1 ) [2025-07-30 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-30 15:25:05' and `end` < '2025-07-30 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-30 18:25:18] Production.INFO: count ==4377 [2025-07-30 18:25:20] Production.ERROR: pbx CDR StartTime 2025-07-30 15:25:05 - End Time 2025-07-30 18:25:05 [2025-07-30 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15567181', 'tblTempUsageDetail_20' ) start [2025-07-30 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15567181', 'tblTempUsageDetail_20' ) end [2025-07-30 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15567181', 'tblTempVendorCDR_20' ) start [2025-07-30 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15567181', 'tblTempVendorCDR_20' ) end [2025-07-30 18:25:20] Production.INFO: ProcessCDR(1,15567181,1,1,2) [2025-07-30 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15567181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15567181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15567181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 18:27:06] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15567181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 18:27:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15567181', 'tblTempUsageDetail_20' ) start [2025-07-30 18:27:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15567181', 'tblTempUsageDetail_20' ) end [2025-07-30 18:27:19] Production.ERROR: pbx prc_insertCDR start [2025-07-30 18:27:21] Production.ERROR: pbx prc_insertCDR end [2025-07-30 18:27:24] Production.INFO: ==1386== Releasing lock... [2025-07-30 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 18:27:24] Production.INFO: 61 MB #Memory Used# [2025-07-30 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 16:25:05 [end_date_ymd] => 2025-07-30 19:25:05 [RateCDR] => 1 ) [2025-07-30 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-30 16:25:05' and `end` < '2025-07-30 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-30 19:25:18] Production.INFO: count ==3052 [2025-07-30 19:25:19] Production.ERROR: pbx CDR StartTime 2025-07-30 16:25:05 - End Time 2025-07-30 19:25:05 [2025-07-30 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15567426', 'tblTempUsageDetail_20' ) start [2025-07-30 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15567426', 'tblTempUsageDetail_20' ) end [2025-07-30 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15567426', 'tblTempVendorCDR_20' ) start [2025-07-30 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15567426', 'tblTempVendorCDR_20' ) end [2025-07-30 19:25:20] Production.INFO: ProcessCDR(1,15567426,1,1,2) [2025-07-30 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15567426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15567426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15567426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15567426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15567426', 'tblTempUsageDetail_20' ) start [2025-07-30 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15567426', 'tblTempUsageDetail_20' ) end [2025-07-30 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-30 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-30 19:25:29] Production.INFO: ==5921== Releasing lock... [2025-07-30 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 19:25:29] Production.INFO: 51 MB #Memory Used# [2025-07-30 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 17:25:06 [end_date_ymd] => 2025-07-30 20:25:06 [RateCDR] => 1 ) [2025-07-30 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-30 17:25:06' and `end` < '2025-07-30 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-30 20:25:18] Production.INFO: count ==2286 [2025-07-30 20:25:19] Production.ERROR: pbx CDR StartTime 2025-07-30 17:25:06 - End Time 2025-07-30 20:25:06 [2025-07-30 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15567673', 'tblTempUsageDetail_20' ) start [2025-07-30 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15567673', 'tblTempUsageDetail_20' ) end [2025-07-30 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15567673', 'tblTempVendorCDR_20' ) start [2025-07-30 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15567673', 'tblTempVendorCDR_20' ) end [2025-07-30 20:25:19] Production.INFO: ProcessCDR(1,15567673,1,1,2) [2025-07-30 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15567673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15567673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15567673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15567673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15567673', 'tblTempUsageDetail_20' ) start [2025-07-30 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15567673', 'tblTempUsageDetail_20' ) end [2025-07-30 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-30 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-30 20:25:27] Production.INFO: ==10406== Releasing lock... [2025-07-30 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 20:25:27] Production.INFO: 45.75 MB #Memory Used# [2025-07-30 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 18:25:05 [end_date_ymd] => 2025-07-30 21:25:05 [RateCDR] => 1 ) [2025-07-30 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-30 18:25:05' and `end` < '2025-07-30 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-30 21:25:17] Production.INFO: count ==1910 [2025-07-30 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-30 18:25:05 - End Time 2025-07-30 21:25:05 [2025-07-30 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15567920', 'tblTempUsageDetail_20' ) start [2025-07-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15567920', 'tblTempUsageDetail_20' ) end [2025-07-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15567920', 'tblTempVendorCDR_20' ) start [2025-07-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15567920', 'tblTempVendorCDR_20' ) end [2025-07-30 21:25:18] Production.INFO: ProcessCDR(1,15567920,1,1,2) [2025-07-30 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15567920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15567920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15567920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15567920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15567920', 'tblTempUsageDetail_20' ) start [2025-07-30 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15567920', 'tblTempUsageDetail_20' ) end [2025-07-30 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-30 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-30 21:25:26] Production.INFO: ==15987== Releasing lock... [2025-07-30 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 21:25:26] Production.INFO: 42.5 MB #Memory Used# [2025-07-30 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 19:25:05 [end_date_ymd] => 2025-07-30 22:25:05 [RateCDR] => 1 ) [2025-07-30 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-30 19:25:05' and `end` < '2025-07-30 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-30 22:25:17] Production.INFO: count ==1359 [2025-07-30 22:25:17] Production.ERROR: pbx CDR StartTime 2025-07-30 19:25:05 - End Time 2025-07-30 22:25:05 [2025-07-30 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15568167', 'tblTempUsageDetail_20' ) start [2025-07-30 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15568167', 'tblTempUsageDetail_20' ) end [2025-07-30 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15568167', 'tblTempVendorCDR_20' ) start [2025-07-30 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15568167', 'tblTempVendorCDR_20' ) end [2025-07-30 22:25:17] Production.INFO: ProcessCDR(1,15568167,1,1,2) [2025-07-30 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15568167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15568167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15568167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15568167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15568167', 'tblTempUsageDetail_20' ) start [2025-07-30 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15568167', 'tblTempUsageDetail_20' ) end [2025-07-30 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-30 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-30 22:25:25] Production.INFO: ==20558== Releasing lock... [2025-07-30 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 22:25:25] Production.INFO: 38.25 MB #Memory Used# [2025-07-30 23:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-30 20:25:04 [end_date_ymd] => 2025-07-30 23:25:04 [RateCDR] => 1 ) [2025-07-30 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-30 20:25:04' and `end` < '2025-07-30 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-30 23:25:16] Production.INFO: count ==1050 [2025-07-30 23:25:17] Production.ERROR: pbx CDR StartTime 2025-07-30 20:25:04 - End Time 2025-07-30 23:25:04 [2025-07-30 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-30 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15568414', 'tblTempUsageDetail_20' ) start [2025-07-30 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15568414', 'tblTempUsageDetail_20' ) end [2025-07-30 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15568414', 'tblTempVendorCDR_20' ) start [2025-07-30 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15568414', 'tblTempVendorCDR_20' ) end [2025-07-30 23:25:17] Production.INFO: ProcessCDR(1,15568414,1,1,2) [2025-07-30 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15568414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15568414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-30 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15568414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15568414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-30 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15568414', 'tblTempUsageDetail_20' ) start [2025-07-30 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15568414', 'tblTempUsageDetail_20' ) end [2025-07-30 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-30 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-30 23:25:24] Production.INFO: ==25299== Releasing lock... [2025-07-30 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-30 23:25:24] Production.INFO: 36.5 MB #Memory Used#