[2025-06-22 00:25:03] Production.INFO: next invoice date [2025-06-22 00:25:03] Production.INFO: 2025-07-22 [2025-06-22 00:25:03] Production.INFO: getdaysdiff [2025-06-22 00:25:03] Production.INFO: +30 [2025-06-22 00:25:03] Production.INFO: call prc_setAccountDiscountPlan (253,16,1,30,30,'RMScheduler',2025-06-22 00:25:03,1,0,,,0) [2025-06-22 00:25:04] Production.INFO: next invoice date [2025-06-22 00:25:04] Production.INFO: 2025-07-22 [2025-06-22 00:25:04] Production.INFO: getdaysdiff [2025-06-22 00:25:04] Production.INFO: +30 [2025-06-22 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (253,13,2,30,30,'RMScheduler',2025-06-22 00:25:03,1,0,,,0) [2025-06-22 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 21:25:04 [end_date_ymd] => 2025-06-22 00:25:04 [RateCDR] => 1 ) [2025-06-22 00:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 21:25:04' and `end` < '2025-06-22 00:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 00:25:17] Production.INFO: count ==717 [2025-06-22 00:25:17] Production.ERROR: pbx CDR StartTime 2025-06-21 21:25:04 - End Time 2025-06-22 00:25:04 [2025-06-22 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15337506', 'tblTempUsageDetail_20' ) start [2025-06-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15337506', 'tblTempUsageDetail_20' ) end [2025-06-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15337506', 'tblTempVendorCDR_20' ) start [2025-06-22 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15337506', 'tblTempVendorCDR_20' ) end [2025-06-22 00:25:17] Production.INFO: ProcessCDR(1,15337506,1,1,2) [2025-06-22 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15337506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15337506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15337506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 00:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15337506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15337506', 'tblTempUsageDetail_20' ) start [2025-06-22 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15337506', 'tblTempUsageDetail_20' ) end [2025-06-22 00:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-22 00:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-22 00:25:26] Production.INFO: ==30054== Releasing lock... [2025-06-22 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 00:25:26] Production.INFO: 36.75 MB #Memory Used# [2025-06-22 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 22:25:05 [end_date_ymd] => 2025-06-22 01:25:05 [RateCDR] => 1 ) [2025-06-22 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-21 22:25:05' and `end` < '2025-06-22 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 01:25:17] Production.INFO: count ==682 [2025-06-22 01:25:18] Production.ERROR: pbx CDR StartTime 2025-06-21 22:25:05 - End Time 2025-06-22 01:25:05 [2025-06-22 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15337753', 'tblTempUsageDetail_20' ) start [2025-06-22 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15337753', 'tblTempUsageDetail_20' ) end [2025-06-22 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15337753', 'tblTempVendorCDR_20' ) start [2025-06-22 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15337753', 'tblTempVendorCDR_20' ) end [2025-06-22 01:25:18] Production.INFO: ProcessCDR(1,15337753,1,1,2) [2025-06-22 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15337753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15337753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15337753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15337753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15337753', 'tblTempUsageDetail_20' ) start [2025-06-22 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15337753', 'tblTempUsageDetail_20' ) end [2025-06-22 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-22 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-22 01:25:25] Production.INFO: ==2362== Releasing lock... [2025-06-22 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 01:25:25] Production.INFO: 33.5 MB #Memory Used# [2025-06-22 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-21 23:25:05 [end_date_ymd] => 2025-06-22 02:25:05 [RateCDR] => 1 ) [2025-06-22 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-06-21 23:25:05' and `end` < '2025-06-22 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-06-22 02:25:17] Production.INFO: count ==694 [2025-06-22 02:25:17] Production.ERROR: pbx CDR StartTime 2025-06-21 23:25:05 - End Time 2025-06-22 02:25:05 [2025-06-22 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15338000', 'tblTempUsageDetail_20' ) start [2025-06-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15338000', 'tblTempUsageDetail_20' ) end [2025-06-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15338000', 'tblTempVendorCDR_20' ) start [2025-06-22 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15338000', 'tblTempVendorCDR_20' ) end [2025-06-22 02:25:17] Production.INFO: ProcessCDR(1,15338000,1,1,2) [2025-06-22 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15338000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15338000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15338000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15338000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15338000', 'tblTempUsageDetail_20' ) start [2025-06-22 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15338000', 'tblTempUsageDetail_20' ) end [2025-06-22 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-22 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-22 02:25:24] Production.INFO: ==6942== Releasing lock... [2025-06-22 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 02:25:24] Production.INFO: 33.75 MB #Memory Used# [2025-06-22 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 00:25:05 [end_date_ymd] => 2025-06-22 03:25:05 [RateCDR] => 1 ) [2025-06-22 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 00:25:05' and `end` < '2025-06-22 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 03:25:17] Production.INFO: count ==604 [2025-06-22 03:25:17] Production.ERROR: pbx CDR StartTime 2025-06-22 00:25:05 - End Time 2025-06-22 03:25:05 [2025-06-22 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15338247', 'tblTempUsageDetail_20' ) start [2025-06-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15338247', 'tblTempUsageDetail_20' ) end [2025-06-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15338247', 'tblTempVendorCDR_20' ) start [2025-06-22 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15338247', 'tblTempVendorCDR_20' ) end [2025-06-22 03:25:17] Production.INFO: ProcessCDR(1,15338247,1,1,2) [2025-06-22 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15338247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15338247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15338247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15338247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15338247', 'tblTempUsageDetail_20' ) start [2025-06-22 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15338247', 'tblTempUsageDetail_20' ) end [2025-06-22 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-22 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-22 03:25:23] Production.INFO: ==11459== Releasing lock... [2025-06-22 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 03:25:23] Production.INFO: 33.25 MB #Memory Used# [2025-06-22 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 01:25:05 [end_date_ymd] => 2025-06-22 04:25:05 [RateCDR] => 1 ) [2025-06-22 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 01:25:05' and `end` < '2025-06-22 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 04:25:17] Production.INFO: count ==492 [2025-06-22 04:25:17] Production.ERROR: pbx CDR StartTime 2025-06-22 01:25:05 - End Time 2025-06-22 04:25:05 [2025-06-22 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15338495', 'tblTempUsageDetail_20' ) start [2025-06-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15338495', 'tblTempUsageDetail_20' ) end [2025-06-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15338495', 'tblTempVendorCDR_20' ) start [2025-06-22 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15338495', 'tblTempVendorCDR_20' ) end [2025-06-22 04:25:17] Production.INFO: ProcessCDR(1,15338495,1,1,2) [2025-06-22 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15338495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15338495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15338495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15338495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15338495', 'tblTempUsageDetail_20' ) start [2025-06-22 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15338495', 'tblTempUsageDetail_20' ) end [2025-06-22 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-22 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-22 04:25:24] Production.INFO: ==16034== Releasing lock... [2025-06-22 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 04:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-06-22 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 02:25:05 [end_date_ymd] => 2025-06-22 05:25:05 [RateCDR] => 1 ) [2025-06-22 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 02:25:05' and `end` < '2025-06-22 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 05:25:18] Production.INFO: count ==325 [2025-06-22 05:25:18] Production.ERROR: pbx CDR StartTime 2025-06-22 02:25:05 - End Time 2025-06-22 05:25:05 [2025-06-22 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15338743', 'tblTempUsageDetail_20' ) start [2025-06-22 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15338743', 'tblTempUsageDetail_20' ) end [2025-06-22 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15338743', 'tblTempVendorCDR_20' ) start [2025-06-22 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15338743', 'tblTempVendorCDR_20' ) end [2025-06-22 05:25:18] Production.INFO: ProcessCDR(1,15338743,1,1,2) [2025-06-22 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15338743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15338743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15338743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15338743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15338743', 'tblTempUsageDetail_20' ) start [2025-06-22 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15338743', 'tblTempUsageDetail_20' ) end [2025-06-22 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-22 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-22 05:25:24] Production.INFO: ==20505== Releasing lock... [2025-06-22 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 05:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-06-22 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 03:25:04 [end_date_ymd] => 2025-06-22 06:25:04 [RateCDR] => 1 ) [2025-06-22 06:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 03:25:04' and `end` < '2025-06-22 06:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 06:25:16] Production.INFO: count ==220 [2025-06-22 06:25:16] Production.ERROR: pbx CDR StartTime 2025-06-22 03:25:04 - End Time 2025-06-22 06:25:04 [2025-06-22 06:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15338990', 'tblTempUsageDetail_20' ) start [2025-06-22 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15338990', 'tblTempUsageDetail_20' ) end [2025-06-22 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15338990', 'tblTempVendorCDR_20' ) start [2025-06-22 06:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15338990', 'tblTempVendorCDR_20' ) end [2025-06-22 06:25:16] Production.INFO: ProcessCDR(1,15338990,1,1,2) [2025-06-22 06:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15338990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15338990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15338990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15338990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15338990', 'tblTempUsageDetail_20' ) start [2025-06-22 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15338990', 'tblTempUsageDetail_20' ) end [2025-06-22 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-22 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-22 06:25:23] Production.INFO: ==24953== Releasing lock... [2025-06-22 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 06:25:23] Production.INFO: 30 MB #Memory Used# [2025-06-22 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 04:25:05 [end_date_ymd] => 2025-06-22 07:25:05 [RateCDR] => 1 ) [2025-06-22 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 04:25:05' and `end` < '2025-06-22 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 07:25:17] Production.INFO: count ==143 [2025-06-22 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-22 04:25:05 - End Time 2025-06-22 07:25:05 [2025-06-22 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15339237', 'tblTempUsageDetail_20' ) start [2025-06-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15339237', 'tblTempUsageDetail_20' ) end [2025-06-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15339237', 'tblTempVendorCDR_20' ) start [2025-06-22 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15339237', 'tblTempVendorCDR_20' ) end [2025-06-22 07:25:17] Production.INFO: ProcessCDR(1,15339237,1,1,2) [2025-06-22 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15339237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15339237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15339237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15339237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15339237', 'tblTempUsageDetail_20' ) start [2025-06-22 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15339237', 'tblTempUsageDetail_20' ) end [2025-06-22 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-22 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-22 07:25:23] Production.INFO: ==29405== Releasing lock... [2025-06-22 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 07:25:23] Production.INFO: 29.25 MB #Memory Used# [2025-06-22 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 05:25:05 [end_date_ymd] => 2025-06-22 08:25:05 [RateCDR] => 1 ) [2025-06-22 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 05:25:05' and `end` < '2025-06-22 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 08:25:17] Production.INFO: count ==138 [2025-06-22 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-22 05:25:05 - End Time 2025-06-22 08:25:05 [2025-06-22 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15339484', 'tblTempUsageDetail_20' ) start [2025-06-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15339484', 'tblTempUsageDetail_20' ) end [2025-06-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15339484', 'tblTempVendorCDR_20' ) start [2025-06-22 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15339484', 'tblTempVendorCDR_20' ) end [2025-06-22 08:25:17] Production.INFO: ProcessCDR(1,15339484,1,1,2) [2025-06-22 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15339484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15339484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15339484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15339484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15339484', 'tblTempUsageDetail_20' ) start [2025-06-22 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15339484', 'tblTempUsageDetail_20' ) end [2025-06-22 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-22 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-22 08:25:24] Production.INFO: ==2942== Releasing lock... [2025-06-22 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 08:25:24] Production.INFO: 29 MB #Memory Used# [2025-06-22 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 06:25:05 [end_date_ymd] => 2025-06-22 09:25:05 [RateCDR] => 1 ) [2025-06-22 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 06:25:05' and `end` < '2025-06-22 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 09:25:17] Production.INFO: count ==208 [2025-06-22 09:25:17] Production.ERROR: pbx CDR StartTime 2025-06-22 06:25:05 - End Time 2025-06-22 09:25:05 [2025-06-22 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15339731', 'tblTempUsageDetail_20' ) start [2025-06-22 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15339731', 'tblTempUsageDetail_20' ) end [2025-06-22 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15339731', 'tblTempVendorCDR_20' ) start [2025-06-22 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15339731', 'tblTempVendorCDR_20' ) end [2025-06-22 09:25:17] Production.INFO: ProcessCDR(1,15339731,1,1,2) [2025-06-22 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15339731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15339731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15339731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15339731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15339731', 'tblTempUsageDetail_20' ) start [2025-06-22 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15339731', 'tblTempUsageDetail_20' ) end [2025-06-22 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-22 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-22 09:25:24] Production.INFO: ==7458== Releasing lock... [2025-06-22 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 09:25:24] Production.INFO: 29.75 MB #Memory Used# [2025-06-22 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 07:25:06 [end_date_ymd] => 2025-06-22 10:25:06 [RateCDR] => 1 ) [2025-06-22 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 07:25:06' and `end` < '2025-06-22 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 10:25:18] Production.INFO: count ==361 [2025-06-22 10:25:18] Production.ERROR: pbx CDR StartTime 2025-06-22 07:25:06 - End Time 2025-06-22 10:25:06 [2025-06-22 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15339978', 'tblTempUsageDetail_20' ) start [2025-06-22 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15339978', 'tblTempUsageDetail_20' ) end [2025-06-22 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15339978', 'tblTempVendorCDR_20' ) start [2025-06-22 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15339978', 'tblTempVendorCDR_20' ) end [2025-06-22 10:25:18] Production.INFO: ProcessCDR(1,15339978,1,1,2) [2025-06-22 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15339978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15339978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15339978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15339978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15339978', 'tblTempUsageDetail_20' ) start [2025-06-22 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15339978', 'tblTempUsageDetail_20' ) end [2025-06-22 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-22 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-22 10:25:24] Production.INFO: ==11909== Releasing lock... [2025-06-22 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 10:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-06-22 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 08:25:05 [end_date_ymd] => 2025-06-22 11:25:05 [RateCDR] => 1 ) [2025-06-22 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 08:25:05' and `end` < '2025-06-22 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 11:25:17] Production.INFO: count ==605 [2025-06-22 11:25:17] Production.ERROR: pbx CDR StartTime 2025-06-22 08:25:05 - End Time 2025-06-22 11:25:05 [2025-06-22 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15340225', 'tblTempUsageDetail_20' ) start [2025-06-22 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15340225', 'tblTempUsageDetail_20' ) end [2025-06-22 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15340225', 'tblTempVendorCDR_20' ) start [2025-06-22 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15340225', 'tblTempVendorCDR_20' ) end [2025-06-22 11:25:17] Production.INFO: ProcessCDR(1,15340225,1,1,2) [2025-06-22 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15340225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15340225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15340225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 11:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15340225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15340225', 'tblTempUsageDetail_20' ) start [2025-06-22 11:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15340225', 'tblTempUsageDetail_20' ) end [2025-06-22 11:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-22 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-22 11:25:25] Production.INFO: ==16331== Releasing lock... [2025-06-22 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 11:25:25] Production.INFO: 33.25 MB #Memory Used# [2025-06-22 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 09:25:05 [end_date_ymd] => 2025-06-22 12:25:05 [RateCDR] => 1 ) [2025-06-22 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-06-22 09:25:05' and `end` < '2025-06-22 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-06-22 12:25:17] Production.INFO: count ==932 [2025-06-22 12:25:17] Production.ERROR: pbx CDR StartTime 2025-06-22 09:25:05 - End Time 2025-06-22 12:25:05 [2025-06-22 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15340472', 'tblTempUsageDetail_20' ) start [2025-06-22 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15340472', 'tblTempUsageDetail_20' ) end [2025-06-22 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15340472', 'tblTempVendorCDR_20' ) start [2025-06-22 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15340472', 'tblTempVendorCDR_20' ) end [2025-06-22 12:25:17] Production.INFO: ProcessCDR(1,15340472,1,1,2) [2025-06-22 12:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15340472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 12:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15340472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 12:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15340472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15340472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15340472', 'tblTempUsageDetail_20' ) start [2025-06-22 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15340472', 'tblTempUsageDetail_20' ) end [2025-06-22 12:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-22 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-22 12:25:25] Production.INFO: ==20803== Releasing lock... [2025-06-22 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 12:25:25] Production.INFO: 35.75 MB #Memory Used# [2025-06-22 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 10:25:05 [end_date_ymd] => 2025-06-22 13:25:05 [RateCDR] => 1 ) [2025-06-22 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 10:25:05' and `end` < '2025-06-22 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 13:25:17] Production.INFO: count ==1126 [2025-06-22 13:25:18] Production.ERROR: pbx CDR StartTime 2025-06-22 10:25:05 - End Time 2025-06-22 13:25:05 [2025-06-22 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15340719', 'tblTempUsageDetail_20' ) start [2025-06-22 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15340719', 'tblTempUsageDetail_20' ) end [2025-06-22 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15340719', 'tblTempVendorCDR_20' ) start [2025-06-22 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15340719', 'tblTempVendorCDR_20' ) end [2025-06-22 13:25:18] Production.INFO: ProcessCDR(1,15340719,1,1,2) [2025-06-22 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15340719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15340719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15340719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15340719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15340719', 'tblTempUsageDetail_20' ) start [2025-06-22 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15340719', 'tblTempUsageDetail_20' ) end [2025-06-22 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-22 13:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-22 13:25:25] Production.INFO: ==25331== Releasing lock... [2025-06-22 13:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 13:25:25] Production.INFO: 37 MB #Memory Used# [2025-06-22 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 11:25:05 [end_date_ymd] => 2025-06-22 14:25:05 [RateCDR] => 1 ) [2025-06-22 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 11:25:05' and `end` < '2025-06-22 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 14:25:18] Production.INFO: count ==1196 [2025-06-22 14:25:18] Production.ERROR: pbx CDR StartTime 2025-06-22 11:25:05 - End Time 2025-06-22 14:25:05 [2025-06-22 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15340966', 'tblTempUsageDetail_20' ) start [2025-06-22 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15340966', 'tblTempUsageDetail_20' ) end [2025-06-22 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15340966', 'tblTempVendorCDR_20' ) start [2025-06-22 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15340966', 'tblTempVendorCDR_20' ) end [2025-06-22 14:25:18] Production.INFO: ProcessCDR(1,15340966,1,1,2) [2025-06-22 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15340966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15340966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15340966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15340966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15340966', 'tblTempUsageDetail_20' ) start [2025-06-22 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15340966', 'tblTempUsageDetail_20' ) end [2025-06-22 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-22 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-22 14:25:26] Production.INFO: ==29953== Releasing lock... [2025-06-22 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 14:25:26] Production.INFO: 37.5 MB #Memory Used# [2025-06-22 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 12:25:05 [end_date_ymd] => 2025-06-22 15:25:05 [RateCDR] => 1 ) [2025-06-22 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 12:25:05' and `end` < '2025-06-22 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 15:25:17] Production.INFO: count ==1107 [2025-06-22 15:25:18] Production.ERROR: pbx CDR StartTime 2025-06-22 12:25:05 - End Time 2025-06-22 15:25:05 [2025-06-22 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15341213', 'tblTempUsageDetail_20' ) start [2025-06-22 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15341213', 'tblTempUsageDetail_20' ) end [2025-06-22 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15341213', 'tblTempVendorCDR_20' ) start [2025-06-22 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15341213', 'tblTempVendorCDR_20' ) end [2025-06-22 15:25:18] Production.INFO: ProcessCDR(1,15341213,1,1,2) [2025-06-22 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15341213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15341213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15341213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 15:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15341213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15341213', 'tblTempUsageDetail_20' ) start [2025-06-22 15:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15341213', 'tblTempUsageDetail_20' ) end [2025-06-22 15:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-22 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-22 15:25:25] Production.INFO: ==2340== Releasing lock... [2025-06-22 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 15:25:25] Production.INFO: 36.25 MB #Memory Used# [2025-06-22 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 13:25:04 [end_date_ymd] => 2025-06-22 16:25:04 [RateCDR] => 1 ) [2025-06-22 16:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 13:25:04' and `end` < '2025-06-22 16:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 16:25:16] Production.INFO: count ==1100 [2025-06-22 16:25:17] Production.ERROR: pbx CDR StartTime 2025-06-22 13:25:04 - End Time 2025-06-22 16:25:04 [2025-06-22 16:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15341460', 'tblTempUsageDetail_20' ) start [2025-06-22 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15341460', 'tblTempUsageDetail_20' ) end [2025-06-22 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15341460', 'tblTempVendorCDR_20' ) start [2025-06-22 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15341460', 'tblTempVendorCDR_20' ) end [2025-06-22 16:25:17] Production.INFO: ProcessCDR(1,15341460,1,1,2) [2025-06-22 16:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15341460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15341460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15341460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15341460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15341460', 'tblTempUsageDetail_20' ) start [2025-06-22 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15341460', 'tblTempUsageDetail_20' ) end [2025-06-22 16:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-22 16:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-22 16:25:24] Production.INFO: ==7008== Releasing lock... [2025-06-22 16:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 16:25:24] Production.INFO: 36.75 MB #Memory Used# [2025-06-22 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 14:25:05 [end_date_ymd] => 2025-06-22 17:25:05 [RateCDR] => 1 ) [2025-06-22 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 14:25:05' and `end` < '2025-06-22 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 17:25:18] Production.INFO: count ==1255 [2025-06-22 17:25:18] Production.ERROR: pbx CDR StartTime 2025-06-22 14:25:05 - End Time 2025-06-22 17:25:05 [2025-06-22 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15341707', 'tblTempUsageDetail_20' ) start [2025-06-22 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15341707', 'tblTempUsageDetail_20' ) end [2025-06-22 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15341707', 'tblTempVendorCDR_20' ) start [2025-06-22 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15341707', 'tblTempVendorCDR_20' ) end [2025-06-22 17:25:18] Production.INFO: ProcessCDR(1,15341707,1,1,2) [2025-06-22 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15341707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15341707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15341707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15341707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15341707', 'tblTempUsageDetail_20' ) start [2025-06-22 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15341707', 'tblTempUsageDetail_20' ) end [2025-06-22 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-22 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-22 17:25:25] Production.INFO: ==11546== Releasing lock... [2025-06-22 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 17:25:25] Production.INFO: 37.75 MB #Memory Used# [2025-06-22 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 15:25:06 [end_date_ymd] => 2025-06-22 18:25:06 [RateCDR] => 1 ) [2025-06-22 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-06-22 15:25:06' and `end` < '2025-06-22 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-06-22 18:25:18] Production.INFO: count ==1592 [2025-06-22 18:25:33] Production.ERROR: pbx CDR StartTime 2025-06-22 15:25:06 - End Time 2025-06-22 18:25:06 [2025-06-22 18:25:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 18:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15341954', 'tblTempUsageDetail_20' ) start [2025-06-22 18:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15341954', 'tblTempUsageDetail_20' ) end [2025-06-22 18:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15341954', 'tblTempVendorCDR_20' ) start [2025-06-22 18:25:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15341954', 'tblTempVendorCDR_20' ) end [2025-06-22 18:25:33] Production.INFO: ProcessCDR(1,15341954,1,1,2) [2025-06-22 18:25:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15341954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 18:25:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15341954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 18:25:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15341954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 18:27:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15341954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 18:27:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15341954', 'tblTempUsageDetail_20' ) start [2025-06-22 18:27:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15341954', 'tblTempUsageDetail_20' ) end [2025-06-22 18:27:50] Production.ERROR: pbx prc_insertCDR start [2025-06-22 18:27:51] Production.ERROR: pbx prc_insertCDR end [2025-06-22 18:27:52] Production.INFO: ==15833== Releasing lock... [2025-06-22 18:27:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 18:27:52] Production.INFO: 40.25 MB #Memory Used# [2025-06-22 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 16:25:05 [end_date_ymd] => 2025-06-22 19:25:05 [RateCDR] => 1 ) [2025-06-22 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 16:25:05' and `end` < '2025-06-22 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 19:25:17] Production.INFO: count ==1835 [2025-06-22 19:25:18] Production.ERROR: pbx CDR StartTime 2025-06-22 16:25:05 - End Time 2025-06-22 19:25:05 [2025-06-22 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15342197', 'tblTempUsageDetail_20' ) start [2025-06-22 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15342197', 'tblTempUsageDetail_20' ) end [2025-06-22 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15342197', 'tblTempVendorCDR_20' ) start [2025-06-22 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15342197', 'tblTempVendorCDR_20' ) end [2025-06-22 19:25:18] Production.INFO: ProcessCDR(1,15342197,1,1,2) [2025-06-22 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15342197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15342197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15342197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15342197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15342197', 'tblTempUsageDetail_20' ) start [2025-06-22 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15342197', 'tblTempUsageDetail_20' ) end [2025-06-22 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-22 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-22 19:25:25] Production.INFO: ==20982== Releasing lock... [2025-06-22 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 19:25:25] Production.INFO: 42 MB #Memory Used# [2025-06-22 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 17:25:06 [end_date_ymd] => 2025-06-22 20:25:06 [RateCDR] => 1 ) [2025-06-22 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 17:25:06' and `end` < '2025-06-22 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 20:25:18] Production.INFO: count ==1864 [2025-06-22 20:25:19] Production.ERROR: pbx CDR StartTime 2025-06-22 17:25:06 - End Time 2025-06-22 20:25:06 [2025-06-22 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15342444', 'tblTempUsageDetail_20' ) start [2025-06-22 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15342444', 'tblTempUsageDetail_20' ) end [2025-06-22 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15342444', 'tblTempVendorCDR_20' ) start [2025-06-22 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15342444', 'tblTempVendorCDR_20' ) end [2025-06-22 20:25:19] Production.INFO: ProcessCDR(1,15342444,1,1,2) [2025-06-22 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15342444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15342444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15342444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15342444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15342444', 'tblTempUsageDetail_20' ) start [2025-06-22 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15342444', 'tblTempUsageDetail_20' ) end [2025-06-22 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-22 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-22 20:25:26] Production.INFO: ==25497== Releasing lock... [2025-06-22 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 20:25:26] Production.INFO: 42 MB #Memory Used# [2025-06-22 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 18:25:06 [end_date_ymd] => 2025-06-22 21:25:06 [RateCDR] => 1 ) [2025-06-22 21:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 18:25:06' and `end` < '2025-06-22 21:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 21:25:18] Production.INFO: count ==1555 [2025-06-22 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-22 18:25:06 - End Time 2025-06-22 21:25:06 [2025-06-22 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15342691', 'tblTempUsageDetail_20' ) start [2025-06-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15342691', 'tblTempUsageDetail_20' ) end [2025-06-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15342691', 'tblTempVendorCDR_20' ) start [2025-06-22 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15342691', 'tblTempVendorCDR_20' ) end [2025-06-22 21:25:18] Production.INFO: ProcessCDR(1,15342691,1,1,2) [2025-06-22 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15342691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15342691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15342691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15342691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15342691', 'tblTempUsageDetail_20' ) start [2025-06-22 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15342691', 'tblTempUsageDetail_20' ) end [2025-06-22 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-22 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-22 21:25:26] Production.INFO: ==29998== Releasing lock... [2025-06-22 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 21:25:26] Production.INFO: 39.75 MB #Memory Used# [2025-06-22 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 19:25:06 [end_date_ymd] => 2025-06-22 22:25:06 [RateCDR] => 1 ) [2025-06-22 22:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 19:25:06' and `end` < '2025-06-22 22:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 22:25:18] Production.INFO: count ==1384 [2025-06-22 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-22 19:25:06 - End Time 2025-06-22 22:25:06 [2025-06-22 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15342938', 'tblTempUsageDetail_20' ) start [2025-06-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15342938', 'tblTempUsageDetail_20' ) end [2025-06-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15342938', 'tblTempVendorCDR_20' ) start [2025-06-22 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15342938', 'tblTempVendorCDR_20' ) end [2025-06-22 22:25:18] Production.INFO: ProcessCDR(1,15342938,1,1,2) [2025-06-22 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15342938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15342938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15342938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15342938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15342938', 'tblTempUsageDetail_20' ) start [2025-06-22 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15342938', 'tblTempUsageDetail_20' ) end [2025-06-22 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-22 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-22 22:25:25] Production.INFO: ==1942== Releasing lock... [2025-06-22 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 22:25:25] Production.INFO: 38.5 MB #Memory Used# [2025-06-22 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-22 20:25:05 [end_date_ymd] => 2025-06-22 23:25:05 [RateCDR] => 1 ) [2025-06-22 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-22 20:25:05' and `end` < '2025-06-22 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-22 23:25:17] Production.INFO: count ==1321 [2025-06-22 23:25:17] Production.ERROR: pbx CDR StartTime 2025-06-22 20:25:05 - End Time 2025-06-22 23:25:05 [2025-06-22 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-22 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15343185', 'tblTempUsageDetail_20' ) start [2025-06-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15343185', 'tblTempUsageDetail_20' ) end [2025-06-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15343185', 'tblTempVendorCDR_20' ) start [2025-06-22 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15343185', 'tblTempVendorCDR_20' ) end [2025-06-22 23:25:18] Production.INFO: ProcessCDR(1,15343185,1,1,2) [2025-06-22 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15343185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15343185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-22 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15343185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15343185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-22 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15343185', 'tblTempUsageDetail_20' ) start [2025-06-22 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15343185', 'tblTempUsageDetail_20' ) end [2025-06-22 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-22 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-22 23:25:25] Production.INFO: ==6238== Releasing lock... [2025-06-22 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-22 23:25:25] Production.INFO: 38 MB #Memory Used#